Method, device and electronic equipment for allocating virtual resources
By determining the task set based on the user's identity and allocating virtual resource rewards, the problem of fixed reward methods in existing multiplayer games is solved, which enhances player participation and reduces waste of server resources.
Patent Information
- Application Number
- CN202410025217.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-05
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2044-01-05
AI Technical Summary
In existing multiplayer games, when players challenge the same monster or NPC, the problem of fixed reward methods cannot reflect the player's contribution in combat, affecting the game's enthusiasm for participation and resulting in wasting server resources.
Determine the task set based on the user's identity information in battle. Each task corresponds to a reward. After completing the task, the user receives a virtual resource reward, reflecting his contribution in battle.
By dynamically allocating virtual resource rewards, players can enhance their sense of participation and accomplishment in the game and reduce waste of server resources.
Smart Images

Figure CN118217639B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer processing technology, and more specifically, to a method, device and electronic device for allocating virtual resources. Background Art
[0002] With the rapid development of computer technology and Internet technology, a large number of game applications have appeared on terminals.
[0003] In the related art, rewards for multiple people jointly challenging the same monster or NPC are usually fixed in a fixed manner, that is, all players who participate in challenging the monster or NPC receive the same reward. However, this simple reward method cannot reflect the player's contribution in the challenge battle, thereby affecting the game players' enthusiasm for participating in the game, and further resulting in a waste of server service resources. Summary of the invention
[0004] An object of the embodiments of the present disclosure is to provide a solution for allocating virtual resources, which effectively reduces the problem of waste of service resources on the server side.
[0005] According to a first aspect of the present disclosure, a method for allocating virtual resources is provided, the method comprising: determining a task set of the user in the battle according to identity information of the user joining the battle; wherein the task set comprises at least one task, each task corresponds to a reward, and users with different identities have different task sets in the battle;
[0006] Based on the user completing the task, determining a virtual resource as a reward corresponding to the task;
[0007] The virtual resource is allocated to the user.
[0008] Optionally, the identity information indicates a method for the user to join the battle, and different identities correspond to different joining methods.
[0009] Optionally, the method further comprises:
[0010] In response to the user consuming the designated virtual resource to start the battle, determining that the user joins the battle as an initiator;
[0011] Adding the identity of the corresponding opener to the user; or,
[0012] In response to the user being invited to join the battle, determining that the user joins the battle as a participant;
[0013] Adding an identity identifier corresponding to the participant to the user;
[0014] The identity information includes the identity identifier of the user.
[0015] Optionally, in other game scenarios independent of the battle, the participants of the battle and the initiator of the battle belong to the same team.
[0016] Optionally, the user is the initiator of the battle, and the task set of the user in the battle includes a first task, and the first task includes: an output parameter value of the user in the battle is greater than a first threshold.
[0017] Optionally, the user is the initiator of the battle, and the task set of the user in the battle includes N second tasks, and the second task includes inviting a user to join the battle, and making the output parameter value of the invited user in the battle greater than a second threshold; wherein N is the upper limit of the number of people that the initiator can invite.
[0018] Optionally, the user is a participant in the battle, and the task set of the user in the battle includes a third task, and the third task includes: an output parameter value of the user in the battle is greater than a second threshold.
[0019] Optionally, the user is a participant in the battle, and the virtual resources rewarded for the task are related to the total output parameter value of all users in the battle, or to the proportion of the individual output value of the user in the battle in the total output value.
[0020] According to a second aspect of the present disclosure, there is also provided a device for allocating virtual resources, comprising: a first determining module, configured to determine a task set of the user in the battle according to identity information of the user joining the battle; wherein the task set includes at least one task, each task corresponds to a reward, and users with different identities have different task sets in the battle;
[0021] A second determination module, configured to determine a virtual resource as a reward corresponding to the task based on the user completing the task;
[0022] An allocation module is used to allocate the virtual resource to the user.
[0023] According to a third aspect of the present disclosure, an electronic device is further provided. The electronic device includes a memory and a processor. The memory is used to store a computer program. The processor is used to execute the method according to the first aspect of the present disclosure under the control of the computer program.
[0024] One beneficial effect of the disclosed embodiment is that the embodiment can determine the task set of the user in the battle based on the identity information of the user joining the battle. The task set can include at least one task, and each task corresponds to a reward. Based on the tasks completed by the user, the virtual resources corresponding to the task are determined, and the virtual resources are allocated to the user. In this way, users with different identities can obtain different and exclusive tasks for the identity, and obtain virtual resource rewards after completing the task, reflecting the contribution of the player of this identity in the battle. Thereby enhancing the sense of participation and accomplishment of the game players in the game, allowing the players to actively participate in the game, thereby avoiding the waste of server service resources.
[0025] Features and advantages of the embodiments of the present specification will become apparent from the following detailed description of exemplary embodiments of the present specification with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the specification and, together with the description, serve to explain the principles of the embodiments of the specification.
[0027] Figure 1 A schematic diagram of the hardware structure of an electronic device that can be used to implement the method for allocating virtual resources according to an embodiment of the present disclosure;
[0028] Figure 2 A flowchart of a method for allocating virtual resources according to some embodiments;
[0029] Figure 3 is a schematic diagram of an example of a method for virtual resource allocation according to some embodiments;
[0030] Figure 4 is a schematic diagram of an example of a method for virtual resource allocation according to some embodiments;
[0031] Figure 5 A schematic diagram showing the structure of an apparatus for allocating virtual resources according to some embodiments is shown;
[0032] Figure 6 A schematic diagram of the hardware structure of an electronic device according to some embodiments is shown. DETAILED DESCRIPTION
[0033] Various exemplary embodiments of the present specification will now be described in detail with reference to the accompanying drawings.
[0034] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the embodiments of the present specification and its application or uses.
[0035] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0036] It should be noted that all actions of acquiring signals, information or data in the embodiments of the present disclosure are performed in compliance with the corresponding data protection laws and policies of the country where the device is located, and with the authorization given by the owner of the corresponding device.
[0037] The disclosed embodiments relate to a scheme for allocating virtual resources. The game here may be a game with multiple camps, such as a SLG (Simulation Game), especially an MMOSLG (Massively Multiplayer Online Simulation Game), and of course other types of games, which are not limited here. In the relevant games, the player's character can move, operate or fight on virtual plots such as land, cities, and buildings.
[0038] Figure 1 A schematic diagram of the hardware structure of an optional electronic device 1000 for implementing the method of allocating virtual resources in an embodiment of the present disclosure is shown. The electronic device 1000 is installed with a client of a game application or other applications capable of running the game, etc., which are not limited here. The electronic device 1000 can be any terminal device capable of running a game, such as a mobile phone, a tablet computer, a PC, etc.
[0039] like Figure 1 As shown, the electronic device 1000 may include a processor 1101, a memory 1102, an interface device 1103, a communication device 1104, an output device 1105, an input device 1106, and the like. Figure 1 The hardware configuration shown is merely illustrative and is in no way intended to limit the present disclosure, its application, or uses.
[0040] The processor 1101 is used to execute a computer program, which can be written in an instruction set of an architecture such as x86, Arm, RISC, MIPS, SSE, etc. The memory 1102 includes, for example, ROM (read-only memory), RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 1103 includes, for example, a USB interface, a network cable interface, a headphone interface, etc. The communication device 1104 is capable of wired or wireless communication, for example, and the communication device 1104 may include at least one short-range communication module, for example, any module for short-range wireless communication based on short-range wireless communication protocols such as Hilink protocol, WiFi (IEEE 802.11 protocol), Mesh, Bluetooth, ZigBee, Thread, Z-Wave, NFC, UWB, LiFi, etc. The communication device 1104 may also include a remote communication module, for example, any module for WLAN, GPRS, 2G / 3G / 4G / 5G remote communication. The output device 1105 may include, for example, a liquid crystal display or a touch display, a speaker, etc. The input device 1106 may include, for example, a touch screen, a keyboard, a microphone, various sensors, etc.
[0041] In this embodiment, the memory 1102 of the electronic device 1000 is used to store a computer program, and the computer program is used to control the processor 1101 to operate so as to execute the method for allocating virtual resources according to any embodiment of the present disclosure.
[0042] Next, Figure 1 Taking the electronic device 1000 as an example, various embodiments of the method for allocating virtual resources are described.
[0043] <First Embodiment>
[0044] Figure 2 FIG. 1 is a flow chart showing a method for allocating virtual resources according to some embodiments. Figure 2 As shown, the method of this embodiment may include the following steps S210 and S230:
[0045] Step S210, determining the task set of the user in the battle according to the identity information of the user joining the battle; wherein the task set includes at least one task, each task corresponds to a reward, and users with different identities have different task sets in the battle.
[0046] In this embodiment, a graphical user interface may be provided by a terminal device, in which a game interface is displayed, and the game interface may display the user's task set, that is, display each task corresponding to the user in the battle. Figure 3 As shown, in Figure 3In the interface, the current user's tasks can be displayed, that is, the treasure chest reward part in the picture, which can include participation rewards, total damage rewards, etc. Each character will correspond to a reward, and the rewards for each task can be the same or different, and there is no limitation here.
[0047] In an example of this embodiment, the identity information indicates the user's way of joining the battle, and different identities correspond to different ways of joining.
[0048] In this embodiment, the battle in the embodiment of the present application may be started by a certain user. For example, the battle joined by the user may be a battle that requires certain virtual resources to be handed in before it can be started and challenged. The handed-in virtual resources may be props in the game, which is not limited here. In this example, the identity information may be a joining method that represents the user joining the battle, and the joining method may correspond to different user identities, such as an initiator, an assistant, a participant, and the like.
[0049] In an example of this embodiment, the method also includes: in response to a user consuming specified virtual resources to start a battle, determining that the user joins the battle as an initiator; adding an identity identifier corresponding to the initiator to the user; or, in response to the user being invited to join the battle, determining that the user joins the battle as a participant; adding an identity identifier corresponding to the participant to the user; wherein the identity information includes the identity identifier of the user.
[0050] In this embodiment, if a user consumes certain specific virtual resources to start a battle, the user's identity can be determined as the identity of the initiator. And the corresponding initiator's identity identifier, that is, identity information, is added to the user so that the task set can be determined later based on the identity information. It should be noted that the battle initiated by the initiator consuming virtual resources is not limited to the initiator directly opening the battle scene and entering the battle. The initiator initiating the battle can be a battle channel that starts a certain type of battle or gameplay, so that the initiator, his team, or invited users can engage in this type of battle or gameplay. For example, Figure 4 As shown, when the initiator BBB starts a battle, such as battle 2, the initiator BBB, his teammate AAA, or the user CCC they invited can enter the battle independently or in a group within a certain period of time to challenge. However, for any specific battle 2, regardless of whether BBB participates in it, BBB is the initiator in the battle.
[0051] In one example, when a user wants to consume virtual resources to start a battle, the user can perform operations in advance on the graphical user interface showing the relevant battles. For example, there are four battles that can be started in the graphical user interface, and in response to the user's operation on the start control of a battle, the user's designated virtual resources can be consumed to start the battle.
[0052] When a user is invited to join a battle, the user's identity can be determined as a participant. The corresponding participant's identity identifier, that is, identity information, is added to the user so that the task set can be determined later based on the identity information. It should be noted that in addition to the users who receive the battle invitation, in this example, for a certain type of battle mode, such as guild battles, gang battles, national battles, or team battles, after the initiator starts the battle, users who are eligible to participate in this type of battle can also be counted as users invited to join the battle when they enter the battle independently, and play the game as participants.
[0053] In the application embodiment, the user can be embodied by a certain virtual character of the user, or by the user's game account. For example, when the user is embodied by a certain virtual character, the user consumes a certain virtual resource of the character and starts the battle. The task set of the character in the battle can be determined based on the identity of the opener of the user's virtual character. So that the corresponding rewards for the tasks in the task set can be subsequently allocated to the user. Or, when the user is embodied by a game account, the user consumes a certain virtual resource in the account and starts the battle. The task set of the account in the battle can be determined based on the identity of the opener of the account, so that the corresponding rewards for completing the tasks can be subsequently allocated to the user. When allocating, the virtual resources can be allocated to a certain virtual character of the user, or the user's account, which is not limited here. In addition, in this example, the user can use one or more virtual characters in the account to fight according to the actual settings of the game to complete the tasks in the task set.
[0054] In this embodiment, in other game scenarios independent of the battle, the participants of the battle and the initiator of the battle belong to the same team.
[0055] In this example, the participants and initiators of a battle can be different users in the same fixed team. A fixed team means that there is a special fixed connection between users. For example, both the participants and the initiator belong to a certain team, season team, or sworn team. In this example, the started battle can be used as a team gameplay for users to play.
[0056] In this embodiment, the user is the initiator of the battle, and the task set of the user in the battle includes a first task, and the first task includes: an output parameter value of the user in the battle is greater than a first threshold.
[0057] When the user is the initiator of a battle, the user's task set in the battle may include basic output tasks. In this example, since the initiator has consumed a certain amount of virtual resources to initiate the battle, the first threshold may be set to a relatively low value, so that the initiator can complete the task relatively easily and obtain rewards later.
[0058] In another example of this embodiment, the user is the initiator of the battle, and the user's task set in the battle includes N second tasks, the second task includes inviting a user to join the battle, and making the output parameter value of the invited user in the battle greater than a second threshold; wherein N is the upper limit of the number of people that the initiator can invite.
[0059] In some examples, the user may be given an invitation permission for the battle, and the invitation permission restricts the user to invite the players of the team to which he belongs in other game scenes to join the battle as participants. The other game scenes are scenes independent of the battle. In these examples, the value of N may be set according to the number of people M in the team to which the user belongs in other game scenes, for example, N is M-1, etc. In these examples, the value of N may also be other set values, which are not limited here.
[0060] When a user is the initiator of a battle, the user's task set in the battle may also include multiple invitation-type tasks. In this example, in order to encourage cooperation and interaction between users, an invitation-type character may be set for the initiator so that the initiator can invite other users to join the battle, and a threshold is set. When the output parameter value of the invited user is greater than the threshold, the invited user is considered to have participated in the battle and made a contribution, so that the initiator receives a reward. At the same time, in one example, the second threshold is set to a value greater than the first threshold and relatively high to prevent the initiator from abusing the invitation mechanism and maliciously swiping rewards. At the same time, multiple such tasks may be set so that the more people the initiator invites, the more rewards he or she will receive.
[0061] In this embodiment, the task set of the opener may also include the first task and the second task mentioned above.
[0062] Step S220: determining virtual resources as a reward corresponding to the task based on the user completing the task.
[0063] Step S230: Allocate virtual resources to the user.
[0064] In this example, since each task corresponds to a reward, after a user completes a task, the reward corresponding to the task can be determined, and the virtual resources of the reward are allocated to the user who completes the task.
[0065] This embodiment can determine the task set of the user in the battle based on the identity information of the user joining the battle. The task set can include at least one task, and each task corresponds to a reward. Based on the tasks completed by the user, the virtual resources corresponding to the task are determined, and the virtual resources are allocated to the user. In this way, users with different identities can obtain different and exclusive tasks for the identity, and obtain virtual resource rewards after completing the task, reflecting the contribution of the player of this identity in the battle. This enhances the sense of participation and achievement of game players in the game, enables players to actively participate in the game, and thus avoids the waste of server service resources.
[0066] <Second Embodiment>
[0067] In the second embodiment, the method may include the following steps S310 to S330:
[0068] Step S310, determining the task set of the user in the battle according to the identity information of the user joining the battle; wherein the task set includes at least one task, each task corresponds to a reward, and users with different identities have different task sets in the battle.
[0069] In an example of this embodiment, the identity information indicates the user's way of joining the battle, and different identities correspond to different ways of joining.
[0070] In this embodiment, the method also includes: in response to the user consuming designated virtual resources to start a battle, determining to join the battle as an initiator; adding an identity identifier corresponding to the initiator to the user; or, in response to the user being invited to join the battle, determining that the user joins the battle as a participant; adding an identity identifier corresponding to the participant to the user; wherein the identity information includes the identity identifier of the user.
[0071] In this embodiment, the user is a participant in the battle, and the task set of the user in the battle includes a third task, and the third task includes: an output parameter value of the user in the battle is greater than a second threshold.
[0072] When the user is a participant in a battle, the user's task set in the battle can also include basic output tasks. In this example, since the initiator has already consumed a certain amount of virtual resources to start the battle, the second threshold that the participant needs to output can be set to be greater than the first threshold and a relatively high value, so that the participant can only get rewards after making a higher contribution to the battle. This strengthens the game player's sense of participation and achievement in the game and encourages the player to actively participate in the game.
[0073] In this embodiment, the users are participants in the battle, and the virtual resources rewarded for the tasks are related to the total output parameter value of all users in the battle, or to the proportion of the individual output value of the users in the battle in the total output value.
[0074] When a user is a participant in a battle, the user's task set in the battle may also include tasks related to total output. For example, the task may be that the total output parameter value is greater than a third threshold, or that the proportion of individual output value in the total output value is greater than a third threshold, etc. In some cases, since different users may have different responsibilities in a battle, the total output value of all characters participating in the battle may be used as a task-related indicator, so that non-output players can also obtain task-related rewards, thereby enhancing the player's sense of participation and achievement in the game.
[0075] Step S220: determining virtual resources as a reward corresponding to the task based on the user completing the task.
[0076] Step S230: Allocate virtual resources to the user
[0077] <Device Example>
[0078] Figure 5 FIG. 1 is a schematic diagram showing the composition structure of the apparatus 100 for allocating virtual resources according to an embodiment of the present disclosure. Figure 6 As shown, the virtual resource allocation device 100 includes a first determination module 1010 , a second determination module 1020 and an allocation module 1030 .
[0079] The first determination module 1010 is used to determine the task set of the user in the battle according to the identity information of the user joining the battle; wherein the task set includes at least one task, each task corresponds to a reward, and users with different identities have different task sets in the battle;
[0080] The second determination module 1020 is used to determine the virtual resources corresponding to the task as a reward based on the user completing the task;
[0081] The allocation module 1030 is used to allocate virtual resources to users.
[0082] In some embodiments, the identity information indicates the user's way of joining the battle, and different identities correspond to different ways of joining.
[0083] In some embodiments, the apparatus further comprises: an adding module, configured to:
[0084] In response to the user consuming the designated virtual resource to initiate a battle, determining to join the battle as an initiator;
[0085] Add the corresponding opener's identity to the user; or,
[0086] In response to the user being invited to join the battle, determining that the user joins the battle as a participant;
[0087] Add the corresponding participant's identity to the user;
[0088] The identity information includes the user's identity.
[0089] In some embodiments, in other game scenarios independent of combat, participants in combat are on the same team as the initiator of the combat.
[0090] In some embodiments, the user is the initiator of the battle, and the task set of the user in the battle includes a first task, and the first task includes: an output parameter value of the user in the battle is greater than a first threshold.
[0091] In some embodiments, the user is the initiator of the battle, and the user's task set in the battle includes N second tasks, the second task includes inviting a user to join the battle, and making the output parameter value of the invited user in the battle greater than a second threshold; wherein N is the upper limit of the number of people that the initiator can invite.
[0092] In some embodiments, the user is a participant in a battle, and the task set of the user in the battle includes a third task, and the third task includes: an output parameter value of the user in the battle is greater than a second threshold.
[0093] In some embodiments, the user is a participant in a battle, and the virtual resources rewarded for the task are related to the total output parameter value of all users in the battle, or to the proportion of the individual output value of the user in the battle in the total output value.
[0094] <Equipment Embodiment>
[0095] Figure 6 FIG. 1 shows a schematic diagram of the hardware structure of an electronic device according to some other embodiments. Figure 6 As shown, the electronic device 1100 includes a processor 1110 and a memory 1120, wherein the memory 1120 is used to store a computer program, and the computer program is used to control the processor 1110 to operate so as to control the electronic device 1100 to perform the method for allocating virtual resources according to any embodiment of the present disclosure. Figure 1 The electronic device 1000 shown may have the same hardware structure or may have a different hardware structure, which is not limited here.
[0096] An embodiment of the present disclosure further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method for allocating virtual resources according to any embodiment of the present disclosure is implemented.
[0097] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and equipment embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0098] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0099] The embodiments of the present specification may be devices, methods and / or computer program products. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the embodiments of the present specification.
[0100] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0101] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0102] The computer program instructions for executing the operation of the embodiments of this specification may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) may be personalized by utilizing the state information of a computer-readable program instruction, and the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of the embodiments of this specification.
[0103] Various aspects of the embodiments of the present specification are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (equipment) and computer program products according to the embodiments of the present specification. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0104] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0105] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0106] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of this specification. In this regard, each box in the flowchart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0107] The embodiments of the present specification have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations are obvious to those of ordinary skill in the art without departing from the scope of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for allocating virtual resources, characterized in that: The method comprises: In response to a user joining the battle as an initiator, adding an identity identifier corresponding to the initiator to the user; or, in response to the user joining the battle as a participant, adding an identity identifier corresponding to the participant to the user; Determine a task set of the user in the battle according to the identity information of the user joining the battle; wherein the task set includes at least one task, each task corresponds to a reward, and users with different identities have different task sets in the battle, and the identity information indicates the way the user joins the battle, and different ways of joining correspond to different identities, and the identity information includes the identity identifier of the user; in the case where the user is the initiator of the battle, the task set of the user in the battle includes a first task, and the first task includes: an output parameter value of the user in the battle is greater than a first threshold, and an output parameter value of a participant invited by the user is greater than a second threshold, wherein the second threshold is greater than the first threshold; in the case where the user is a participant of the battle, the task set of the user in the battle includes a third task, and the third task includes: an output parameter value of the user in the battle is greater than the second threshold; Based on the user completing the task, determining a virtual resource as a reward corresponding to the task; The virtual resource is allocated to the user.
2. The method according to claim 1, characterized in that The user joins the battle as an opener, including Based on the user consuming the designated virtual resource to initiate the battle, determining that the user joins the battle as an initiator; The user joins the battle as a participant, including: Based on the user being invited to join the battle, it is determined that the user joins the battle as a participant.
3. The method according to claim 1, characterized in that In other game scenarios independent of the battle, the participants of the battle belong to the same team as the initiator of the battle.
4. The method according to claim 1, characterized in that The user is the initiator of the battle, and the task set of the user in the battle includes N second tasks, and the second task includes inviting a user to join the battle, and making the output parameter value of the invited user in the battle greater than a second threshold; wherein N is the upper limit of the number of people that the initiator can invite.
5. The method according to claim 1, characterized in that The user is a participant in the battle, and the virtual resources rewarded for the task are related to the total output parameter value of all users in the battle, or to the proportion of the individual output value of the user in the battle in the total output value.
6. A device for allocating virtual resources, characterized in that: include: An adding module, for adding an identity identifier corresponding to the opener to the user in response to the user joining the battle as an opener; Alternatively, in response to the user joining the battle as a participant, adding an identity identifier corresponding to the participant to the user; A first determination module is used to determine a task set of the user in the battle according to the identity information of the user joining the battle; wherein the task set includes at least one task, each task corresponds to a reward, and users with different identities have different task sets in the battle, the identity information indicates the way the user joins the battle, different ways of joining correspond to different identities, and the identity information includes the identity identifier of the user; In the case where the user is the initiator of the battle, the task set of the user in the battle includes a first task, and the first task includes: the output parameter value of the user in the battle is greater than a first threshold, and the output parameter value of the participant invited by the user is greater than a second threshold, wherein the second threshold is greater than the first threshold; in the case where the user is a participant of the battle, the task set of the user in the battle includes a third task, and the third task includes: the output parameter value of the user in the battle is greater than the second threshold; A second determination module, configured to determine a virtual resource as a reward corresponding to the task based on the user completing the task; The allocation module is used to allocate the virtual resource to the user.
7. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the method according to any one of claims 1 to 5 under the control of the computer program.
Citation Information
Patent Citations
Task processing method, equipment, medium, program product and system
CN116848510A