Virtual props operation method and device, storage medium and electronic device
By introducing target virtual props into virtual game scenes, the problem of long-term consumption of virtual equipment in virtual game scenes is solved, the rapid consumption of virtual equipment is achieved, and the game playability and game speed are improved.
Patent Information
- Application Number
- CN202210095211.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-26
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2042-01-26
AI Technical Summary
The time spent on virtual equipment is consumed in virtual game scenarios is long, and the existing technology has not effectively solved this problem.
By introducing the operation method of target virtual props in the virtual game scene, the operation controls of the virtual game scene and the target virtual props are displayed, and the target virtual props are released in response to the trigger operation of the operation control. Multiple virtual characters are determined according to the release area of the target virtual props. When the target virtual character consumes a certain amount of target virtual equipment, the corresponding number of target virtual equipment for other virtual characters is reduced.
It achieves the acceleration of virtual equipment consumption in virtual game scenarios, reduces the consumption time of virtual equipment in virtual game scenarios, and improves the playability and game speed of the game.
Smart Images

Figure CN114452648B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a method and device for operating virtual props, a storage medium, and an electronic device. Background Art
[0002] In related games, players can control virtual characters to use virtual props to perform attack operations on enemy virtual characters belonging to different camps, and their own virtual equipment will be consumed when performing attack operations. For example, in a game scene, virtual character A is a virtual character controlled by the player in the game scene. The player can control virtual character A to use virtual props such as bombing or shooting to attack the enemy's virtual character B. When controlling virtual character A to attack, the virtual equipment of virtual character A (such as bombs or bullets) will be consumed. Currently, the commonly used virtual props only consume their own virtual equipment when attacking the enemy, and the number of enemy virtual equipment will not be affected. As a result, it takes a long time to consume virtual equipment in the virtual game scene.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a method and device for operating a virtual prop, a storage medium, and an electronic device, so as to at least solve the technical problem that it takes a long time to consume virtual equipment in a virtual game scene.
[0005] According to one aspect of an embodiment of the present application, a method for operating a virtual prop is provided, comprising: displaying an operating control of a virtual game scene and a target virtual prop, wherein the operating control is in an activated state; in response to a triggering operation on the operating control, releasing the target virtual prop, and obtaining a plurality of virtual characters according to a release area of the target virtual prop; when a target virtual character among the plurality of virtual characters consumes a first quantity of target virtual equipment, reducing the quantity of the target virtual equipment of other virtual characters by a second quantity, wherein the other virtual characters are virtual characters among the plurality of virtual characters except the target virtual character, and the second quantity is related to the first quantity.
[0006] Optionally, the responding to the triggering operation of the operating control, releasing the target virtual prop, and obtaining multiple virtual characters according to the release area of the target virtual prop, includes: responding to the triggering operation of the operating control, releasing the target virtual prop, and marking the release area of the target virtual prop; determining the virtual character in the release area as a virtual character among the multiple virtual characters.
[0007] Optionally, determining the virtual character in the released area as the virtual character among the multiple virtual characters includes: determining the virtual character that appeared in the released area as the virtual character among the multiple virtual characters within a preset time after the target virtual prop is released.
[0008] Optionally, the method further comprises: displaying a countdown of a preset time length of the release area, wherein the virtual characters among the plurality of virtual characters are virtual characters that have appeared in the release area within the preset time length.
[0009] Optionally, when a target virtual character among the multiple virtual characters consumes a first quantity of target virtual equipment, the quantity of the target virtual equipment of other virtual characters is reduced by a second quantity, including: within the effective duration of the target virtual item, each time it is detected that the target virtual character consumes a first unit quantity of the target virtual equipment, the quantity of the target virtual equipment of the other virtual characters is reduced by a second unit quantity, wherein the first unit quantity is a positive integer that is 1 or greater than or equal to 2, and the second unit quantity is a positive integer that is 1 or greater than or equal to 2.
[0010] Optionally, a countdown of the effective effect time of the target virtual prop is displayed, wherein the effective effect time is the effect time of the target virtual prop on the virtual character that appeared in the release area of the target virtual prop.
[0011] Optionally, whenever the target virtual character is detected to have consumed the target virtual equipment in the first unit quantity, the quantity of the target virtual equipment of the other virtual characters is reduced by a second unit quantity, including: whenever the target virtual character is detected to have consumed the target virtual equipment in the first unit quantity, determining whether the target virtual character is a virtual character that has appeared in the release area; if it is determined that the target virtual character is a virtual character that has appeared in the release area, searching for the other virtual characters among the multiple virtual characters; if the other virtual characters are found, reducing the quantity of the target virtual equipment of the other virtual characters by the second unit quantity.
[0012] Optionally, the determining of virtual characters that have appeared in the release area of the target virtual prop to obtain multiple virtual characters includes at least one of the following: when the target virtual prop is released, the virtual character that appears in the release area is determined as a virtual character among the multiple virtual characters; within a preset time after the release of the target virtual prop, when a first virtual character moves from the outside of the release area to the inside of the release area, the first virtual character is determined as a virtual character among the multiple virtual characters; within a preset time after the release of the target virtual prop, when a second virtual character moves from the outside of the release area to contact with the release area, the second virtual character is determined as a virtual character among the multiple virtual characters.
[0013] Optionally, when a target virtual character among the multiple virtual characters consumes a first number of target virtual equipment, the number of target virtual equipment of other virtual characters is reduced by a second number, including: when the target virtual character consumes the first number of target virtual equipment, the number of target virtual props of virtual characters among the multiple virtual characters that belong to the same camp as the target virtual character is reduced by the second number; or, when the target virtual character consumes the first number of target virtual equipment, the number of target virtual equipment of virtual characters among the multiple virtual characters that belong to the same camp as the target virtual character is reduced by a first value, and the number of target virtual equipment of virtual characters among the multiple virtual characters that belong to different camps as the target virtual character is reduced by a second value, wherein , the second number includes the first value and the second value, and the second value is less than the first value; or, when the target virtual character consumes the first number of the target virtual equipment, the number of the target virtual props of the virtual characters belonging to different camps from the target virtual character among the multiple virtual characters is reduced by the second number, wherein the target virtual character and a third virtual character belong to the same camp, and the third virtual character is a virtual character using the target virtual prop; or, when the target virtual character consumes the first number of the target virtual equipment, the number of the target virtual equipment of the virtual characters belonging to different camps from the third virtual character among the multiple virtual characters is reduced by the second number, wherein the third virtual character is a virtual character using the target virtual prop.
[0014] Optionally, when a target virtual character among the multiple virtual characters consumes a first number of target virtual equipment, reducing the number of target virtual equipment of other virtual characters by a second number includes: when the number of target virtual equipment of the other virtual characters is greater than or equal to the first number, reducing the number of target virtual equipment of the other virtual characters by the first number, wherein the second number is equal to the first number; or, when the number of target virtual equipment of the other virtual characters is less than the first number, reducing the number of target virtual equipment of the other virtual characters to 0, wherein the second number is equal to the number of target virtual equipment of the other virtual characters.
[0015] Optionally, when the number of target virtual equipment of the other virtual character is less than the first number, reducing the number of target virtual equipment of the other virtual character by the second number includes: when the target virtual character among the multiple virtual characters uses shooting game props to consume a first number of virtual bullets in a first main clip, if the number of virtual bullets in a second main clip of the other virtual character is less than the first number, reducing the number of virtual bullets in the second main clip to 0, wherein the second number is equal to the number of virtual bullets in the main clip of the other virtual character.
[0016] Optionally, after reducing the number of virtual bullets in the main clip of the other virtual character to 0, the method further includes: in a case where the first main clip of the other virtual character is replaced with a third main clip, when the target virtual character among the multiple virtual characters consumes a third number of virtual bullets, if the number of virtual bullets in the third main clip is greater than or equal to the third number, reducing the number of virtual bullets in the third main clip by the third number; if the number of virtual bullets in the third main clip is less than the third number, reducing the number of virtual bullets in the third main clip to 0.
[0017] Optionally, when a target virtual character among the multiple virtual characters consumes a first number of target virtual equipment, reducing the number of target virtual equipment of other virtual characters by a second number, also includes: when the target virtual character uses the first number of virtual bombs to attack, reducing the number of virtual bombs of the other virtual characters by the second number; or, when the target virtual character uses the first number of virtual blood packs to recover blood, reducing the number of virtual blood packs of the other virtual characters by the second number.
[0018] According to another aspect of an embodiment of the present application, a virtual prop operating device is also provided, including: a display module, used to display a virtual game scene and an operating control of a target virtual prop, wherein the operating control is in an activated state; a release module, used to respond to a trigger operation on the operating control, release the target virtual prop, and obtain multiple virtual characters according to the release area of the target virtual prop; a processing module, used to reduce the number of target virtual equipment of other virtual characters by a second number when a target virtual character among the multiple virtual characters consumes a first number of target virtual equipment, wherein the other virtual characters are virtual characters among the multiple virtual characters except the target virtual character, and the second number is related to the first number.
[0019] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for operating virtual props when running.
[0020] According to another aspect of the embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs the above virtual prop operation method.
[0021] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the virtual prop operation method through the computer program.
[0022] In an embodiment of the present application, when the target virtual prop is in an activated state, in response to a trigger operation on an operation control, the target virtual prop is released, and multiple virtual characters are determined according to the release area of the target virtual prop, and while the target virtual character among the multiple virtual characters consumes the first amount of target virtual equipment, the number of target virtual equipment of the virtual characters other than the target virtual character among the multiple virtual characters is reduced by a second amount. Since an association relationship is generated between all virtual characters that have appeared in the release area of the above-mentioned release of the target virtual prop, that is, while any one of the multiple virtual characters consumes the target virtual equipment, the number of target virtual equipment of the virtual characters other than the target virtual character among the multiple virtual characters will also be reduced, and the target virtual equipment of the virtual characters among the multiple virtual characters can be quickly consumed, thereby achieving the technical effect of accelerating the consumption of virtual equipment and reducing the consumption time of virtual equipment in the virtual game scene, and thus solving the technical problem of a long time of consuming virtual equipment in the virtual game scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0024] Figure 1 is a schematic diagram of an application environment of an optional method for operating a virtual prop according to an embodiment of the present application;
[0025] Figure 2 is a flow chart of an optional method for operating a virtual prop according to an embodiment of the present application;
[0026] Figure 3 is a schematic diagram of an optional game screen according to an embodiment of the present application;
[0027] Figure 4 is a schematic diagram of an optional release area of a target virtual prop according to an embodiment of the present application;
[0028] Figure 5 is another optional game screen schematic diagram according to an embodiment of the present application;
[0029] Figure 6 is another optional game screen schematic diagram according to an embodiment of the present application;
[0030] Figure 7 is another optional game screen schematic diagram according to an embodiment of the present application;
[0031] Figure 8 is another optional game screen schematic diagram according to an embodiment of the present application;
[0032] Fig. 9 is another optional game screen schematic diagram according to an embodiment of the present application;
[0033] Fig.10 is another optional game screen schematic diagram according to an embodiment of the present application;
[0034] Fig.11 is another optional game screen schematic diagram according to an embodiment of the present application;
[0035] Fig.12 is another optional game screen schematic diagram according to an embodiment of the present application;
[0036] Fig.13 is a schematic diagram of a touch range of an optional shooting control according to an embodiment of the present application;
[0037] Fig.14 is another optional game screen schematic diagram according to an embodiment of the present application;
[0038] Fig.15 is an overall flow chart of an optional method for operating a virtual prop according to an embodiment of the present application;
[0039] Fig.16 is a schematic structural diagram of an optional virtual props operating device according to an embodiment of the present application;
[0040] Fig.17 is a schematic structural diagram of an optional electronic device according to an embodiment of the present application;
[0041] Fig.18 It is a block diagram of a computer system structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0044] According to one aspect of the embodiment of the present application, a virtual prop operation is provided. Optionally, as an optional implementation, the virtual prop operation method can be but is not limited to being applied to: Figure 1 The application environment includes a user device 102, a network 110 and a server 112, wherein the user device 102 includes a memory 104, a processor 106 and a display 108. The memory is used to store game data, the processor is used to process game data, and the display is used to display game screens.
[0045] Optionally, in this embodiment, the user equipment may be a terminal device configured with a target client, which may include but is not limited to at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, etc. The target client may be a video client, an instant messaging client, a browser client, a game client, etc.
[0046] Optionally, the network 110 may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network and a wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that implement wireless communication.
[0047] Optionally, the server 112 includes a database 114 and a processing engine 116, wherein the database is used to store game data, and the processing engine is used to process the game data.
[0048] The server may be a single server, a server cluster consisting of multiple servers, or a cloud server. The above is only an example and is not limited in this embodiment.
[0049] Optionally, as an optional implementation, as Figure 2 As shown, the operation method of the above virtual props includes:
[0050] Step S202, displaying the operation controls of the virtual game scene and the target virtual props, wherein the operation controls are in an activated state;
[0051] The target virtual props can be displayed in application games, such as shooting games or racing games. The target virtual props can be virtual props for big moves such as lightning, bombs, and flames, or virtual props for shooting games. When a trigger operation of the operating control is detected, the target virtual props are triggered to be used, such as Figure 3 In the game screen shown, the operation control is 300 in the figure, the cooling time of the target virtual prop is over, the operation control is in an activated state and is highlighted, and when the player triggers the operation control 300, the target virtual prop is triggered for use. The above triggering operations include but are not limited to touch operations, press operations, joystick operations, etc. in various interactive scenarios such as touch screens, keyboards, and handles.
[0052] Step S204, in response to the triggering operation on the operation control, releasing the target virtual prop, and obtaining a plurality of virtual characters according to the release area of the target virtual prop;
[0053] The target virtual props to be released may be bombs or shooting props. After releasing the target virtual props, a release area will be generated. For example, an explosion range can be generated by throwing a bomb. The explosion range can be a release area. Figure 4 FIG. 1 is a schematic diagram of an optional release area of a target virtual prop according to an embodiment of the present application. Figure 4 This is a schematic diagram of the interface when a player controls a virtual character to attack with a virtual prop in a game application. 400 in the figure is the area generated after the virtual prop is released. Assuming that three virtual characters appear in the release area 400 of the target virtual prop, including: virtual character A, virtual character B and virtual character C, multiple virtual characters can be obtained as {A, B, C}.
[0054] Step S206, when a target virtual character among the multiple virtual characters consumes a first quantity of target virtual equipment, reducing the quantity of the target virtual equipment of other virtual characters by a second quantity, wherein the other virtual characters are virtual characters among the multiple virtual characters except the target virtual character, and the second quantity is related to the first quantity.
[0055] Among them, multiple virtual characters include Figure 4In the virtual character A, virtual character B and virtual character C, the target virtual character may be a virtual character that actively initiates the operation of consuming the target virtual equipment among the multiple virtual characters. For example, if virtual character A actively initiates the operation of consuming the target virtual equipment, virtual character A is determined as the target virtual character. The target virtual equipment may be a bullet. The target virtual props used by the virtual characters among the multiple virtual characters may be the same virtual prop or the same type of props. For example, the virtual props currently used by the virtual characters among the multiple virtual characters may all be the same prop, such as virtual shooting props of type 1. When virtual character A consumes a first number of bullets using virtual shooting props of type 1, the number of bullets corresponding to the virtual shooting props of type 1 currently used by virtual characters B and virtual character C among the multiple virtual characters is reduced by a second number respectively. The virtual props currently used by the virtual characters among the multiple virtual characters may also be the same type of props, such as virtual shooting props of different models of shooting. Assuming that virtual character A currently uses virtual shooting props of type 1, virtual characters B and C currently use virtual shooting props of type 2. When virtual character A consumes a first number of bullets using a virtual shooting prop of type 1, the number of bullets corresponding to the virtual shooting prop of type 2 currently used by virtual characters B and C among the multiple virtual characters is respectively reduced by a second number.
[0056] Assuming that when virtual character A consumes 8 bullets, the number of bullets in the clips of virtual character B and virtual character C are 8 and 9 respectively, then the number of bullets of virtual character B and virtual character C will be reduced by 8 respectively, that is, the remaining bullet in the clip of virtual character B is 0, and the remaining bullet in the clip of virtual character C is 1. Assuming that when virtual character A consumes 8 bullets, the number of bullets in the clips of virtual character B and virtual character C are 4 and 9 respectively, and the clip of virtual character B has less than 8 bullets, then only the number of bullets of virtual character B will be reduced by 4, and the number of bullets of virtual character C will be reduced by 8, that is, the remaining bullet in the clip of virtual character B is 0, and the remaining bullet in the clip of virtual character C is 1.
[0057] Optionally, the responding to the triggering operation of the operating control, releasing the target virtual prop, and obtaining multiple virtual characters according to the release area of the target virtual prop, includes: responding to the triggering operation of the operating control, releasing the target virtual prop, and marking the release area of the target virtual prop; determining the virtual character in the release area as a virtual character among the multiple virtual characters.
[0058] As an optional implementation, the target virtual props can be a shooting virtual props, such as Figure 4As shown, after the player triggers the operation control, the virtual prop can be released in response to the triggering operation of the operation control. At this time, the player can control the virtual character to use the target virtual prop to shoot. Each bullet fired can be an explosive. After the bullet hits an obstacle, it will explode. After the explosion, an explosion range will be generated. The explosion range can be the release area of the target virtual prop. The release area is marked and displayed in the virtual scene, such as Figure 4 400 in the figure is a released area displayed, and virtual characters A, B and C appearing in the explosion range are determined as virtual characters among the multiple virtual characters.
[0059] Optionally, determining the virtual character in the released area as the virtual character among the multiple virtual characters includes: determining the virtual character that has appeared in the released area within a preset time length of the released area as the virtual character among the multiple virtual characters.
[0060] As an optional implementation, the multiple virtual characters and the virtual character that releases the target virtual prop may belong to different camps. Figure 5 As shown, all virtual characters that appear in the release area 500 within the preset time after the target virtual prop is released are determined to be virtual characters among the multiple virtual characters. For example, when the release area appears, the initial multiple virtual characters located in the release area include virtual character A, virtual character B and virtual character C. The preset time is 5S. When there are 2S left in the countdown of the preset time, virtual character D enters the release area 500, then virtual character D is determined to be a virtual character among the multiple virtual characters, that is, the multiple virtual characters are {A, B, C, D}.
[0061] Optionally, the method further includes: displaying a target mark for a virtual character that has appeared in the release area, wherein the target mark is used to indicate that the virtual character has appeared in the release area; and / or, displaying a countdown for the preset time length, wherein the virtual character among the multiple virtual characters is a virtual character that has appeared in the release area within the preset time length.
[0062] As an optional embodiment, the target marker can be Figure 6 As shown in 600, all virtual characters that have appeared in the release area 601 are displayed in the upper right corner of the game interface. Assuming that the virtual characters that have appeared in the release area 600 include virtual character A, virtual character B, virtual character C and virtual character D, virtual character A, virtual character B, virtual character C and virtual character D are displayed in 600.
[0063] like Figure 6As shown, a countdown of a preset duration can be displayed above the release area 601. Assuming that the current release area preset duration is 5S and the countdown of the preset duration is 2S, "Countdown: 2S" is displayed above the release area 601, indicating that before the preset duration ends, the virtual character that has appeared in the release area 601 will be determined as a virtual character among multiple virtual characters.
[0064] Optionally, the method further comprises: displaying a countdown of the effective duration of the target virtual item, wherein the effective duration is the duration of the target virtual item's effect on a virtual character that has appeared in the target virtual item's release area. Displaying a countdown of the effective duration of the target virtual item's effect, wherein the effective duration is the duration of the target virtual item's effect on a virtual character that has appeared in the target virtual item's release area.
[0065] The target virtual props can be virtual shooting props. After the player uses the virtual props to generate a release area, such as Figure 6 As shown, the countdown of the effective effect time of the target virtual prop can be displayed above the virtual character in area 600. The effective effect time can be 10S, 8S or 6S. There is no restriction on the value of the effective effect time here, which can be determined according to actual conditions. Assuming that the effective effect time of the release area 601 is 10S, the countdown of the effective effect time corresponding to the current virtual character A, virtual character B, virtual character C and virtual character D is 7S, then the countdown of the effective effect time of the four virtual characters A, B, C and D is 7S in 600.
[0066] Optionally, when a target virtual character among the multiple virtual characters consumes a first quantity of target virtual equipment, reducing the quantity of the target virtual equipment of other virtual characters by a second quantity includes: within the effective duration of the target virtual item, whenever it is detected that the target virtual character consumes a first unit quantity of the target virtual equipment, reducing the quantity of the target virtual equipment of the other virtual characters by a second unit quantity, wherein the first unit quantity is a positive integer that is 1 or greater than or equal to 2, and the second unit quantity is a positive integer that is 1 or greater than or equal to 2.
[0067] As an optional implementation, the target virtual prop can be a virtual shooting prop, the effective action time can be 10S, 8S or 6S, and the specific value can be selected according to the actual situation. The target virtual equipment can be the bullets in the bullet clip, and the first unit quantity represents the number of bullets consumed by the target virtual character each time shooting. Assume that the target virtual character is virtual character A, and the other virtual characters in the multiple virtual characters are virtual character B. The number of bullets in the current bullet clip of virtual character A is 50, and the number of bullets in the current bullet clip of virtual character B is 40. The effective action time of the target virtual prop is 10S, and the first unit quantity is 1. Then, within the effective action time of 10S, after virtual character A consumes 1 bullet after shooting, Figure 7 As shown, the number of target virtual equipment in the lower right corner of the perspective interface of virtual character A is reduced by 1, from 50 to 49. At the same time, the number of target virtual equipment in the lower right corner of the perspective interface of virtual character B is also reduced by 1, from 40 to 39.
[0068] Optionally, whenever the target virtual character is detected to have consumed the target virtual equipment in the first unit quantity, the quantity of the target virtual equipment of the other virtual characters is reduced by a second unit quantity, including: whenever the target virtual character is detected to have consumed the target virtual equipment in the first unit quantity, determining whether the target virtual character is a virtual character that has appeared in the release area; if it is determined that the target virtual character is a virtual character that has appeared in the release area, searching for the other virtual characters among the multiple virtual characters; if the other virtual characters are found, reducing the quantity of the target virtual equipment of the other virtual characters by the second unit quantity.
[0069] As an optional implementation, assume that virtual character A is the target virtual character, the multiple virtual characters include virtual character A, virtual character B and virtual character C, the target virtual equipment is the bullet used for shooting, the first unit quantity is 1, and the second unit quantity is 1. Assume that before virtual character A initiates a shooting operation to consume the target virtual equipment, the remaining target virtual equipment of virtual character A, virtual character B and virtual character C are all 50. Figure 8 In the perspective of virtual character A shown in FIG. 1 , when virtual character A initiates a shooting operation, one target virtual equipment will be consumed, and the number of target virtual equipment will change from 50 to 49. At this time, it is necessary to determine whether virtual character A has appeared in the release area. If it is determined that virtual character A has appeared in the release area, then find other virtual characters among multiple virtual characters, namely virtual character B and virtual character C, such as Figure 8The perspectives of the virtual character B and the virtual character C shown reduce the number of target virtual equipment of the virtual character B and the virtual character C by 1, that is, the number of target virtual equipment of the virtual character B and the virtual character C is changed from 50 to 49.
[0070] Optionally, obtaining multiple virtual characters according to the release area of the target virtual prop includes at least one of the following: when the target virtual prop is released, the virtual character in the release area is determined as the virtual character among the multiple virtual characters; within a preset time after the target virtual prop is released, when a first virtual character moves from the outside of the release area to the inside of the release area, the first virtual character is determined as the virtual character among the multiple virtual characters; within a preset time after the target virtual prop is released, when a second virtual character moves from the outside of the release area to contact with the release area, the second virtual character is determined as the virtual character among the multiple virtual characters.
[0071] As an optional implementation, the target virtual prop may be a virtual shooting prop, and the release area may be an area formed by the explosion of the virtual shooting prop after the virtual bullet is fired and encounters an obstacle. When the target virtual prop is used to generate the release area, all virtual characters appearing in the release area may be determined as virtual characters among the multiple virtual characters, such as Fig. 9 As shown, virtual character A, virtual character B, virtual character C and virtual character D all appear in the release area 900, then it can be determined that virtual character A, virtual character B, virtual character C and virtual character D are virtual characters among the multiple virtual characters.
[0072] Assuming that the first virtual character is virtual character C, the preset duration is 5S, and the countdown of the current preset duration is 2S, then within the time range from when the release area is generated to when the duration ends, the virtual character that moves from outside the release area to inside the release area is determined as a virtual character among the multiple virtual characters, such as Fig. 9 As shown, assuming that when the duration countdown is 2S, the virtual character C moves from outside the release area to inside the release area, the virtual character C is determined to be a virtual character among the multiple virtual characters.
[0073] Assuming that the second virtual character is virtual character D, the preset duration of the release area 900 is 5 seconds, and the countdown of the current preset duration is 2 seconds, then within the time range from when the release area is generated to the end of the duration, the virtual character that moves outside the release area and contacts the release area is determined as a virtual character among the multiple virtual characters, such as Fig. 9 As shown, assuming that when the duration countdown is 2S, the virtual character D moves from outside the release area to a position in contact with the release area, the virtual character D is determined to be a virtual character among the multiple virtual characters.
[0074] Optionally, when a target virtual character among the multiple virtual characters consumes a first number of target virtual equipment, the number of target virtual equipment of other virtual characters is reduced by a second number, including: when the target virtual character consumes the first number of target virtual equipment, the number of target virtual props of virtual characters among the multiple virtual characters that belong to the same camp as the target virtual character is reduced by the second number; or, when the target virtual character consumes the first number of target virtual equipment, the number of target virtual equipment of virtual characters among the multiple virtual characters that belong to the same camp as the target virtual character is reduced by a first value, and the number of target virtual equipment of virtual characters among the multiple virtual characters that belong to different camps as the target virtual character is reduced by a second value, wherein , the second number includes the first value and the second value, and the second value is less than the first value; or, when the target virtual character consumes the first number of the target virtual equipment, the number of the target virtual props of the virtual characters belonging to different camps from the target virtual character among the multiple virtual characters is reduced by the second number, wherein the target virtual character and a third virtual character belong to the same camp, and the third virtual character is a virtual character using the target virtual prop; or, when the target virtual character consumes the first number of the target virtual equipment, the number of the target virtual equipment of the virtual characters belonging to different camps from the third virtual character among the multiple virtual characters is reduced by the second number, wherein the third virtual character is a virtual character using the target virtual prop.
[0075] As an optional implementation, assuming that virtual character A is the target virtual character, the multiple virtual characters include virtual character A, virtual character B and virtual character C, virtual character A and virtual character B are in the same camp, virtual character A and virtual character C are in different camps, and the first number can be 2. When virtual character A consumes 2 target virtual equipment, the second number can be 2, that is, the target virtual props of virtual character B are reduced by 2. The above first number and second number can be selected according to actual conditions, and this application does not limit this.
[0076] In one embodiment, assuming that virtual character A is the target virtual character, the multiple virtual characters include virtual character A, virtual character B and virtual character C, virtual character A and virtual character B are in the same camp, virtual character A and virtual character C are in different camps, the first quantity can be 2, the first value can be 2, and the second value can be 1. When virtual character A consumes 2 target virtual equipment, the number of target virtual props of virtual character B belonging to the same camp as virtual character A is reduced by 2, and at the same time, the number of target virtual props of virtual character C belonging to a different camp from virtual character A is reduced by 1. The above first quantity and second quantity can be selected according to actual conditions, and this application does not impose any restrictions on this.
[0077] In one embodiment, assuming that virtual character A is the target virtual character, the multiple virtual characters include virtual character A, virtual character B, and virtual character C, virtual character A and virtual character B are in the same camp, virtual character A and virtual character C are in different camps, and the third virtual character is a virtual character that uses the target virtual props, and the first quantity and the second quantity can both be 2. When virtual character A and the third virtual character belong to the same camp, when virtual character A consumes 2 target virtual props, the target virtual props of virtual character C are reduced by 2.
[0078] In one embodiment, assuming that virtual character A is the target virtual character, the multiple virtual characters include virtual character A, virtual character B, and virtual character C, virtual character A and virtual character B are in the same camp, virtual character A and virtual character C are in different camps, and the third virtual character is a virtual character that uses the target virtual props, and the first quantity and the second quantity can both be 2. When virtual character A and the third virtual character belong to different camps, when virtual character A consumes 2 target virtual props, the target virtual props of virtual character B are reduced by 2.
[0079] Optionally, when a target virtual character among the multiple virtual characters consumes a first number of target virtual equipment, reducing the number of target virtual equipment of other virtual characters by a second number includes: when the number of target virtual equipment of the other virtual characters is greater than or equal to the first number, reducing the number of target virtual equipment of the other virtual characters by the first number, wherein the second number is equal to the first number; or, when the number of target virtual equipment of the other virtual characters is less than the first number, reducing the number of target virtual equipment of the other virtual characters to 0, wherein the second number is equal to the number of target virtual equipment of the other virtual characters.
[0080] As an optional implementation, assuming that virtual character A is the target virtual character, the first quantity can be 8, and the other virtual characters can be virtual characters B and C. Before virtual character A consumes the target virtual equipment, the target equipment quantities of virtual characters A, B and C are 10, 9 and 4 respectively, that is, the target virtual equipment quantity of virtual character B is greater than the first quantity 8, and the target virtual equipment quantity of virtual character C is less than the first quantity 8. Fig.10 As shown, when virtual character A consumes 8 target virtual equipment, the remaining number of target virtual equipment can be seen from the perspective of virtual character A as 10-8, which is equal to 2, and the remaining number of target virtual equipment can be seen from the perspective of virtual character B as 9-8, which is equal to 1. Because the number of target virtual equipment of virtual character C is less than 8, only the current 4 target virtual equipment are subtracted, that is, the remaining number of target virtual equipment can be seen from the perspective of virtual character C from 4 to 0.
[0081] Optionally, when the number of target virtual equipment of the other virtual character is less than the first number, reducing the number of target virtual equipment of the other virtual character by the second number includes: when the target virtual character among the multiple virtual characters uses shooting game props to consume a first number of virtual bullets in a first main clip, if the number of virtual bullets in a second main clip of the other virtual character is less than the first number, reducing the number of virtual bullets in the second main clip to 0, wherein the second number is equal to the number of virtual bullets in the main clip of the other virtual character.
[0082] As an optional implementation, assume that virtual character A is the target virtual character, virtual character C is another virtual character, the target virtual prop is a virtual bullet, and virtual character A can use shooting game props, such as various types of virtual shooting props, and virtual bullets will be consumed during shooting. Fig.11 As shown, assuming that the number of virtual bullets in the first main clip of virtual character A is 10, and the number of virtual bullets in the second main clip of virtual character C is 4, when virtual character A consumes 8 virtual bullets in the first main clip, the number of remaining bullets in the first main clip can be seen as 2 from the perspective of virtual character A. At the same time, since there are only 4 virtual bullets in the second main clip of virtual character C, the number of virtual bullets in the second main clip of virtual character C is reduced to 0, as shown in FIG. Fig.11 From the perspective of virtual character C, the second number is 4 at this time.
[0083] Optionally, after reducing the number of virtual bullets in the main clip of the other virtual character to 0, the method further includes: in a case where the first main clip of the other virtual character is replaced with a third main clip, when the target virtual character among the multiple virtual characters consumes a third number of virtual bullets, if the number of virtual bullets in the third main clip is greater than or equal to the third number, reducing the number of virtual bullets in the third main clip by the third number; if the number of virtual bullets in the third main clip is less than the third number, reducing the number of virtual bullets in the third main clip to 0.
[0084] As an optional implementation, assuming that virtual character B and virtual character C are other virtual characters, virtual character A is the target virtual character, the third number can be 8, before virtual character A consumes virtual bullets, after virtual character B and virtual character C both replace the second main magazine with the third main magazine, assuming that the number of virtual bullets in the third main magazine of virtual character B is 9, and the number of virtual bullets in the third main magazine of virtual character C is 4, such as Fig.12 As shown, when the number of virtual bullets consumed by virtual character A among multiple virtual characters is 8, the remaining number of virtual bullets in the third main magazine can be seen from the perspective of virtual character B as 9-8, which is equal to 1, and the remaining number of virtual bullets in the third main magazine can be seen from the perspective of virtual character C as 0.
[0085] Optionally, when a target virtual character among the multiple virtual characters consumes a first number of target virtual equipment, reducing the number of target virtual equipment of other virtual characters by a second number, also includes: when the target virtual character uses the first number of virtual bombs to attack, reducing the number of virtual bombs of the other virtual characters by the second number; or, when the target virtual character uses the first number of virtual blood packs to recover blood, reducing the number of virtual blood packs of the other virtual characters by the second number.
[0086] As an optional implementation, assuming that virtual character A is the target virtual character, virtual character B and virtual character C are other virtual characters, and assuming that the target virtual equipment is a virtual bomb, the first number may be 8, that is, when virtual character A uses 8 bombs to attack, the number of virtual bombs of virtual character B and virtual character C can be reduced by 8 at the same time. Assuming that the target virtual equipment is a blood pack, the first number may be 2, and when virtual character A uses 2 blood packs to recover blood, the blood packs of virtual character B and virtual character C can be reduced by 2 at the same time.
[0087] Optionally, the method further includes: in the case where the target virtual prop is a shooting game prop, when the object launched by the target virtual prop collides with a target obstacle, determining the collision position between the object launched by the target virtual prop and the target obstacle as the attack position of the target virtual prop; determining an area within a preset range of the attack position as the release area of the target virtual prop; in the case where the target virtual prop is a throwing game prop, when the target virtual prop collides with a target obstacle, determining the collision position between the target virtual prop and the target obstacle as the attack position of the target virtual prop; and determining an area within a preset range of the attack position as the release area of the target virtual prop.
[0088] As an optional implementation, when the target virtual prop is a shooting game prop, bullets can be fired, and the target obstacle can be a box, a house, or a stone, etc. The target virtual prop can be a virtual shooting prop. Assuming that the target virtual prop has 8 bullets in total, each bullet fired can be an explosive, and the bullet will explode after hitting the target obstacle. Fig.14 As shown, the target obstacle can be aimed at by the lens, and a bullet can be fired at the target obstacle. The intersection point where the bullet collides with the target obstacle is determined as the attack position 1400 of the target virtual prop. The preset range can be a sphere with the attack position 1400 as the center and a preset value as the radius. The preset radius can be 5 meters or 10 meters. There is no restriction on the shape and radius of the preset range. The area within the preset range of the attack position is determined as the release area of the target virtual prop. For example, Fig.14 The spherical shape in the image is used as a release area, which will not cause damage to the virtual characters entering the area. However, as long as they enter the release area, a function will be triggered that causes the virtual characters in multiple virtual characters to consume bullets together.
[0089] The target virtual props can also be throwing game props, such as bombs. The target obstacles can be boxes, stones, etc. Assuming that the target virtual props have a total of 8 bombs, the bomb thrown for the first time will explode after hitting the target obstacle. The collision position between the bomb and the target obstacle is determined as the attack position of the target virtual prop, and the area within the preset range of the attack position is determined as the release area of the target virtual prop. The release area can be the explosion range generated by throwing bombs, such as the flame range generated by the explosion. The release area will not cause harm to the virtual characters entering, but as long as they are infected by the flame range, the function of consuming bullets together will be triggered.
[0090] Optionally, determining the collision position between the object launched by the target virtual prop and the target obstacle as the attack position of the target virtual prop includes: in response to a trigger operation on a shooting control, emitting a virtual ray from a sight of the target virtual prop to the aiming position of the target virtual prop, wherein the operating control of the target virtual prop is the shooting control; when the virtual ray collides with the target obstacle, determining the collision position between the virtual ray and the target obstacle as the attack position.
[0091] As an optional implementation, when the virtual character aims at the enemy, such as Fig.14 As shown, firing can be completed by responding to the trigger operation of the shooting control. At the moment of shooting, a virtual ray will be emitted to detect physical collision. The target obstacle can be a box, or a house or other obstacles. If the virtual ray detects and collides with the target obstacle, the collision position of the virtual ray and the target obstacle is determined as the attack position 1400.
[0092] Optionally, in response to a trigger operation on a shooting control, emitting a virtual ray from a sight of the target virtual prop to an aiming position of the target virtual prop, comprises: obtaining a touch position of a target account on the screen, wherein the target virtual prop is a virtual prop controlled by the target account; and when the touch position is within a touch range of the displayed shooting control, in response to the trigger operation, emitting the virtual ray from the sight of the target virtual prop to the aiming position of the target virtual prop, wherein the touch range is a circular area with the shooting control as the center and a preset length as the radius.
[0093] As an optional implementation, the touch position of the target account on the screen may be obtained, such as Fig.13 As shown, it is assumed that A, B and C are all acquired touch positions, where O is the center position of the touch range 1300 of the shooting control, and OP is the radius distance of the touch range of the shooting control, such as Fig.13 As shown, when the touch position is A and B, that is, outside the touch range, no virtual ray will be emitted in response to the trigger operation. When the touch position is C, that is, within the touch range, a virtual ray will be emitted in response to the trigger operation.
[0094] Optionally, the releasing the target virtual prop in response to the triggering operation of the operating control includes: in response to the triggering operation of the throwing control, throwing the target virtual prop from the current position of the target virtual prop along the target throwing direction, wherein the operating control of the target virtual prop is the throwing control; and determining the collision position of the target virtual prop and the target obstacle as the attack position of the target virtual prop includes: when the target virtual prop collides with the target obstacle, determining the collision position of the target virtual prop and the target obstacle as the attack position.
[0095] As an optional implementation, the operation control may be a throwing control, the target virtual prop may be a bomb, and the target obstacle may be a box or a stone, etc. When it is detected that the throwing control is touched, the bomb is thrown along the target throwing direction, and when the bomb collides with the target obstacle such as a box or a stone, the collision position between the bomb and the target obstacle is determined as the attack position.
[0096] The server will record all the virtual characters in the release area of the target virtual props. When a virtual character opens fire, it will determine whether the virtual character is in the release area, and then find out other virtual characters that are also in the release area. During this period, the number of bullets consumed by the virtual character controlled by the firing player will be calculated on the other virtual characters in the release area, and then synchronized to the client, so that the virtual characters in the release area of the target virtual props can consume the same number of bullets at the same time.
[0097] The above-mentioned operation method of virtual props can be applied to moba shooting games. Taking the above-mentioned operation method of using virtual props in moba shooting games as an example, the above-mentioned target virtual props can be virtual shooting props in moba shooting games. Players log in to the moba shooting game client through their game account, and the operation controls of the virtual shooting props are displayed on the game screen of the client, and the cooling time of the virtual shooting props is displayed. After the cooling time of the virtual shooting props ends, the operation controls are highlighted. Players use the virtual shooting props to aim at the attack position by touching the highlighted operation controls and fire virtual bullets at the attack position. When a virtual bullet collides with a virtual object in a virtual scene, the explosion range of the virtual bullet explosion is the above-mentioned release area. Within the preset time length (for example, 10 seconds) of the player releasing the bomb, multiple virtual characters appear in the above-mentioned release area. During the effective action time (for example, 5 seconds), if a virtual character among the multiple virtual characters consumes a certain number of virtual equipment (for example, 5 bullets), then other virtual characters among the multiple virtual characters will simultaneously deduct a corresponding number of virtual equipment, which may be the above-mentioned 5 virtual bullets. When the number of virtual bullets remaining for the virtual character is less than 5, all the remaining bullets may be deducted.
[0098] Through this application, players can use the above-mentioned target virtual props to attack the enemy. In the release area of the target virtual props, if a player uses a certain number of virtual props, the players in the release area also consume a certain number of virtual props at the same time. Players can choose the attack position of the target virtual props according to the actual game scene, so that there is uncertainty in the range of rapid consumption of virtual props in the virtual game scene, which can bring players a more thrilling game experience and improve the playability of the game. In addition, in this application, by quickly consuming virtual props, the game can be accelerated, so that the game can be determined in a shorter time, improving the player's game experience.
[0099] As an optional implementation, the overall flow chart of the operation method of the virtual props is as follows: Fig.15 As shown:
[0100] Step S1501: Equip the target virtual prop;
[0101] Step S1502: Detect whether the target virtual item is activated. If not, return to step S1501. If activated, execute step S1503.
[0102] Step S1503, highlighting the skill icon of the target virtual item;
[0103] Step S1504, detecting whether the target virtual item is clicked to be used, if not, returning to step S1503, and executing step S1505 after clicking;
[0104] Step S1505, switching out a launcher that can launch the target virtual equipment;
[0105] Step S1506, detecting whether the target virtual equipment is launched, if not launched, returning to step S1505, and executing step S1507 after launching;
[0106] Step S1507, releasing the target virtual equipment;
[0107] Step S1508, detecting whether the target virtual equipment collides with the target obstacle area, if not, returning to step S1507, and executing step S1509 if it collides;
[0108] Step S1509, the target virtual equipment explodes and the infected virtual characters in the release area are calculated;
[0109] Step S1510, detecting whether the target virtual character among the multiple virtual characters has fired, if not, returning to step S1509 to continue the detection, if fired, executing step S1511;
[0110] Step S1511, causing other virtual characters among the multiple virtual characters to consume the target virtual equipment at the same time;
[0111] Step S1512, detecting whether the effective duration of the release area has ended, if not, continuing to step S1510, if it has ended, executing step S1513;
[0112] Step S1513: other virtual characters among the multiple virtual characters will no longer consume the target virtual equipment at the same time.
[0113] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0114] According to another aspect of the embodiment of the present application, a virtual props operating device for implementing the above-mentioned virtual props operating method is also provided. Fig.16As shown, the device includes: a display module 1602, which is used to display the virtual game scene and the operation control of the target virtual prop, wherein the operation control is in an activated state; a release module 1604, which is used to respond to the triggering operation of the operation control, release the target virtual prop, and obtain multiple virtual characters according to the release area of the target virtual prop; a processing module 1606, which is used to reduce the number of the target virtual equipment of other virtual characters by a second number when the target virtual character among the multiple virtual characters consumes the first number of target virtual equipment, wherein the other virtual characters are virtual characters other than the target virtual character among the multiple virtual characters, and the second number is related to the first number.
[0115] Optionally, the above-mentioned device is also used to respond to the triggering operation of the operation control, release the target virtual prop, and mark the release area of the target virtual prop; determine the virtual character in the release area as a virtual character among the multiple virtual characters.
[0116] Optionally, the apparatus is further configured to determine, within a preset time period after the target virtual item is released, a virtual character that has appeared in the release area as a virtual character among the multiple virtual characters.
[0117] Optionally, the above-mentioned device is further used to display a countdown of the preset time length, wherein the virtual characters among the multiple virtual characters are virtual characters that have appeared in the release area within the preset time length.
[0118] Optionally, the above-mentioned device is also used to reduce the quantity of the target virtual equipment of the other virtual characters by a second unit quantity during the effective duration of the target virtual item, whenever it is detected that the target virtual character consumes a first unit quantity of the target virtual equipment, wherein the first unit quantity is a positive integer that is 1 or greater than or equal to 2, and the second unit quantity is a positive integer that is 1 or greater than or equal to 2.
[0119] Optionally, the above device is also used to display a countdown of the effective action time of the target virtual prop, wherein the effective action time is the action time of the target virtual prop on the virtual character that appeared in the release area of the target virtual prop.
[0120] Optionally, the above-mentioned device is also used to determine whether the target virtual character is a virtual character that has appeared in the release area whenever it is detected that the target virtual character consumes the first unit quantity of the target virtual equipment; if it is determined that the target virtual character is a virtual character that has appeared in the release area, search for the other virtual characters among the multiple virtual characters; if the other virtual characters are found, reduce the quantity of the target virtual equipment of the other virtual characters by the second unit quantity.
[0121] Optionally, the above-mentioned device is also used to determine the virtual character in the release area as a virtual character among the multiple virtual characters when the target virtual prop is released; within a preset time after the target virtual prop is released, when the first virtual character moves from the outside of the release area to the inside of the release area, determine the first virtual character as a virtual character among the multiple virtual characters; within a preset time after the target virtual prop is released, when the second virtual character moves from the outside of the release area to contact with the release area, determine the second virtual character as a virtual character among the multiple virtual characters.
[0122] Optionally, the above-mentioned device is also used to reduce the number of target virtual props of virtual characters belonging to the same camp as the target virtual character among the multiple virtual characters by the second number when the target virtual character consumes the first number of target virtual equipment; when the target virtual character consumes the first number of target virtual equipment, reduce the number of target virtual equipment of virtual characters belonging to the same camp as the target virtual character among the multiple virtual characters by a first value, and reduce the number of target virtual equipment of virtual characters belonging to different camps as the target virtual character among the multiple virtual characters by a second value, wherein the second number includes the first value and the second value, and the second The value is less than the first value; when the target virtual character consumes the first quantity of the target virtual equipment, the quantity of the target virtual equipment of the virtual characters among the multiple virtual characters that belong to different camps as the target virtual character is reduced by the second quantity, wherein the target virtual character and a third virtual character belong to the same camp, and the third virtual character is a virtual character that uses the target virtual prop; when the target virtual character consumes the first quantity of the target virtual equipment, the quantity of the target virtual equipment of the virtual characters among the multiple virtual characters that belong to different camps as the third virtual character is reduced by the second quantity, wherein the third virtual character is a virtual character that uses the target virtual prop.
[0123] Optionally, the above-mentioned device is also used to reduce the number of target virtual equipment of the other virtual characters by the first number when the number of target virtual equipment of the other virtual characters is greater than or equal to the first number, wherein the second number is equal to the first number; and to reduce the number of target virtual equipment of the other virtual characters to 0 when the number of target virtual equipment of the other virtual characters is less than the first number, wherein the second number is equal to the number of target virtual equipment of the other virtual characters.
[0124] Optionally, the above-mentioned device is also used to, when a target virtual character among the multiple virtual characters uses a shooting game prop to consume a first number of virtual bullets in a first main clip, if the number of virtual bullets in a second main clip of the other virtual characters is less than the first number, reduce the number of virtual bullets in the second main clip to 0, wherein the second number is equal to the number of virtual bullets in the main clip of the other virtual characters.
[0125] Optionally, the above-mentioned device is also used to, in the case where the other virtual characters replace the second main magazine with the third main magazine, when the target virtual character among the multiple virtual characters consumes a third number of virtual bullets, if the number of virtual bullets in the third main magazine is greater than or equal to the third number, reduce the number of virtual bullets in the third main magazine by the third number; if the number of virtual bullets in the third main magazine is less than the third number, reduce the number of virtual bullets in the third main magazine to 0.
[0126] Optionally, the above-mentioned device is also used to reduce the number of virtual bombs of the other virtual characters by the second number when the target virtual character uses the first number of virtual bombs to attack; when the target virtual character uses the first number of virtual blood packs to recover blood, reduce the number of virtual blood packs of the other virtual characters by the second number.
[0127] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned virtual props operation method is also provided. The electronic device may be Fig.17 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a server as an example. Fig.17 As shown, the electronic device includes a memory 1702 and a processor 1704. The memory 1702 stores a computer program, and the processor 1704 is configured to execute the steps in any of the above method embodiments through the computer program.
[0128] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0129] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0130] S1, displaying the operation controls of the virtual game scene and the target virtual props, wherein the operation controls are in an activated state;
[0131] S2, in response to a triggering operation on the operation control, releasing the target virtual prop, and obtaining a plurality of virtual characters according to a release area of the target virtual prop;
[0132] S3, when a target virtual character among the multiple virtual characters consumes a first quantity of target virtual equipment, reducing the quantity of the target virtual equipment of other virtual characters by a second quantity, wherein the other virtual characters are virtual characters among the multiple virtual characters except the target virtual character, and the second quantity is related to the first quantity.
[0133] Alternatively, a person skilled in the art may understand that: Fig.17 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, and other terminal devices. Fig.17 The electronic device and the electronic equipment described above are not limited in structure. Fig.17 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.17 Different configurations shown.
[0134] Among them, the memory 1702 can be used to store software programs and modules, such as the program instructions / modules corresponding to the operating method and device of the virtual props in the embodiments of the present application. The processor 1704 executes various functional applications and data processing by running the software programs and modules stored in the memory 1702, that is, realizing the above-mentioned operating method of the virtual props. The memory 1702 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1702 may further include a memory remotely arranged relative to the processor 1704, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1702 can be specifically, but not limited to, used to store information such as sample characteristics of items and target virtual resource accounts. As an example, such as Fig.17As shown, the memory 1702 may include, but is not limited to, the display module 1602, the release module 1604, and the processing module 1606 in the virtual props operation device. In addition, other module units in the virtual props operation device may also be included but are not limited to, which will not be repeated in this example.
[0135] Optionally, the transmission device 1706 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 1706 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1706 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0136] In addition, the electronic device further includes: a display 1708 for displaying the operation controls of the target virtual item; and a connection bus 1710 for connecting the various module components in the electronic device.
[0137] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes may form a peer-to-peer (P2P, Peer To Peer) network, and any form of computing device, such as a server, terminal and other electronic devices, may become a node in the blockchain system by joining the peer-to-peer network.
[0138] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 1809, and / or installed from a removable medium 1811. When the computer program is executed by a central processor 1801, various functions provided in the embodiments of the present application are executed.
[0139] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0140] Fig.18 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.
[0141] It should be noted that Fig.18The computer system 1800 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0142] like Fig.18 As shown, the computer system 1800 includes a central processing unit 1801 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 1802 (ROM) or the program loaded from the storage part 1808 to the random access memory 1803 (RAM). Various programs and data required for system operation are also stored in the random access memory 1803. The central processing unit 1801, the read-only memory 1802 and the random access memory 1803 are connected to each other through a bus 1804. The input / output interface 1805 (Input / Output interface, i.e., I / O interface) is also connected to the bus 1804.
[0143] The following components are connected to the input / output interface 1805: an input section 1806 including a keyboard, a mouse, etc.; an output section 1807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1808 including a hard disk, etc.; and a communication section 1809 including a network interface card such as a LAN card, a modem, etc. The communication section 1809 performs communication processing via a network such as the Internet. A drive 1810 is also connected to the input / output interface 1805 as needed. A removable medium 1811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1810 as needed so that a computer program read therefrom is installed into the storage section 1808 as needed.
[0144] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1809, and / or installed from the removable medium 1811. When the computer program is executed by the central processor 1801, various functions defined in the system of the present application are executed.
[0145] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.
[0146] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0147] S1, displaying the operation controls of the virtual game scene and the target virtual props, wherein the operation controls are in an activated state;
[0148] S2, in response to a triggering operation on the operation control, releasing the target virtual prop, and obtaining a plurality of virtual characters according to a release area of the target virtual prop;
[0149] S3, when a target virtual character among the multiple virtual characters consumes a first quantity of target virtual equipment, reducing the quantity of the target virtual equipment of other virtual characters by a second quantity, wherein the other virtual characters are virtual characters among the multiple virtual characters except the target virtual character, and the second quantity is related to the first quantity.
[0150] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0151] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0152] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0153] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0154] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0155] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0156] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for operating a virtual item, characterized in that: include: Displaying operation controls of a virtual game scene and a target virtual prop, wherein the operation controls are in an activated state; In response to a trigger operation on the operation control, the target virtual prop is released, and a plurality of virtual characters are obtained according to a release area of the target virtual prop; When a target virtual character among the multiple virtual characters consumes a first quantity of target virtual equipment, the quantity of the target virtual equipment of other virtual characters is reduced by a second quantity, wherein the other virtual characters are virtual characters among the multiple virtual characters except the target virtual character, and the second quantity is related to the first quantity.
2. The method according to claim 1, characterized in that The step of responding to the triggering operation of the operation control, releasing the target virtual prop, and obtaining a plurality of virtual characters according to the release area of the target virtual prop, comprises: In response to a triggering operation on the operation control, the target virtual item is released, and the release area of the target virtual item is marked; The virtual character in the released area is determined as a virtual character among the plurality of virtual characters.
3. The method according to claim 2, characterized in that Determining the virtual character in the released area as a virtual character among the plurality of virtual characters comprises: Within a preset time period after the target virtual item is released, the virtual character in the released area is determined as a virtual character among the multiple virtual characters.
4. The method according to claim 3, characterized in that The method further comprises: A countdown of the preset time length is displayed, wherein the virtual characters among the plurality of virtual characters are virtual characters that have appeared in the release area within the preset time length.
5. The method according to claim 1, characterized in that When a target virtual character among the plurality of virtual characters consumes a first amount of target virtual equipment, reducing the amount of the target virtual equipment of other virtual characters by a second amount comprises: During the effective duration of the target virtual item, whenever it is detected that the target virtual character consumes a first unit amount of the target virtual equipment, the quantity of the target virtual equipment of the other virtual characters is reduced by a second unit amount, wherein the first unit amount is a positive integer that is 1 or greater than or equal to 2, and the second unit amount is a positive integer that is 1 or greater than or equal to 2.
6. The method according to claim 5, characterized in that The method further comprises: The countdown of the effective effect time of the target virtual prop is displayed, wherein the effective effect time is the effect time of the target virtual prop on the virtual character that has appeared in the release area of the target virtual prop.
7. The method according to claim 5, characterized in that The step of reducing the quantity of the target virtual equipment of the other virtual characters by a second unit quantity whenever it is detected that the target virtual character consumes the target virtual equipment by a first unit quantity comprises: Whenever it is detected that the target virtual character consumes the first unit of the target virtual equipment, determining whether the target virtual character is a virtual character that has appeared in the release area; In the case where it is determined that the target virtual character is a virtual character that has appeared in the release area, searching for the other virtual characters among the multiple virtual characters; When the other virtual character is found, the quantity of the target virtual equipment of the other virtual character is reduced by the second unit quantity.
8. The method according to claim 1, characterized in that The step of obtaining a plurality of virtual characters according to the release area of the target virtual props comprises at least one of the following: When the target virtual item is released, the virtual character in the release area is determined as a virtual character among the multiple virtual characters; Within a preset time after the target virtual item is released, when the first virtual character moves from outside the release area to inside the release area, determining the first virtual character as a virtual character among the plurality of virtual characters; Within a preset time period after the target virtual item is released, when a second virtual character moves from outside the release area to contact the release area, the second virtual character is determined as a virtual character among the plurality of virtual characters.
9. The method according to claim 1, characterized in that: When a target virtual character among the plurality of virtual characters consumes a first amount of target virtual equipment, reducing the amount of the target virtual equipment of other virtual characters by a second amount comprises: When the target virtual character consumes the first amount of the target virtual equipment, the number of the target virtual props of the virtual characters belonging to the same camp as the target virtual character among the multiple virtual characters is reduced by the second amount; or When the target virtual character consumes the first quantity of the target virtual equipment, the quantity of the target virtual equipment of the virtual characters that belong to the same camp as the target virtual character among the multiple virtual characters is reduced by a first value, and the quantity of the target virtual equipment of the virtual characters that belong to different camps than the target virtual character among the multiple virtual characters is reduced by a second value, wherein the second quantity includes the first value and the second value, and the second value is less than the first value; or When the target virtual character consumes the first amount of the target virtual equipment, reducing the amount of the target virtual props of a virtual character belonging to a different camp from the target virtual character among the multiple virtual characters by the second amount, wherein the target virtual character and a third virtual character belong to the same camp, and the third virtual character is a virtual character using the target virtual props; or When the target virtual character consumes the first quantity of the target virtual equipment, the quantity of the target virtual equipment of a virtual character belonging to a different camp from a third virtual character among the multiple virtual characters is reduced by the second quantity, wherein the third virtual character is a virtual character using the target virtual item.
10. The method according to claim 1, characterized in that When a target virtual character among the plurality of virtual characters consumes a first amount of target virtual equipment, reducing the amount of the target virtual equipment of other virtual characters by a second amount comprises: In the case where the number of the target virtual equipment of the other virtual characters is greater than or equal to the first number, reducing the number of the target virtual equipment of the other virtual characters by the first number, wherein the second number is equal to the first number; or When the target number of virtual equipment of the other virtual character is less than the first number, the target number of virtual equipment of the other virtual character is reduced to 0, wherein the second number is equal to the target number of virtual equipment of the other virtual character.
11. The method according to claim 10, wherein when the number of the target virtual equipment of the other virtual character is less than the first number, reducing the number of the target virtual equipment of the other virtual character by the second number, comprises: In the case where a target virtual character among the multiple virtual characters uses a shooting game prop to consume a first number of virtual bullets in a first main clip, if the number of virtual bullets in a second main clip of the other virtual characters is less than the first number, the number of virtual bullets in the second main clip is reduced to 0, wherein the second number is equal to the number of virtual bullets in the main clip of the other virtual characters.
12. The method according to claim 11, after reducing the number of virtual bullets in the main magazine of the other virtual character to 0, the method further comprises: In the case where the second main magazine of the other virtual characters is replaced with a third main magazine, when the target virtual character among the multiple virtual characters consumes a third number of virtual bullets, if the number of virtual bullets in the third main magazine is greater than or equal to the third number, reducing the number of virtual bullets in the third main magazine by the third number; If the number of virtual bullets in the third main clip is less than the third number, the number of virtual bullets in the third main clip is reduced to 0.
13. The method according to any one of claims 1 to 12, wherein when a target virtual character among the plurality of virtual characters consumes a first amount of target virtual equipment, reducing the amount of the target virtual equipment of other virtual characters by a second amount, further comprises: When the target virtual character uses the first number of virtual bombs to attack, the number of virtual bombs of the other virtual characters is reduced by the second number; or, When the target virtual character uses the first number of virtual blood packs to recover blood, the number of virtual blood packs of the other virtual characters is reduced by the second number.
14. A virtual props operating device, characterized in that: include: A display module, used to display the virtual game scene and the operation controls of the target virtual props, wherein the operation controls are in an activated state; A release module, used to respond to a trigger operation on the operation control, release the target virtual prop, and obtain multiple virtual characters according to the release area of the target virtual prop; A processing module is used to reduce the quantity of the target virtual equipment of other virtual characters by a second quantity when a target virtual character among the multiple virtual characters consumes a first quantity of target virtual equipment, wherein the other virtual characters are virtual characters among the multiple virtual characters except the target virtual character, and the second quantity is related to the first quantity.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 13 when executed.
16. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.
17. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 13 through the computer program.
Citation Information
Patent Citations
Interactive event execution method and device, storage medium and electronic equipment
CN112370778A
Method and device for equipping virtual props in game, and electronic equipment
CN113069772A