Method and apparatus for processing resources
The method and apparatus convert virtual resources like power to ammunition seamlessly, addressing gameplay disruptions by allowing continuous resource replenishment without scene changes, thus improving gameplay smoothness.
Patent Information
- Application Number
- JP2023541520
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-01-22
- Filing Date
- 2021-11-29
- Publication Date
- 2024-11-13
- Estimated Expiration
- 2041-11-29
AI Technical Summary
In game scenes, the consumption of virtual resources, such as ammunition, disrupts gameplay continuity as players must interrupt operations to search for or build supply points, causing discontinuity and reducing smoothness.
A method and apparatus for resource processing that converts a second virtual resource into a first virtual resource, such as power to ammunition, allowing seamless replenishment without scene changes, using a resource management interface and virtual power generation devices.
Enhances gameplay smoothness by enabling continuous resource replenishment, eliminating the need for scene changes and simplifying the resource acquisition process.
Smart Images

Figure 0007582594000001 
Figure 0007582594000002 
Figure 0007582594000003
Abstract
Description
[Technical field]
[0001] [CROSS REFERENCE TO RELATED APPLICATIONS] This application claims priority to Chinese Patent Application No. 202110087656.1, filed on January 22, 2021, for the invention entitled "METHING AND APPARATUS FOR RESOURCE TREATMENT", the entire contents of which are incorporated herein by reference.
[0002] [Technical field] The present disclosure relates to the field of computer technology, and more particularly, to a method and apparatus for resource processing. [Background technology]
[0003] In some game scenes, various virtual resources usually exist. Different virtual resources have different uses. For example, when a shooting operation is performed by a virtual tool such as a firearm, virtual ammunition resources are consumed. After these virtual resources are consumed, the virtual character needs to obtain them again from the corresponding supply point. In general, for a supply point corresponding to a virtual resource, the virtual character usually needs to find a supply point in the game scene or build it with a virtual tool. As a result, after the virtual resource is consumed, the virtual character cannot continue to perform an operation such as shooting, and has to switch the game scene to find or build a supply point to supply. This causes the current interaction process of the virtual character to be interrupted, resulting in a low smoothness of the operation. Summary of the Invention
[0004] Embodiments of the present disclosure provide a method and apparatus for processing at least one resource.
[0005] In a first aspect, an embodiment of the present disclosure provides a method of resource processing, comprising: determining a current remaining resource amount of a second virtual resource in response to a trigger operation that supplements the first virtual resource; When the remaining resource amount of the second virtual resource satisfies a predetermined condition, determining a consumption amount of the second virtual resource based on a resource amount conversion relationship between the first virtual resource and the second virtual resource and a supplemented amount of the first virtual resource; updating the remaining resource amounts of the first virtual resource and the second virtual resource based on the consumed amount of the second virtual resource and the supplemented amount of the first virtual resource; Includes.
[0006] In one optional embodiment, determining a current remaining resource amount of a second virtual resource in response to a trigger operation that supplements the first virtual resource includes determining a remaining resource amount of the second virtual resource currently stored on a target device carried by the target virtual character in response to a trigger operation that supplements the first virtual resource.
[0007] In one alternative embodiment, the first virtual resource is a combat resource, the second virtual resource is a power resource, and the target device is a power supply device.
[0008] In one alternative embodiment, the first virtual resource is an ammunition resource.
[0009] Determining the current remaining resource amount of the second virtual resource in response to a trigger operation that supplements the first virtual resource includes determining the remaining power amount of a power supply device carried by a target virtual character in response to an ammunition replacement trigger operation for a target virtual instrument operated by the target virtual character.
[0010] As mentioned above, when the remaining resource amount of the second virtual resource satisfies a predetermined condition, determining the consumption amount of the second virtual resource based on the resource amount conversion relationship between the first virtual resource and the second virtual resource and the supplemented amount of the first virtual resource includes determining the power consumption based on the amount of ammunition required for one bullet replacement of the target virtual instrument and the resource amount conversion relationship between the amount of ammunition and the amount of power when the remaining power amount of the power supply device satisfies a predetermined condition.
[0011] Updating the remaining resource amount of each of the first virtual resource and the second virtual resource based on the consumption amount of the second virtual resource and the supplementary amount of the first virtual resource includes updating the amount of ammunition after ammunition replacement of the target virtual instrument and the remaining power amount of the power supply device based on the determined power consumption and the amount of ammunition required for one bullet replacement of the target virtual instrument.
[0012] In one alternative embodiment, the method further comprises: Presenting resource information collected by the target virtual character in a second virtual resource management interface; In response to a selection operation for at least one type of raw material in the raw material information, a virtual power generation device is started to convert the at least one type of raw material into electric power, and the converted electric power is input to a virtual storage battery, The virtual battery is used to power the power supply device.
[0013] In one optional embodiment, the method further includes updating the remaining amount of power after the virtual storage battery outputs power and the remaining amount of power after supplementing the power of the power supply device in response to a power supplement operation on the power supply device after the target virtual character reaches a location area in which the virtual storage battery is located.
[0014] In one optional embodiment, when updating the remaining resource amounts of each of the first virtual resource and the second virtual resource, the method further includes presenting effect data supplementing the first virtual resource to a target virtual character.
[0015] In one alternative embodiment, the virtual battery is further used to power at least one other virtual object other than the target device; The method further includes, in response to a task execution operation on the virtual object, activating the virtual object, presenting a task execution effect corresponding to the task execution operation, and updating the remaining amount of power in the virtual battery after powering the virtual object.
[0016] In a second aspect, an embodiment of the present disclosure further provides an apparatus for resource processing.
[0017] The resource processing device a response module for determining a current remaining resource amount of the second virtual resource in response to a trigger operation that captures the first virtual resource; a determination module for determining a consumption amount of the second virtual resource based on a resource amount conversion relationship between the first virtual resource and the second virtual resource and a supplemented amount of the first virtual resource when the remaining resource amount of the second virtual resource satisfies a predetermined condition; an updating module for updating a remaining resource amount of each of the first virtual resource and the second virtual resource based on a consumption amount of the second virtual resource and a supplemented amount of the first virtual resource; Equipped with.
[0018] In one alternative embodiment, the response module is specifically used to determine a remaining amount of a second virtual resource currently stored on a target device carried by a target virtual character in response to a trigger operation that supplements the first virtual resource.
[0019] In one alternative embodiment, the first virtual resource is a combat resource, the second virtual resource is a power resource, and the target device is a power supply.
[0020] In one alternative embodiment, the first virtual resource is an ammunition resource; Specifically, the response module is used to determine the remaining power of a power supply device carried by the target virtual character in response to a trigger operation for replacing a bullet of a target virtual instrument operated by the target virtual character; The determining module is specifically used for determining the power consumption amount according to the ammunition amount required for one round of ammunition replacement of the target virtual instrument and the resource amount conversion relationship between the ammunition amount and the power amount when the remaining power amount of the power supply device meets a predetermined condition; Specifically, the update module is used to update the amount of ammunition after ammunition replacement of the target virtual instrument and the remaining power amount of the power supply device based on the determined power consumption and the amount of ammunition required for one ammunition replacement of the target virtual instrument.
[0021] In one alternative embodiment, the apparatus further comprises a conversion module, The conversion module includes: Presenting resource information collected by the target virtual character in a second virtual resource management interface; In response to a selection operation for at least one type of raw material in the raw material information, a virtual power generation device is started to convert the at least one type of raw material into electric power, and the converted electric power is input to a virtual storage battery. Used in The virtual battery is used to power the power supply device.
[0022] In one optional embodiment, the device further includes a charging module for updating the remaining amount of power after outputting power from the virtual storage battery and the remaining amount of power after supplementing power from the power supply device in response to a power supplement operation on the power supply device after the target virtual character reaches a location area in which the virtual storage battery is located.
[0023] In one alternative embodiment, the device further comprises a playback module for presenting effect data supplementing the first virtual resource to a target virtual character when updating the remaining resource amount of each of the first virtual resource and the second virtual resource.
[0024] In one alternative embodiment, the virtual battery is further used to power at least one other virtual object other than the target device; The device further includes a task module for, in response to a task execution operation on the virtual object, activating the virtual object, presenting a task execution effect corresponding to the task execution operation, and updating the remaining amount of power in the virtual battery after powering the virtual object.
[0025] In a third aspect, an embodiment of the present disclosure further provides an electronic device comprising a processor, a memory and a bus, wherein the memory stores machine readable instructions executable by the processor, and when the electronic device is operating, communication occurs between the processor and the memory via the bus, and the machine readable instructions, when executed by the processor, perform the steps of the first aspect above, or any possible embodiment of the first aspect.
[0026] In a fourth aspect, an embodiment of the present disclosure further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the first aspect above, or any possible embodiment of the first aspect.
[0027] The resource processing method and apparatus according to the embodiment of the present disclosure determine the current remaining resource amount of the second virtual resource in response to a trigger operation to supplement the first virtual resource, and when the remaining resource amount of the second virtual resource satisfies a predetermined condition, determine the consumption amount of the second virtual resource based on the resource amount conversion relationship between the first virtual resource and the second virtual resource and the supplemented amount of the first virtual resource, and finally update the remaining resource amounts of the first virtual resource and the second virtual resource based on the consumption amount of the second virtual resource and the supplemented amount of the first virtual resource. The embodiment of the present disclosure realizes the replenishment of the first virtual resource by converting the second virtual resource into the first virtual resource. This does not require interrupting the operation of the current virtual character to switch scenes to search for or establish a replenishment point of the first virtual resource. This enhances the smoothness and consistency of the virtual character interaction process.
[0028] In order to make the above objectives, features and advantages of the present disclosure comprehensible, preferred embodiments are given below with reference to the drawings and described in detail as follows. [Brief description of the drawings]
[0029] In order to more clearly explain the technical solutions according to the embodiments of the present disclosure, the following will briefly describe the drawings according to the embodiments. The drawings herein are incorporated in the specification and form a part of this specification. These drawings show embodiments consistent with the present disclosure and, together with the specification, explain the technical solutions according to the present disclosure. The drawings below only show some embodiments according to the present disclosure and should not be considered as limiting the technical scope, and it should be understood that those skilled in the art can obtain other related figures from these drawings in any case without creative labor.
[0030] [Figure 1] 4 illustrates a method flowchart of a type of resource processing according to an embodiment of the present disclosure. [Diagram 2]1 shows a schematic diagram of an interaction interface according to an embodiment of the present disclosure. [Diagram 3] FIG. 1 illustrates a schematic diagram of an apparatus for processing resources according to an embodiment of the present disclosure. [Figure 4] 1 shows a schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0031] In order to make the objectives, technical solutions and advantages of the embodiments of the present disclosure clearer, the following will clearly and completely describe the technical solutions of the embodiments of the present disclosure with reference to the drawings of the embodiments of the present disclosure. Of course, the described embodiments are only some of the embodiments of the present disclosure, not all of the embodiments of the present disclosure. Usually, the assemblies of the embodiments of the present disclosure described and shown in the drawings herein can be arranged and designed in various different arrangement ways. Therefore, the detailed description of the embodiments of the present disclosure in the drawings below is not intended to limit the technical scope of the present disclosure, but only to show selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by a person skilled in the art without creative labor are within the technical scope of the present disclosure.
[0032] Similar symbols and letters refer to similar things in the following figures, so it should be noted that if something is defined in one figure, further definition or interpretation in the next figure is omitted.
[0033] The technical term "and / or" in this description simply describes a related relationship and indicates that three relationships may exist. For example, A and / or B can represent three cases: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the technical term "at least one" in this specification represents any one of multiple types, or any combination of at least two of multiple types. For example, including at least one of A, B, and C represents including any one or more elements selected from the group consisting of A, B, and C.
[0034] Research has found that in some game scenes, there are usually many kinds of virtual resources with multiple uses. For example, when a virtual character performs a shooting operation using a virtual tool such as a firearm, virtual ammunition resources are consumed. Since virtual resources are finite, when these virtual resources are consumed, the virtual character cannot continue the previous action. For example, when performing a shooting operation, when the ammunition resource carried is consumed, the shooting operation cannot be continued and the virtual resource must be obtained again from the corresponding supply point. The supply point may be searched in the game scene or constructed by a virtual item carried by the virtual character. For example, an ammunition box can be placed in the game scene using an item carried by the virtual character, and the ammunition resource in the ammunition box can be obtained by performing an interaction operation on the ammunition box. In the process of obtaining virtual resources through a supply point, whether the user searches for a supply point or constructs a supply point, the user must stop the current operation first and then perform the supply operation for a large amount of time. This brings a strong sense of discontinuity to the playing process and the smoothness of the operation in the game is low.
[0035] Based on the above research, an embodiment of the present disclosure provides a resource processing method, which converts a second virtual resource into a first virtual resource, and improves the smoothness and consistency of the interaction process of the virtual character, since there is no need to interrupt the current operation of the virtual character and switch the game scene to search for or build a supply point of the first virtual resource.
[0036] 1 is a flowchart of a method for resource processing according to an embodiment of the present disclosure. An execution subject of the method may be a terminal device or a server controlling the terminal device, and an application can be executed on the terminal device, and the application is a game program. The game program provides game scenes and virtual objects related to the game program. The method includes steps S101 to S103.
[0037] S101: In response to a trigger operation that supplements a first virtual resource, a current remaining resource amount of a second virtual resource is identified.
[0038] In this step, when a trigger operation that supplements the first virtual resource is detected, a current remaining resource amount of the second virtual resource is first determined. Here, the first virtual resource may be a secondary resource in the game, such as a combat resource such as an ammunition resource or a recovery resource, and the second virtual resource may be a primary resource in the game, such as a power resource. Here, the primary resource has a wider range of uses than the secondary resource. Also, the primary resource can be converted into a secondary resource.
[0039] In some possible embodiments, the remaining amount of the second virtual resource in step S101 may be the remaining amount of the second virtual resource currently stored in a target device carried by a target virtual character, where the target virtual character may be a virtual character currently controlled by a user, the target device may be a power supply device in a game, such as a powered bracelet, etc., in which the second virtual resource is stored in an amount not exceeding a certain amount, and the target virtual character carries the target device.
[0040] S102: When the remaining resource amount of the second virtual resource satisfies a predetermined condition, the consumption amount of the second virtual resource is determined based on the resource amount conversion relationship between the first virtual resource and the second virtual resource and the supplemented amount of the first virtual resource.
[0041] In this step, it can be determined whether the remaining resource amount satisfies a predetermined condition. Specifically, the predetermined condition is set so that the remaining resource amount of the second virtual resource is equal to or greater than a predetermined resource amount. The predetermined resource amount can be set according to a minimum resource reserve amount corresponding to the target device, or can be determined according to a resource amount conversion relationship between the first virtual resource and the second virtual resource.
[0042] In this step, the total amount of the second virtual resource required for the first virtual resource to be supplemented may be determined first based on the resource amount conversion relationship, and then it is determined whether the remaining resource amount of the second virtual resource is equal to or greater than the required total amount. If the condition is met, the total amount of the required second virtual resource is set as the consumption amount of the second virtual resource. If the condition is not met, the maximum supplementable amount is determined based on the remaining resource amount of the second virtual resource and the resource amount conversion relationship, the above-mentioned supplemented amount is updated by the maximum supplementable amount, and the consumption amount of the second virtual resource corresponding to the maximum supplementable amount is set as the consumption amount of the above-mentioned second virtual resource.
[0043] For example, the amount of the first virtual resource to be supplemented may be an optimal amount of the supplemented resource. For example, the first virtual resource is supplemented up to the upper limit of storage. When it is determined that the remaining amount of the second virtual resource is less than the total amount of the second virtual resource required, the remaining amount of the second virtual resource is insufficient to convert the amount of the first virtual resource to be supplemented, but a part of the amount of the first virtual resource to be supplemented may be generated by the current remaining second virtual resource. The maximum amount of the second virtual remaining resource that can be converted into the first virtual resource is calculated, the amount of the first virtual resource is updated by the maximum amount of the second virtual resource, and the second virtual resource is consumed by the updated amount of the second virtual resource to supplement the first virtual resource. Here, the maximum amount of the second virtual resource is less than the original amount of the first virtual resource to be supplemented.
[0044] S103: Update the remaining resource amounts of the first virtual resource and the second virtual resource based on the consumed amount of the second virtual resource and the supplemented amount of the first virtual resource.
[0045] In this step, the consumption amount of the second virtual resource may be subtracted from the remaining resource amount of the second virtual resource, the remaining resource amount of the second virtual resource may be updated with the obtained difference value, the value to be supplemented of the first virtual resource may be added to the remaining resource amount of the first virtual resource, and the remaining resource amount of the first virtual resource may be updated with the obtained sum value.
[0046] In one possible embodiment, the second virtual resource is a power resource, the target device is a power supply device, and the first virtual resource is an ammunition resource in the combat resource.
[0047] Here, the ammunition resource may be one of many types of ammunition resources, such as a grenade, a 5mm caliber bullet, a stockpile, etc. The specific type may be specified by the type of ammunition indicated by the ammunition replacement trigger operation.
[0048] In the above case, step S101 may include determining the remaining power amount of a power supply device carried by the target virtual character in response to an ammunition replacement trigger operation for a target virtual instrument operated by the target virtual character.
[0049] In this step, the first virtual resource is an ammunition resource, and the trigger operation is a trigger operation for replacing bullets on a target virtual instrument operated by a target virtual character. The target virtual character may be a virtual character corresponding to a user and may carry a power supply device. The power supply device may store power resources. The target virtual instrument may be a virtual weapon that consumes the ammunition resource.
[0050] Here, the trigger operation may be a trigger operation that occurs when the remaining resource amount of the first virtual resource is not sufficient for one bullet replacement operation.
[0051] In the above case, step S102 may include determining the power consumption amount according to the amount of ammunition required for one bullet replacement of the target virtual instrument and the resource amount conversion relationship between the amount of ammunition and the amount of power when the remaining power amount of the power supply device satisfies a predetermined condition.
[0052] In this step, if the remaining power of the power supply device meets a predetermined condition, the product of the ammunition replacement amount required for one ammunition replacement of the target virtual instrument and the resource amount conversion relationship is determined, and if the product is equal to or less than the remaining power of the power supply device, the product can be used as the power consumption. If it is greater than the remaining power, the corresponding maximum supplementable amount and the power consumption corresponding to the maximum supplementable amount are determined.
[0053] In the above case, step S103 may include updating the amount of ammunition after ammunition replacement of the target virtual instrument and the remaining power amount of the power supply device based on the determined power consumption and the amount of ammunition required for one ammunition replacement of the target virtual instrument.
[0054] In this step, the identified power consumption amount is subtracted from the remaining power amount of the power supply device, and the obtained difference value is set as the remaining power amount after the update, and the amount of ammunition required for bullet replacement is added to the amount of ammunition before the bullets are replaced, and the sum obtained is set as the amount of ammunition after the bullets are replaced.
[0055] In this way, by converting the power resource into the ammunition resource, the target virtual character can obtain the ammunition resource early, which does not require a large amount of time to search for and build a supply point of the first virtual resource, and is convenient, fast, and has a high smoothness of operation.
[0056] Here, the first virtual resource may be a skill resource. The skill resource may be one type of virtual resource in a game, such as magic points, energy points, health points, etc. The virtual character can obtain a skill effect corresponding to the skill, such as obtaining a buff, obtaining damage, or adding an abnormal state, by consuming the skill resource. When the virtual character needs to supplement the skill resource, a trigger operation for supplementing the skill resource can be triggered. At this time, the consumption amount of the second virtual resource corresponding to the skill resource is identified, and then the remaining resource amounts of the skill resource and the second virtual resource are updated.
[0057] In addition, the first virtual resource may include multiple types of resources. In a specific embodiment, the second virtual resource can be used to simultaneously replenish multiple types of first virtual resources. For example, when a target virtual character simultaneously triggers a shooting operation and a skill release operation, the two types of resources can be simultaneously replenished based on power resources.
[0058] In the embodiment of the present disclosure, the above-mentioned second virtual resource may be generated by a virtual power generation device. The specific generation steps are as follows: presenting resource information collected by the target virtual character in a second virtual resource management interface; In response to a selection operation for at least one type of raw material in the raw material information, a virtual power generation device is started to convert the at least one raw material into electric power, and the converted electric power is input to a virtual storage battery. The virtual battery is used to power the power supply device.
[0059] In this step, the second resource management interface may present the raw material information collected by the target virtual character. The user selects at least one raw material in the raw material information through a selection operation. After detecting the selection operation, the virtual power generation device is controlled to start up, and the at least one raw material corresponding to the selection operation is converted into electricity, and the converted electricity is stored in the virtual storage battery.
[0060] Moreover, the raw materials may be virtual resources collected by the target virtual character in a game scene, such as wood, ore, etc. When the virtual power generation device converts the raw materials into electricity, the virtual power generation device determines the conversion time required for the conversion according to the conversion efficiency of the virtual power generation device and the resource value of the raw materials, and gradually converts the raw materials into electricity according to the conversion efficiency within the conversion time.
[0061] The virtual power generation equipment may include a plurality of types, such as a thermal power generation equipment, a wind power generation equipment, a nuclear power generation equipment, etc. Different conversion efficiencies may be set for different types of power generation equipment. During the power conversion process, the current power conversion progress may be displayed. The power conversion progress may include information such as the remaining conversion time, the amount of converted power, etc.
[0062] Here, the virtual battery may power a power supply device or other virtual objects in a game scene. When the virtual object is active, it realizes some virtual functions in the game and consumes power with a certain amount of power. For example, the virtual object may be a virtual building that needs to consume power, some skill objects that give buffs with power, etc. The virtual battery may be set with an upper limit for storing power. The maximum storage amount may be specified by the attribute value of the target virtual character in the game.
[0063] When performing power conversion, the power conversion may be controlled according to information such as the current amount of stored power, the maximum amount of stored power, the power consumption, and the power conversion efficiency of the virtual power generation device of the virtual storage battery. For example, if the remaining available space of the virtual storage battery is insufficient to store the power resources obtained by performing the conversion according to a predetermined conversion efficiency, the power conversion efficiency may be reduced to a value equal to or lower than the current power consumption. This allows the efficiency of generating power during power conversion of the virtual storage battery to be equal to or lower than the power consumption, thereby preventing power overflow during power conversion.
[0064] In the embodiment of the present disclosure, the power amount in the above power supply device gradually decreases with use. To this end, the power amount is supplemented to the power supply device by the following steps:
[0065] After the target virtual character reaches a location area where the virtual storage battery is present, the remaining amount of power after the virtual storage battery outputs power and the remaining amount of power after the power supply device supplements power are updated in response to a power supplement operation on the power supply device.
[0066] In this step, the power supply device carried by the target virtual character can perform power supplementation using the virtual storage battery. The target virtual character may move to a location area where the virtual storage battery is present, perform a power supplementation operation on the power supply device within the location area, update the remaining power amount after the virtual storage battery outputs power according to a predetermined charging efficiency and the remaining power amount after supplementing the power of the power supply device, and stop updating the remaining power amount after detecting the stop of the power supplementation operation. Here, the power supplementation operation may be stopped when the remaining power amount in the virtual storage battery is 0, may be stopped after the remaining power amount of the power supply device reaches a maximum value, or may be stopped proactively by the target virtual character.
[0067] In one possible embodiment, when updating the remaining resource amounts of the first virtual resource and the second virtual resource, effect data supplementing the first virtual resource may be presented to the target virtual character, for example, by presenting effect data such as generating an ammunition resource by 3D printing using a power supply device, the supplementary effect of the first virtual resource becomes more realistic.
[0068] In the embodiment of the present disclosure, when the virtual battery supplies power to a virtual object other than the target device, the user can use the virtual object to perform various tasks. For example, in response to a task execution operation on the virtual object, the virtual object is started, and a task execution effect corresponding to the task execution operation, such as generating a shield, constructing a virtual building, adding a buff, etc., is presented, and the remaining power amount after the virtual battery supplies power to the virtual object is updated. Specifically, the amount of power consumed in the task execution operation is subtracted from the remaining power amount before the update, and the obtained difference value is set as the remaining power amount of the virtual battery after the update.
[0069] Illustratively, FIG. 2 is a schematic diagram of an interaction interface according to an embodiment of the present disclosure. The interaction interface in FIG. 2 may be a game interface. The game interface may include a target virtual character A, a power supply device B, a virtual power generation device C, a virtual storage battery D, and a first virtual resource E. Here, the target virtual character A may be a virtual character controlled by a user. The user controls the target virtual character A to input a bullet replacement trigger operation, and converts the second virtual resource in the power supply device B into the first virtual resource E. The user may convert raw materials into electricity by the virtual power generation device C in the game scene, and store it in the virtual storage battery D, and transmit the electricity in the virtual storage battery D to the power supply device B.
[0070] The resource processing method according to the embodiment of the present disclosure first determines the current remaining resource amount of the second virtual resource in response to a trigger operation to supplement a first virtual resource, then determines the consumption amount of the second virtual resource based on the resource amount conversion relationship between the first virtual resource and the second virtual resource and the supplemented amount of the first virtual resource when the remaining resource amount of the second virtual resource satisfies a predetermined condition, and finally updates the remaining resource amounts of the first virtual resource and the second virtual resource based on the consumption amount of the second virtual resource and the supplemented amount of the first virtual resource. The embodiment of the present disclosure converts the second virtual resource into the first virtual resource, and does not require the user to interrupt the current operation to control the virtual character to search for or build a supply point of the first virtual resource, thereby improving the smoothness and consistency of the user operation and simplifying the supplement operation of the first virtual resource.
[0071] In the above method of the specific embodiment, the order of description of each step does not mean to limit the strict execution order or implementation process. It can be understood by those skilled in the art that the specific execution order of each step should be determined according to its function and possible underlying logic.
[0072] Based on the same inventive idea, the embodiment of the present disclosure further provides a resource processing device corresponding to the resource processing method. Since the principle of solving the problem of the device according to the embodiment of the present disclosure and the above resource processing method according to the embodiment of the present disclosure are similar, the implementation of the device can refer to the implementation of the method, and the overlapping parts will be omitted.
[0073] FIG. 3 is a schematic diagram of a resource processing device according to an embodiment of the present disclosure. The device includes: a response module 310 for determining a current remaining resource amount of the second virtual resource in response to a trigger operation that supplements the first virtual resource; a determination module 320 for determining a consumption amount of the second virtual resource according to a resource amount conversion relationship between the first virtual resource and the second virtual resource and a supplemented amount of the first virtual resource when the remaining resource amount of the second virtual resource satisfies a predetermined condition; an update module 330 for updating the remaining resource amount of each of the first virtual resource and the second virtual resource based on the consumption amount of the second virtual resource and the supplemented amount of the first virtual resource; Equipped with.
[0074] In one alternative embodiment, the response module 310 is specifically used to determine a remaining amount of a second virtual resource currently stored on a target device carried by a target virtual character in response to a trigger operation that supplements the first virtual resource.
[0075] In one alternative embodiment, the first virtual resource is a combat resource, the second virtual resource is a power resource, and the target device is a power supply.
[0076] In one alternative embodiment, the first virtual resource is an ammunition resource; Specifically, the response module 310 is used to determine the remaining power of a power supply device carried by the target virtual character in response to a trigger operation for replacing a bullet of a target virtual instrument operated by the target virtual character; The determining module 320 is specifically used to determine the power consumption according to the ammunition amount required for one round of ammunition replacement of the target virtual instrument and the resource amount conversion relationship between the ammunition amount and the power amount when the remaining power amount of the power supply device meets a predetermined condition; Specifically, the update module 330 is used to update the amount of ammunition of the target virtual instrument after ammunition replacement and the remaining power amount of the power supply device based on the determined power consumption and the amount of ammunition required for one ammunition replacement of the target virtual instrument.
[0077] In one alternative embodiment, the apparatus further comprises a conversion module, The conversion module includes: Displaying resource information collected by the target virtual character in a second virtual resource management interface; in response to a selection operation for at least one type of raw material in the raw material information, a virtual power generation device is started to convert the at least one type of raw material into electric power, and the converted electric power is input to a virtual storage battery; The virtual battery is used to power the power supply device.
[0078] In one optional embodiment, the device further includes a charging module for updating the remaining amount of power after outputting power from the virtual storage battery and the remaining amount of power after supplementing power from the power supply device in response to a power supplement operation on the power supply device after the target virtual character reaches a location area in which the virtual storage battery is located.
[0079] In one alternative embodiment, the device further comprises a playback module for presenting effect data supplementing the first virtual resource to a target virtual character when updating the remaining resource amount of each of the first virtual resource and the second virtual resource.
[0080] In one alternative embodiment, the virtual battery is further used to power at least one other virtual object other than the target device; The device further includes a task module for, in response to a task execution operation on the virtual object, activating the virtual object, presenting a task execution effect corresponding to the task execution operation, and updating the remaining amount of power in the virtual battery after powering the virtual object.
[0081] The description of the processing flow of each module in the apparatus and the interaction flow between each module may refer to the relevant description in the above method embodiment, and will be omitted here.
[0082] Corresponding to the resource processing method in FIG. 1, an embodiment of the present disclosure provides an electronic device 400. FIG. 4 is a structural schematic diagram of the electronic device 400 according to the embodiment of the present disclosure, which includes a processor 41, a memory 42, and a bus 43. The memory 42 is for storing execution instructions, and includes a memory 421 and an external storage device 422. The memory 421 here is also called an internal memory, and is used to temporarily store operation data in the processor 41 and data exchanged with the external storage device 422 such as a hard disk. The processor 41 exchanges data with the external storage device 422 through the memory 421, and when the electronic device 400 operates, the processor 41 communicates with the memory 42 through the bus 43, and causes the processor 41 to execute the following instructions: determining a current remaining resource amount of a second virtual resource in response to a trigger operation that captures the first virtual resource; When the remaining resource amount of the second virtual resource satisfies a predetermined condition, determine a consumption amount of the second virtual resource according to a resource amount conversion relationship between the first virtual resource and the second virtual resource and a supplemented amount of the first virtual resource; The remaining resource amounts of the first virtual resource and the second virtual resource are updated based on the consumed amount of the second virtual resource and the supplemented amount of the first virtual resource.
[0083] In one alternative embodiment, in the instructions executed by the processor 41, determining a current remaining resource amount of a second virtual resource in response to a trigger operation to supplement the first virtual resource includes determining a remaining resource amount of the second virtual resource currently stored in a target device carried by a target virtual character in response to a trigger operation to supplement the first virtual resource.
[0084] In one alternative embodiment, the processor 41 executes instructions such that the first virtual resource is a combat resource, the second virtual resource is a power resource, and the target device is a power supply.
[0085] In one alternative embodiment, in instructions executed by the processor 41, the first virtual resource is an ammunition resource.
[0086] Determining the current remaining resource amount of the second virtual resource in response to a trigger operation that supplements the first virtual resource includes determining the remaining power amount of a power supply device carried by a target virtual character in response to an ammunition replacement trigger operation for a target virtual instrument operated by the target virtual character.
[0087] As mentioned above, when the remaining resource amount of the second virtual resource satisfies a predetermined condition, determining the consumption amount of the second virtual resource based on the resource amount conversion relationship between the first virtual resource and the second virtual resource and the supplemented amount of the first virtual resource includes determining the power consumption based on the amount of ammunition required for one bullet replacement of the target virtual instrument and the resource amount conversion relationship between the amount of ammunition and the amount of power when the remaining power amount of the power supply device satisfies a predetermined condition.
[0088] Updating the remaining resource amount of each of the first virtual resource and the second virtual resource based on the consumption amount of the second virtual resource and the supplementary amount of the first virtual resource includes updating the amount of ammunition after ammunition replacement of the target virtual instrument and the remaining power amount of the power supply device based on the determined power consumption and the amount of ammunition required for one bullet replacement of the target virtual instrument.
[0089] In one alternative embodiment, the processor 41 further comprises: Presenting resource information collected by the target virtual character in a second virtual resource management interface; In response to a selection operation for at least one type of raw material in the raw material information, a virtual power generation device is started to convert the at least one type of raw material into electric power, and the converted electric power is input to a virtual storage battery; is used to carry out The virtual battery is used to power the power supply device.
[0090] In one alternative embodiment, the processor 41 further comprises: After the target virtual character reaches the location area where the virtual storage battery is located, the power supply device is used to update the remaining amount of power after the virtual storage battery outputs power and the remaining amount of power after the power supply device supplements power in response to a power supplement operation on the power supply device.
[0091] In one alternative embodiment, when updating the remaining resource amounts of each of the first virtual resource and the second virtual resource, the processor 41 is used to execute presenting effect data that supplements the first virtual resource to a target virtual character.
[0092] In one alternative embodiment, the virtual battery is further used to power at least one other virtual object other than the target device; The processor 41 is further used to, in response to a task execution operation on the virtual object, activate the virtual object, present a task execution effect corresponding to the task execution operation, and update the remaining amount of power in the virtual battery after powering the virtual object.
[0093] An embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, the computer program being adapted to perform the steps of the resource processing method in the above method embodiment when executed by a processor, and the storage medium being a volatile or non-volatile computer-readable storage medium.
[0094] The embodiments of the present disclosure further provide a computer program product carrying a program code, the program code including instructions for executing the steps of the resource processing method in the above method embodiment. Specifically, reference may be made to the above method embodiment, which is omitted here.
[0095] In addition, the above computer program product may be specifically realized in the form of hardware, software, or a combination thereof. In one alternative embodiment, the computer program product may be specifically realized as a computer storage medium. In another alternative embodiment, the computer program product may be specifically realized as a software product, such as a Software Development Kit (SDK), etc.
[0096] As will be apparent to those skilled in the art, for the sake of convenience, the specific operation steps of the above-described system or device may refer to the corresponding steps in the above-described method embodiments, and will be omitted here. In some embodiments of the present disclosure, it should be understood that the disclosed system, device, and method can be realized in other ways. The above-described device embodiment is exemplary. For example, the division of the units is merely a logical function division, and may have other division methods in actual implementation. Also, for example, multiple units or assemblies may be combined or integrated into another system, or some features may be omitted or not implemented. Note that the couplings or direct couplings or communication connections between the devices or units shown or discussed may be connected through some communication interfaces, and the indirect couplings or communication between the devices or units may be electronic, mechanical, or other forms.
[0097] The units described as separate components may or may not be physically separate. Components shown as units may or may not be physical units, i.e., located in one location or distributed across multiple network units. Some or all of the units may be selected to achieve the objective of the solution according to the present embodiment according to the actual needs.
[0098] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit.
[0099] The functions are realized in the form of software functional units, and when sold or used as an independent product, they can be stored in a non-volatile computer-readable storage medium that can be executed by one processor. Based on this understanding, the technical solution according to the present disclosure may be substantially, or a part of the technical solution may be expressed in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (such as a personal computer, a server, or a network device) to execute all or part of the steps of the method of each embodiment of the present disclosure. The storage medium includes various media capable of storing program codes, such as a USB, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0100] Finally, it should be explained that the above examples are merely specific embodiments of the present disclosure, and do not limit the technical solution of the present disclosure, but are merely illustrative, and the technical scope of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the above examples, those skilled in the art may still easily think of amending or changing the technical solutions described in the above examples within the technical scope disclosed in the present disclosure, or may equivalently replace some of the technical features therein. However, those skilled in the art should understand that these amendments, changes or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure in the essence of the corresponding technical solutions, and should be included in the technical scope of the present disclosure. Therefore, the technical scope of the present disclosure should be consistent with the technical scope of the claims.
Claims
1. In response to a trigger operation that supplements a finite first virtual resource consumed in response to a target virtual instrument operated by a target virtual character in a game scene, determining a current resource amount of a second virtual resource stored in a target device carried by the target virtual character together with the target virtual instrument; determining a total amount of the second virtual resource corresponding to the amount to be supplemented of the first virtual resource based on a resource amount conversion relationship between the first virtual resource and the second virtual resource, and if the current resource amount of the second virtual resource is equal to or greater than the total amount, determining the total amount as a consumption amount of the second virtual resource; if the current resource amount of the second virtual resource is less than the total amount, determining a maximum supplementable amount of the second virtual resource from the target device for supplementing the first virtual resource based on the current resource amount of the second virtual resource and the resource amount conversion relationship, updating the amount to be supplemented of the first virtual resource based on the maximum supplementable amount, and determining the maximum supplementable amount as a consumption amount of the second virtual resource; updating the current resource amount of the second virtual resource based on the consumed amount of the second virtual resource, and updating the remaining resource amount of the first virtual resource available for the target virtual character on the target virtual instrument based on the captured amount of the first virtual resource; 16. A method of resource processing comprising:
2. The first virtual resource is a combat resource, the second virtual resource is a power resource, and the target device is a power supply device.
2. The method of claim 1 .
3. the first virtual resource being an ammunition resource; Determining a current resource amount of the second virtual resource includes: determining a remaining amount of power of the power supply device carried by the target virtual character in response to an ammunition replacement trigger operation for the target virtual instrument that has consumed the ammunition resource in response to an operation by the target virtual character in the game scene; Determining the consumption of the second virtual resource includes: determining a product of an ammunition-power conversion relationship between an amount of ammunition and an amount of power and an amount of ammunition required for one ammunition replacement of the target virtual instrument, and if the remaining amount of power of the power supply device is equal to or greater than the product, determining the product as the amount of power consumed by the power supply device for replacing the ammunition of the target virtual instrument based on the remaining amount of power of the power supply device and the ammunition-power conversion relationship when the remaining amount of power of the power supply device is less than the product, determining a maximum amount of power that can be supplemented from the power supply device to partially achieve the replacement of the ammunition of the target virtual instrument based on the remaining amount of power of the power supply device and the ammunition-power conversion relationship, updating the required amount of ammunition based on the maximum amount of power that can be supplemented, and specifying the maximum amount of power that can be supplemented as the power consumption from the power supply device; The method of updating the current resource amount of the second virtual resource based on the consumed amount of the second virtual resource and updating the remaining resource amount of the first virtual resource that can be used by the target virtual character with the target virtual instrument based on the supplemented amount of the first virtual resource includes: updating the remaining power of the power supply device based on the power consumption, and updating the amount of ammunition after replacing the ammunition of the target virtual instrument based on the amount of ammunition required.
3. The method of claim 2 .
4. The method comprises: Presenting resource information collected by the target virtual character in a second virtual resource management interface; in response to a selection operation for at least one type of raw material in the raw material information, a virtual power generation device is started to convert the at least one type of raw material into electric power, and the converted electric power is input to a virtual storage battery; Further comprising: The virtual battery is for supplying power to the power supply device.
3. The method of claim 2 .
5. The method further includes updating the remaining amount of power after the virtual battery outputs power and the remaining amount of power after the power supply device supplements power in response to a power supplement operation on the power supply device after the target virtual character reaches a location area in which the virtual battery is present.
5. The method of claim 4.
6. When updating the remaining resource amount of the first virtual resource and the current resource amount of the second virtual resource, the method further includes presenting effect data representing a generation of the first virtual resource by transformation from the second virtual resource to supplement the first virtual resource to the target virtual character.
2. The method of claim 1 .
7. the virtual battery is further adapted to power at least one other virtual object other than the target device; The method further includes, in response to a task execution operation on the virtual object, activating the virtual object to present a task execution effect resulting from the task execution by the virtual object, and updating a remaining amount of power in the virtual battery after power is supplied to the virtual object.
5. The method of claim 4.
8. A response module for determining a current resource amount of a second virtual resource stored in a target device carried by a target virtual character together with a target virtual instrument in a game scene in response to a trigger operation that supplements a finite first virtual resource consumed in response to the operation in a target virtual instrument operated by the target virtual character; and a determination module for determining a total amount of the second virtual resource corresponding to a supplemented amount of the first virtual resource based on a resource amount conversion relationship between the first virtual resource and the second virtual resource, and if the current resource amount of the second virtual resource is equal to or greater than the total amount, determining the total amount as a consumption amount of the second virtual resource, and if the current resource amount of the second virtual resource is less than the total amount, determining a maximum supplementable amount of the second virtual resource from the target device for supplementing the first virtual resource based on the current resource amount of the second virtual resource and the resource amount conversion relationship, updating the supplemented amount of the first virtual resource based on the maximum supplementable amount, and determining the maximum supplementable amount as a consumption amount of the second virtual resource; an update module for updating the current resource amount of the second virtual resource based on the consumed amount of the second virtual resource, and updating the remaining resource amount of the first virtual resource available to the target virtual character on the target virtual instrument based on the supplemented amount of the first virtual resource; Equipped 16. A resource processing device comprising:
9. A processor, a memory and a bus are provided, The memory stores machine-readable instructions executable by the processor, and when the electronic device is in operation, communication is performed between the processor and the memory via a bus, and the machine-readable instructions, when executed by the processor, perform the steps of the resource processing method according to any one of claims 1 to 7.
1. An electronic device comprising:
10. A computer readable storage medium having stored thereon a computer program, which, when executed by a processor, performs the steps of the method for resource processing according to any one of claims 1 to 7. A computer-readable storage medium comprising:
Citation Information
Patent Citations
Entertainment system and method
JP2010527722A
Program, information storage medium, and game device
JP2011015857A
Game program, game device and game system
JP2011098229A
Information processing program, information processing system, and server
JP2019103768A
Game program, recording medium, game processing method, and information processing apparatus
JP2019208989A
