Virtual item processing method and device, electronic equipment and storage medium
By determining and displaying the number to be discarded according to the duration during the virtual prop discard operation, and performing discarding after the operation is completed, the problems of high operation difficulty and high understanding cost in the prior art are solved, and virtual prop management that is simplified and matches the habits of gamers is realized.
Patent Information
- Application Number
- CN202410016722.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-04
- Publication Date
- 2025-07-04
AI Technical Summary
The existing virtual prop discarding method is difficult to operate and has high understanding cost, so it is impossible to effectively control the number of parts of the same virtual prop discarding.
By in response to the discarding operation of the virtual props, during the duration of the operation, the number to be discarded is determined and displayed according to the current duration, and the number of virtual props to be discarded after the operation is completed.
It simplifies the difficulty of virtual prop discarding, reduces the cost of understanding of gamers, and conforms to the usage habits of gamers.
Smart Images

Figure CN120242489A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of game technologies, and particularly to a method, apparatus, electronic device, and computer-readable storage medium for processing virtual items. Background Art
[0002] In virtual games, in order to reasonably manage and utilize the virtual items they own, game players usually need to perform a discard operation on virtual items during the game process.
[0003] In the existing virtual item discard methods, usually after a game player selects a virtual item to be discarded, a one-key discard of the item is performed through a simple discard operation. In the above process, if there are a large number of the same type of virtual items and the player needs to discard only a part of the same type of virtual items, the existing virtual item discard methods cannot meet the above requirements. If you want to discard a part of the items of the same type of virtual items, in the existing virtual item discard methods, based on the discard control, additional discard quantity control buttons need to be set. For example, additional "+" and "-" control buttons for the quantity of the virtual item to be discarded are set. In this case, due to the additional setting of the discard quantity control buttons, the operation difficulty of the game player is increased and the understanding cost of the game player is also increased. Summary of the Invention
[0004] A method, apparatus, electronic device, and computer-readable storage medium for processing virtual items provided by embodiments of this application are used to solve the technical problems of large operation difficulty and high understanding cost existing in the existing virtual item discard methods.
[0005] An embodiment of this application provides a method for processing virtual items. The method includes: in response to a discard operation on a first virtual item, during the duration of the discard operation, determining the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation, and displaying the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation; after the discard operation ends, determining that the quantity of the first virtual item to be discarded is a first quantity; and discarding the first quantity of the first virtual item.
[0006] An embodiment of this application further provides a device for processing virtual items. The device includes: an operation response unit, a quantity determination unit, and an item discard unit;
[0007] The operation response unit is configured to, in response to a discard operation on a first virtual item, during the duration of the discard operation, determine the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation, and display the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation;
[0008] A quantity determination unit configured to determine, after the discard operation ends, that the quantity of the first virtual item to be discarded is a first quantity;
[0009] An item discard unit configured to discard the first quantity of the first virtual item.
[0010] An embodiment of the present application further provides an electronic device, including a processor and a memory; wherein, the memory is used to store one or more computer instructions, and the one or more computer instructions are executed by the processor to implement the above method.
[0011] An embodiment of the present application further provides a computer-readable storage medium, on which one or more computer instructions are stored, and the instructions are executed by a processor to implement the above method.
[0012] Compared with the prior art, the embodiments of the present application have the following advantages:
[0013] For the virtual item processing method provided by the embodiment of the present application, in response to a discard operation on a first virtual item, during the duration of the discard operation, determine the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation and display the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation. Since when discarding the first virtual item, the quantity to be discarded can be directly determined by the duration of the discard operation, the execution process is simple and efficient, and the game player does not need to perform other additional operations, avoiding a relatively high understanding cost for the game player. Correspondingly, after the discard operation ends, determine that the quantity of the first virtual item to be discarded is a first quantity; discard the first quantity of the first virtual item; in the above process, the discard of the first quantity of the first virtual item can be directly completed in response to the end of the discard operation. In the above process, by the game player performing a single discard operation, the control of the quantity to be discarded and the discard of the first quantity of the first virtual item can be achieved, which not only simplifies the operation difficulty of virtual item discarding, but also avoids causing understanding troubles to the game player and conforms to the usage habits of the game player. Description of the Drawings
[0014] Figure 1 It is a flowchart of a method for processing a virtual item provided by an embodiment of the present application;
[0015] Figure 2 It is a schematic diagram of the quantity of the first virtual item to be discarded at the current moment and the duration;
[0016] Figure 3 It is a schematic diagram of the quantity of the first virtual item to be discarded reaching the upper limit quantity provided by an embodiment of the present application;
[0017] Figure 4Schematic diagram of the first virtual item provided by the embodiment of the present application re - entering the item backpack area;
[0018] Figure 5 Schematic diagram of the first virtual item provided by the embodiment of the present application exiting the to - be - discarded state;
[0019] Figure 6 Schematic diagram of the first virtual item provided by the embodiment of the present application re - entering the item discard area;
[0020] Figure 7 Schematic diagram of the item discard control for the first virtual item provided by the embodiment of the present application;
[0021] Figure 8 Unit block diagram of a processing device for virtual items provided by the embodiment of the present application;
[0022] Figure 9 Schematic logical structure diagram of an electronic device provided by the embodiment of the present application. Detailed implementation manners
[0023] In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the connotation of the present application. Therefore, the present application is not limited by the specific implementations disclosed below.
[0024] To facilitate an understanding of the method for processing virtual items provided by the embodiments of the present application, before introducing the embodiments of the present application, the background of the embodiments of the present application will be introduced first.
[0025] In existing virtual games, the process of discarding virtual items is generally described as follows: The game player opens the item backpack to view the virtual items owned by the virtual character controlled by the player. After opening the item backpack, the game player selects the virtual item to be discarded from it. After selecting the virtual item to be discarded, the game player performs a discard operation on the selected virtual item.
[0026] However, for most of the existing virtual item discarding operations, they are simply drag-and-drop discarding or clicking on a control to discard. Usually, the number of the same virtual item owned by a virtual character can be multiple. However, the above simple drag-and-drop discarding or one-key discarding method can only achieve the complete discarding of the same virtual item, and cannot achieve the control of the discarding quantity of the same virtual item, that is, it cannot achieve the partial discarding of the same virtual item. Currently, to solve the problem of partial discarding of the same virtual item, usually an additional control for the discarding quantity is set, such as an input box for the discarding quantity and an increase button for the discarding quantity. And this solution requires the game player to understand the discarding control, and also needs to try the discarding quantity control or query the strategy of the discarding quantity control to understand the function implemented by this control, which increases the understanding cost of the game player. In addition, when discarding a virtual item, the game player needs to perform both the discarding operation and the discarding quantity control operation, which also increases the operation difficulty of the game player and does not conform to the usage habits of the game player.
[0027] In view of the above problems existing in the prior art, the virtual item processing method provided by this application can achieve the control of the quantity to be discarded and the discarding of the corresponding quantity of the first virtual items through a single discarding operation. This discarding method of virtual items not only simplifies the difficulty of item discarding, but also avoids causing confusion in understanding to game players and conforms to the usage habits of game players. Of course, the virtual item processing method provided by the embodiments of this application can also be applied to the situation of virtual item transfer (such as transferring from the item backpack of a virtual character to the personal item warehouse), virtual item gift (such as transferring from the item backpack of the first virtual character to the item warehouse of the second virtual character). The virtual item processing method provided by the embodiments of this application can be applied to any scenario with the need for item discarding and transfer.
[0028] After the background introduction of the above content, those skilled in the art can understand the problems existing in the prior art. Next, a virtual item processing method provided by this application, as well as the corresponding device, electronic device, and computer-readable storage medium will be described. The following provides embodiments to elaborate on the above method, device, electronic device, computer-readable storage medium, and system in detail.
[0029] The first aspect of the embodiments of this application provides a virtual item processing method. Figure 1 It is a flowchart of a virtual item processing method provided by the embodiments of this application. The following will combine Figure 1 to describe the method provided in this embodiment in detail. The embodiments involved in the following description are used to explain the principle of the method and are not limitations for actual use.
[0030] As Figure 1As shown, the method for processing virtual items provided in this embodiment includes the following steps S101 to S103:
[0031] Step S101: In response to a discard operation on a first virtual item, during the duration of the discard operation, determine the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation, and display the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation.
[0032] The function of this step is to determine and display the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation.
[0033] In this step, after a game player performs a discard operation on a first virtual item in the graphical user interface, the game player's client responds to the above-mentioned discard operation on the first virtual item, and then determines the corresponding quantity of the first virtual item to be discarded and displays the quantity of the first virtual item to be discarded.
[0034] The first virtual item is an item owned by the virtual character controlled by the game player in the virtual game. It can also be understood as an item in the virtual character's item backpack or an item carried by the virtual character itself. For example, the first virtual item is the "energy bullet" item in the item backpack of virtual character 1, or the first virtual item is the "energy drink" item carried by virtual character 1 itself, etc.
[0035] In the embodiment of the present application, the quantity of the above-mentioned first virtual item can be one or more. The upper limit value of the quantity of multiple first virtual items owned by the virtual character is represented by the upper limit quantity. For example, if the quantity of the "energy bullet" item in the item backpack of virtual character 1 is 120, then the upper limit quantity of the "energy bullet" item is 120.
[0036] The discard operation on the first virtual item is an operation for discarding items on the first virtual item in the virtual game. In other words, the discard operation is an operation set in the virtual game to implement item discarding or item unloading. Of course, in the same virtual game, there can be one or more discard operations for the same virtual item, and the discard operations for different virtual items can be the same or different. The embodiment of the present application does not make any actual limitations on this.
[0037] In the embodiments of the present application, it should be understood that the quantity of the first virtual item to be discarded is determined by the current duration of the discard operation. It can also be understood that during the duration of the discard operation, there is a correlation between the quantity of the first virtual item to be discarded and the current duration of the discard operation. The quantity of the first virtual item to be discarded depends on the current duration of the discard operation, and as the duration changes, the quantity of the first virtual item to be discarded changes accordingly. For example, during the duration of the discard operation, if the current duration of the discard operation is 2 seconds, the corresponding quantity of the first virtual item to be discarded is 2; if the current duration of the discard operation is 4 seconds, the corresponding quantity of the first virtual item to be discarded is 8.
[0038] As a feasible implementation manner, in response to the discard operation on the first virtual item, during the duration of the discard operation, determining the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation and displaying the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation may include the following implementation manners:
[0039] Step S101-1, in response to the item trigger operation on the backpack item in the graphical user interface, display the first virtual item in the backpack item.
[0040] Step S101-2, in response to the first operation of moving the first virtual item to the specified area of the graphical user interface, control the first virtual item to enter the to-be-discarded state, and during the duration of the discard operation, determine the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation and display the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation.
[0041] Among them, in the above step S101-1, the game player performs the item trigger operation through the backpack item displayed on the graphical user interface of the game, so as to open the backpack item and then display the first virtual item in the backpack item. In the embodiments of the present application, the item trigger operation on the backpack item may be a click operation, a voice input operation, a gaze tracking operation, etc. This embodiment is for illustration and not an actual limitation.
[0042] Correspondingly, in the above step S101-2, the first operation of moving the first virtual item to the specified area of the graphical user interface can be a drag operation; if the first virtual item moves into the specified area of the graphical user interface, the first virtual item enters the to-be-discarded state. For the sake of distinction, in the embodiments of the present application, the operation of controlling the first virtual item to exit the to-be-discarded state is represented by a second operation. Of course, the first operation of moving the first virtual item to the specified area of the graphical user interface can also be a sliding operation, and this sliding operation can make the first virtual item move along with the touch point of the sliding operation; optionally, the first virtual item may not move along with the touch point of the sliding operation, and it can directly determine whether the first virtual item enters the to-be-discarded state according to the position of the touch point of the sliding operation. The above examples are for illustration purposes only and are not actual limitations. For the sake of easy understanding, the embodiments of the present application are all described schematically with the first operation being a drag operation.
[0043] When the above drag operation (the first operation) is a discard operation for the first virtual item to discard the item, during the continuous process of this discard operation, the first virtual item enters the to-be-discarded state, and thus the number of first virtual items to be discarded corresponding to the current continuous duration of the discard operation can be determined. The specific implementation process is as follows:
[0044] Step S101-2-1, during the continuous process of the drag operation, start timing from the first moment when the first virtual item enters the specified area of the graphical user interface;
[0045] Step S101-2-2, determine the number of first virtual items to be discarded corresponding to the continuous duration of the drag operation from the first moment to the current moment.
[0046] The specified area of the above graphical user interface is the specified area in the virtual game for the user to discard items. When the virtual item enters this specified area of the graphical user interface, the statistics of the number of items to be discarded can be realized. That is, the time when the icon of the virtual item is moved to the specified area of the graphical user interface is used as the starting time for counting the number of items to be discarded. For example, if the time when the icon of the first virtual item "energy bullet" enters the "item discard area" is "2023.11.10.11:19:30:30", then this time is used as the first moment to start timing for the "energy bullet".
[0047] Among them, determining the number of first virtual items to be discarded corresponding to the continuous duration of the drag operation from the first moment to the current moment includes the following steps S101-2-2-1 to step S101-2-2-2:
[0048] Step S101-2-2-1, every time a preset duration passes from the first moment, determine the quantity increment corresponding to the current passed preset duration;
[0049] Step S101-2-2-2: Determine the number of first virtual props to be discarded corresponding to the duration of the drag operation from the first moment to the current moment according to the quantity increment corresponding to the preset duration elapsed currently and the number of first virtual props to be discarded corresponding to the duration from the first moment to the target moment; wherein, the target moment is before the current moment and is separated from the current moment by a preset duration.
[0050] In the above process, the number of first virtual props to be discarded corresponding to the duration of the current moment is the quantity counted according to the preset discard counting method. The preset discard counting method of the first virtual prop is the method used to implement the quantity change of the number of first virtual props to be discarded. It can also be understood as the scheme for changing the number of first virtual props to be discarded according to the preset quantity increase method.
[0051] In the embodiment of the present application, the preset discard counting method of the first virtual prop includes: changing the number of first virtual props to be discarded according to a preset time interval (preset duration) and a preset quantity increase method (quantity increment corresponding to the preset duration); correspondingly, the preset quantity increase method includes: equal quantity increase method and / or gradual quantity increase method. During the continuous process of the discard operation, if the number of first virtual props to be discarded reaches the upper limit quantity, then use the upper limit quantity as the first quantity and display the upper limit quantity.
[0052] For the convenience of understanding, the preset time interval (preset duration), equal quantity increase method and / or gradual quantity increase method (quantity increment corresponding to the preset duration), and the situation where the number of first virtual props to be discarded reaches the upper limit quantity involved in the above description are respectively elaborated in detail below.
[0053] The preset time interval (preset duration) is the time interval used to set the change in the quantity of the first virtual item to be discarded. For example, once every second / change, once every minute / change. Correspondingly, the equal quantity increase method can be understood as that the quantity of the first virtual item to be discarded increased each time within the above preset time interval is the same. For example, 5 items / change once, 10 items / change once. The incremental increase method can be understood as that the quantity of the first virtual item to be discarded increased each time within the above preset time interval is different and increases successively. For example, 5 items / 1st change, 10 items / 2nd change, 15 items / 3rd change. When the quantity value of the first virtual item to be discarded by the game player is relatively large, the above incremental increase method can improve the discarding efficiency during the item discarding process and enhance the satisfaction of the game player during the game process. Of course, in the embodiments of the present application, the specific values corresponding to the above preset time interval, equal quantity increase method, and / or incremental increase method can be personalized by the game player according to actual needs, or the initial values set in the game can be adopted. The embodiments of the present application are for illustration purposes and are not actually limited.
[0054] It can be understood that when the quantity of the first virtual item to be discarded reaches the upper limit quantity: during the process of changing the quantity of the first virtual item to be discarded according to the starting time of the quantity count to be discarded and the preset discarding counting method (equal quantity increase method and / or incremental increase method) of the first virtual item, if the quantity to be discarded reaches the upper limit value (upper limit quantity) of the quantity of the first virtual item owned by the virtual character, the quantity to be discarded will no longer change with the current duration of the discard operation, and the upper limit quantity of the above first virtual item will be directly displayed to the game player.
[0055] It should be understood that when the first virtual item enters the item discarding area, corresponding prompt information pops up at the anchor point of the item discarding area. The prompt information includes: the item name of the first virtual item and the quantity of the first virtual item to be discarded. The above prompt information is displayed to the game player so that the game player can understand the discard quantity corresponding to the current duration of the drag operation during the continuous process of the drag operation.
[0056] In the above process, it involves determining the quantity of the first virtual item to be discarded corresponding to the duration from the first moment to the current moment of the drag operation based on the quantity increment corresponding to the preset duration passed currently and the quantity of the first virtual item to be discarded corresponding to the duration of the drag operation from the first moment to the target moment. For the convenience of understanding this process, refer to Figure 2 for an example illustration. Figure 2 This is a schematic diagram of the quantity of the first virtual item to be discarded corresponding to the duration of the current moment provided by the embodiments of the present application, and the specific illustration is as follows:
[0057] As Figure 2As shown, when dragging the icon of the first virtual item "energy bullet" to be discarded in the game screen to the "item discard area" in the figure for discarding, the time "2023.11.10.11:19:30:30" when the icon of the first virtual item "energy bullet" completely enters the "item discard area" is used as the starting time for the first moment to start timing, and the first moment is the starting time for counting the quantity to be discarded. Based on this starting time, according to the preset discard counting method set by the game player in advance: the preset time interval is "1 second / change once" and the equal quantity increase method is "5 items / change once", the quantity of the first virtual item "energy bullet" to be discarded corresponding to the duration of 5 seconds at the current time "2023.11.10.11:19:35:30" is determined to be "35". It should be understood that for every 1 second increase in the duration of the drag operation, the quantity of the above-mentioned first virtual item "energy bullet" to be discarded changes once; each such change once means that the quantity of the first virtual item to be discarded in the indication information changes once, and a certain number of items are added for each change. For example, when the current time of the drag operation changes from "2023.11.10.11:19:35:30" to "2023.11.10.11:19:36:30" (i.e., the duration changes from 5 seconds to 6 seconds), the quantity of "energy bullet" to be discarded changes from "35" to "40". It should be understood that usually the quantity of the above-mentioned first virtual item to be discarded starts to increase from the value "0". It can also be applicable to the situation of increasing from a non-"0" value, which is not the focus of discussion in the embodiments of the present application.
[0058] During the continuous process of the above drag operation, as time changes, the quantity of the first virtual item to be discarded may reach the upper limit quantity of the first virtual item. Refer to Figure 3 for an example illustration. Figure 3 is a schematic diagram of the quantity of the first virtual item to be discarded provided by the embodiment of the present application being the upper limit quantity. As Figure 3 shown, during the continuous process of the drag operation, for every 1 second increase in the duration of the drag operation, the quantity of the above-mentioned first virtual item "energy bullet" to be discarded changes once. If the current time of the drag operation is "2023.11.10.11:19:52:30", the quantity of "energy bullet" to be discarded changes to the upper limit quantity "120". Since the upper limit quantity of the first virtual item "energy bullet" is "120", when the current time of the drag operation changes to "2023.11.10.11:19:53:30", the quantity of the first virtual item "energy bullet" to be discarded in the prompt information remains "120" and no longer changes.
[0059] In the embodiment of the present application, if during the continuous process of the dragging operation, the first virtual item enters the specified area of the graphical user interface and then moves out of the specified area of the graphical user interface, the embodiment of the present application can be executed in the following manner:
[0060] In response to a second operation of moving the first virtual item out of the specified area of the graphical user interface, control the first virtual item to exit the to-be-discarded state, and cancel the display of the number of the first virtual items to be discarded corresponding to the current duration of the discard operation.
[0061] In the above process, the difference between the second operation of moving the first virtual item out of the specified area of the graphical user interface and the first operation of moving the first virtual item to the specified area of the graphical user interface is that: both the second operation and the first operation are dragging operations on the first virtual item, but the second operation is a dragging operation that continuously moves the first virtual item out of the above-mentioned specified area after moving the first virtual item to the specified area of the graphical user interface; while the first operation is a dragging operation of moving the first virtual item to the specified area of the graphical user interface. In the embodiment of the present application, if the first virtual item moves out of the specified area of the graphical user interface, the current item discard task is directly cancelled.
[0062] For ease of understanding, an example is given with reference to Figure 4 the schematic diagram. Figure 4 FIG. is a schematic diagram of the first virtual item provided by the embodiment of the present application re-entering the item backpack area. As Figure 4As shown, the first moment when the icon of the first virtual item "energy bullet" completely enters the "item discard area" corresponds to the time "2023.11.10.11:19:30:30". Since during the continuous process of the game player dragging the "energy bullet" icon, the "energy bullet" icon is dragged back to the "item backpack area". Correspondingly, the time "2023.11.10.11:19:37:30" when the "energy bullet" icon is moved out of the "item discard area" is taken as the second moment and the timing is paused. When the current duration of the drag operation is at the second moment "2023.11.10.11:19:37:30", according to the first moment "2023.11.10.11:19:30:30", the second moment "2023.11.10.11:19:37:30", and the preset discard counting method preset by the game player in advance: the preset time interval "1 second / change 1 time" and the equal quantity increase method "5 pieces / change 1 time", it is further determined that the quantity of the first virtual item to be discarded corresponding to the duration of the drag operation of "7 seconds" at the second moment "2023.11.10.11:19:37:30" is "45". When the first virtual item "energy bullet" moves out of the above "item discard area", the first virtual item "energy bullet" with the quantity to be discarded of "45" exits the to-be-discarded state, and the information of the quantity to be discarded of "45" is cancelled from display in the prompt message. The above process can also be understood as that during the continuous process of the drag operation by the game player, by dragging the first virtual item "energy bullet" into the "item discard area" and then continuously dragging the item into the "item backpack area", the discard task of the "energy bullet" with the quantity to be discarded of "45" this time is cancelled.
[0063] During the above process, after the game player drags the icon of the first virtual item "energy bullet" to the "item backpack area", the discard of the corresponding quantity of the first virtual item is directly cancelled. However, in the actual scenario, the following situation may also occur: the second operation directly stops dragging in the "item backpack area" or continues to drag the "energy bullet" icon to the "item discard area" again.
[0064] Next, during the continuous process of the drag operation, the situation where the first virtual item directly stops the drag operation in the "item backpack area" or continues to be dragged into the "item discard area" will be described in detail respectively.
[0065] The first case: In the embodiment of the present application, if during the continuation of the second operation (drag operation), the first virtual item enters the "item discard area" and then moves out of the "item discard area" and stops the drag operation in an area outside the "item discard area", such as the "item backpack area", the first virtual item will exit the to-be-discarded state, and the number of the first virtual items to be discarded corresponding to the duration of the second moment will no longer be displayed.
[0066] For ease of understanding, an example will be given with reference to Figure 5 the schematic diagram. Figure 5 This is a schematic diagram of the first virtual item in the embodiment of the present application exiting the to-be-discarded state. As Figure 5 shown, during the continuation of the drag operation, when the icon of the first virtual item "energy bullet" enters the "item backpack area" again: According to the second moment "2023.11.10.11:19:37:30" when the icon of the first virtual item "energy bullet" completely moves out of the "item discard area" and the current time of the drag operation (such as "2023.11.10.11:19:47:30"), it is determined that the statistical duration for the first virtual item "energy bullet" to move out of the "item discard area" is "10 seconds". Since the statistical duration "10 seconds" exceeds the preset time threshold "5 seconds", the number of the first virtual items to be discarded corresponding to the 7-second duration of the drag operation at the second moment "2023.11.10.11:19:37:30", which is "45", is directly cancelled from the display in the prompt message, and a prompt message of "Cancel this item discard" is displayed in the game screen. In the embodiment of the present application, the above preset time threshold can be a personalized time threshold set by the game player or an automatically set time threshold in the virtual game. This is only a schematic example and not an actual limitation.
[0067] Of course, if during the above process, the game player directly ends the drag operation before the statistical duration reaches the preset time threshold during the continuation of the drag operation, the discard task of the "energy bullet" with the number to be discarded "45" can also be cancelled. In other words, if the icon of the above first virtual item "energy bullet" moves out of the "item discard area", it is directly determined that this item discard task is cancelled.
[0068] The second case: If the above drag operation (second operation) does not stop after moving out of the specified area of the graphical user interface and enters the specified area of the graphical user interface again during the continuation of the drag operation, the timing starts from the third moment when the first virtual item enters the specified area of the graphical user interface again; according to the preset discard counting method of the first virtual item and the above third moment, the number of the first virtual items to be discarded corresponding to the current duration of the discard operation is determined.
[0069] For ease of understanding, an example will be given with reference to Figure 6 the schematic diagram. Figure 6 This is a schematic diagram of the first virtual item provided in the embodiment of the present application re-entering the item discard area. As Figure 6 shown, the time of the third moment when the first virtual item "energy bullet" re-enters the item discard area is "2023.11.10.11:19:40:30" and starts timing again. According to the third moment "2023.11.10.11:19:40:30" and the preset discard counting method of the first virtual item "preset time interval '1 second / change 1 time' and equal quantity increase method '5 pieces / change 1 time'", the current duration of the drag operation (such as "2023.11.10.11:19:45:30") is further determined, and the number of the first virtual item "energy bullet" to be discarded is "25". Of course, if the number of the first virtual item to be discarded corresponding to the current duration reaches the upper limit number, the above upper limit number can be directly displayed. The above process can be understood as a process of starting timing again.
[0070] Through the above process, during the continuous process of the drag operation, the number of the first virtual item "energy bullet" to be discarded corresponding to the current duration of the drag operation is determined, and the number of the "energy bullet" to be discarded is displayed to the game player in the form of a prompt message, thereby reminding the game player of the discard quantity corresponding to the current time.
[0071] As another feasible implementation manner, in response to the discard operation on the first virtual item, during the continuous process of the discard operation, the number of the first virtual item to be discarded corresponding to the current duration of the discard operation is determined, and the number of the first virtual item to be discarded corresponding to the current duration of the discard operation is displayed, including:
[0072] In response to the trigger operation on the backpack item in the graphical user interface, the first virtual item in the backpack item is displayed; in response to the control trigger operation on the item discard control after the first virtual item is selected, the first virtual item is controlled to enter the to-be-discarded state, and during the continuous process of the control trigger operation, the number of the first virtual item to be discarded corresponding to the current duration of the control trigger operation is determined, and the number of the first virtual item to be discarded corresponding to the current duration of the control trigger operation is displayed.
[0073] For ease of understanding, the above process will be described in detail. During this process, in response to a trigger operation on the backpack item in the graphical user interface, the first virtual item in the backpack item is displayed as described above, which will not be elaborated here. Here, the control trigger operation on the item discard control after the above first virtual item is selected will be described in detail. In the embodiment of the present application, the item discard control is a button in the graphical user interface for implementing the discard of the first virtual item. In the embodiment of the present application, the above item discard control may be a discard control preset for the first virtual item, or a discard control preset in the virtual game, and this control can be used for the discard of any virtual item in the game. In the above two cases, a discard control can be set for each virtual item in the virtual game, or only one discard control can be set. When the first virtual item in the backpack item is displayed, the item discard control is triggered by selecting the first virtual item. Correspondingly, when the first virtual item is selected, the execution object of this discard control is the first virtual item.
[0074] For ease of understanding, reference can be made to Figure 7 the schematic diagram of Figure 7 the item discard control of the first virtual item provided by the embodiment of the present application. As Figure 7 shown, the item discard control of the above first virtual item is the discard button in the item backpack area. This discard button can be used for the discard of any virtual item in the game. When the first virtual item in the backpack item is selected, in response to the control trigger operation on the discard control, the first virtual item is controlled to enter the to-be-discarded state, and during the continuous process of the control trigger operation, the quantity of the first virtual item to be discarded corresponding to the current continuous time of the control trigger operation is determined. Correspondingly, the control trigger operation of this discard button is a click operation. During the process that the game player clicks the discard button by means of the moving cursor (the game player keeps the clicking action without lifting the finger, that is, the discard button is in the activated state without stopping), the time when the moving cursor triggers the discard button is used as the starting time for counting the quantity to be discarded mentioned above. According to the above starting time for counting the quantity to be discarded and the preset discard counting method of the first virtual item, the quantity of the first virtual item to be discarded corresponding to the current continuous time can also be determined.
[0075] In the embodiment of the present application, by adopting the method of the control trigger operation of the item discard control for the first virtual item, on the basis of simplifying the difficulty of item discard, the operation difficulty of the game player can be further reduced, making the item discard operation more concise and efficient.
[0076] Through the above steps, during the continuous process of the discard operation, the quantity of the first virtual item to be discarded corresponding to the current continuous time of the discard operation is determined, and the quantity of the first virtual item to be discarded is displayed to the game player.
[0077] Step S102, after the discard operation ends, determine that the quantity of the first virtual item to be discarded is the first quantity.
[0078] The function of this step is to, in response to the end of the discard operation, determine the quantity of the first virtual item to be discarded corresponding to the duration at the current moment as the first quantity.
[0079] Since the quantity of the first virtual item to be discarded corresponds to the duration at the current moment of the discard operation, the quantity of the first virtual item to be discarded at this time can be determined as the first quantity after the above discard operation ends.
[0080] In the embodiment of the present application, as a feasible implementation manner, the process of determining that the quantity of the first virtual item to be discarded is the first quantity after the discard operation ends is specifically described as follows:
[0081] After the drag operation ends within the specified area, determine that the quantity of the first virtual item to be discarded corresponding to the duration from the first moment to the end moment of the drag operation is the first quantity.
[0082] The above process can also be understood as that the quantity of the first virtual item to be discarded is determined according to the duration of the drag operation of the first virtual item in the item discard area. Starting from the first moment when the first virtual item is dragged into the item discard area for timing, and using the time when the drag operation stops as the end time for counting the quantity to be discarded, and then determining the duration from the first moment to the end moment of the drag operation; the quantity of the first virtual item to be discarded corresponding to this duration is the first quantity. It can also be understood that the duration of the drag operation of the first virtual item in the item discard area determines the quantity to be discarded. The virtual item processing method in the embodiment of the present application can realize the control of the quantity of the first virtual item to be discarded through a drag operation.
[0083] For the convenience of understanding the above process, still refer to Figure 2 for illustration by example. Such as Figure 2As shown in the figure, when the first virtual item "energy bullet" is dragged to the "item discard area" in the figure for discarding, and the operation end time of the drag operation is "2023.11.10.11:19:35:30", then the operation end time "2023.11.10.11:19:35:30" of the above drag operation is used as the end time for counting the quantity to be discarded. Correspondingly, the first moment when the icon of the first virtual item "energy bullet" enters the "item discard area" is "2023.11.10.11:19:30:30". The duration corresponding to the above first moment "2023.11.10.11:19:30:30" and the operation end moment "2023.11.10.11:19:35:30" of the drag operation is 5 seconds, and the quantity "35" of the first virtual item "energy bullet" to be discarded corresponding to this time "2023.11.10.11:19:35:30" is determined as the first quantity.
[0084] Through the above steps, the quantity of the first virtual item to be discarded corresponding to the end time of counting the quantity to be discarded is determined as the first quantity.
[0085] Step S103: Discard the first quantity of the first virtual item.
[0086] The function of this step is to discard the first quantity of the first virtual item.
[0087] In the embodiment of the present application, when it is determined that the quantity of the first virtual item to be discarded is the first quantity after the discard operation ends, the first quantity of the first virtual item can be directly discarded in response to the end of the discard operation. For example, in response to the end of the drag operation, it is determined that the first quantity corresponding to the first virtual item "energy bullet" is "35", and the above "35" first virtual items "energy bullet" are discarded.
[0088] Through the above steps, it is further realized that through a discard operation, both the control of the quantity of the first virtual item to be discarded and the partial or complete discard of the first virtual item are achieved, and its operation method is simple and easy for game players to understand.
[0089] The processing method of virtual items provided by the embodiments of the present application, during the process of discarding the first virtual item, in response to the discarding operation on the first virtual item, during the duration of the discarding operation, determine the number of the first virtual items to be discarded corresponding to the current duration of the discarding operation and display the number of the first virtual items to be discarded corresponding to the current duration of the discarding operation. Since when discarding the first virtual item, the number of items to be discarded can be directly determined by the duration of the discarding operation, its execution process is simple and efficient, without requiring the game player to perform other additional operations, avoiding a relatively high understanding cost for the game player. At the same time, after the discarding operation ends, determine that the number of the first virtual items to be discarded is the first quantity; discard the first quantity of the first virtual items; in the above process, the discarding of the first quantity of the first virtual items can be directly completed in response to the end of the discarding operation. In the above process, by the game player performing a single discarding operation, the control of the number of items to be discarded and the discarding of the first quantity of the first virtual items can be achieved. Compared with the prior art solution that requires an additional quantity control control to control the number of discarded items, it not only simplifies the difficulty of discarding virtual items, but also avoids causing understanding difficulties to the game player and conforms to the usage habits of the game player.
[0090] The first aspect of the above embodiment provides a processing method of virtual items. Correspondingly, the second aspect of the embodiments of the present application also provides a processing device for virtual items. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For the details of the relevant technical features, please refer to the corresponding description of the method embodiment provided above. The following description of the device embodiment is only illustrative. As Figure 8 shown, it is a unit block diagram of the processing device 800 for virtual items provided by this embodiment, including:
[0091] An operation response unit 801, configured to, in response to a discarding operation on a first virtual item, during the duration of the discarding operation, determine the number of the first virtual items to be discarded corresponding to the current duration of the discarding operation, and display the number of the first virtual items to be discarded corresponding to the current duration of the discarding operation;
[0092] A quantity determination unit 802, configured to, after the discarding operation ends, determine that the number of the first virtual items to be discarded is a first quantity;
[0093] An item discarding unit 803, configured to discard the first quantity of the first virtual items.
[0094] The above embodiments provide a processing device for virtual props. In addition, a third aspect of the embodiments of the present application further provides an electronic device. Since the embodiments of the electronic device are basically similar to the method embodiments, the description is relatively simple. For the details of the relevant technical features, please refer to the corresponding descriptions of the method embodiments provided above. The following description of the embodiments of the electronic device is only illustrative. The embodiments of the electronic device are as follows. Please refer to Figure 9 to understand this embodiment, Figure 9 which is a schematic diagram of the electronic device provided in this embodiment.
[0095] As Figure 9 shown, Figure 9 which is a schematic diagram of an electronic device provided in a third aspect of the embodiments of the present application.
[0096] In this embodiment, an optional hardware structure of the electronic device 900 can be as Figure 9 shown, including: at least one processor 901, at least one memory 902, and at least one communication bus 905; the memory 902 contains a program 903 and data 904.
[0097] The bus 905 can be a communication device for transmitting data between components inside the electronic device 900, such as an internal bus (e.g., a CPU-memory bus, where the processor is the central processing unit, abbreviated as CPU), an external bus (e.g., a universal serial bus port, a peripheral component interconnect express port), etc.
[0098] In addition, the electronic device also includes: at least one network interface 906 and at least one peripheral interface 907. The network interface 906 provides wired or wireless communication related to an external network 908 (e.g., the Internet, an intranet, a local area network, a mobile communication network, etc.); in some embodiments, the network interface 906 can include any combination of a network interface controller (abbreviated as NIC in English), a radio frequency (abbreviated as RF in English) module, a repeater, a transceiver, a modem, a router, a gateway, a wired network adapter, a wireless network adapter, a Bluetooth adapter, an infrared adapter, a near field communication (abbreviated as NFC in English) adapter, a cellular network chip, etc.
[0099] The peripheral interface 907 is used to connect to peripherals, and the peripherals can be peripheral 1 ( Figure 9 in 909), peripheral 2 ( Figure 9 in 910), and peripheral 3 ( Figure 9Among them, the 911). Peripherals are peripheral devices, which may include but are not limited to cursor control devices (such as mice, touchpads or touchscreens), keyboards, displays (such as cathode ray tube displays, liquid crystal displays), light emitting diode displays, video input devices (such as cameras or input interfaces communicatively coupled to video archives), etc.
[0100] The processor 901 may be a CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
[0101] The memory 902 may include high-speed RAM (Full name: Random Access Memory, that is, random access memory), and may also include non-volatile memory, such as at least one disk memory.
[0102] Among them, the processor 901 calls the programs and data stored in the memory 902 to execute the method of the first embodiment of the present application.
[0103] Corresponding to the method of the first aspect of the embodiments of the present application, the fourth aspect of the embodiments of the present application further provides a computer storage medium, which stores a computer program, and the computer program is run by a processor to execute the method of the first aspect of the embodiments of the present application.
[0104] Although the present application is disclosed above with preferred embodiments, it is not used to limit the present application. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present application should be subject to the scope defined by the claims of the present application.
[0105] The embodiments of the present application may involve the use of user data. In practical applications, it is possible to use user-specific personal data in the solutions described herein within the scope permitted by applicable laws and regulations (for example, with the user's explicit consent, giving the user a practical notice, etc.) in accordance with the requirements of the applicable laws and regulations of the country where it is located. In the above embodiments, a method for processing virtual props, a device and an electronic device corresponding to the above method are provided. In addition, the embodiments of the present application also provide a computer-readable storage medium for implementing the above method for processing virtual props. The embodiments of the computer-readable storage medium provided by the present application are described relatively simply. For the relevant parts, please refer to the corresponding descriptions of the above method embodiments. The following described embodiments are only illustrative.
[0106] The computer-readable storage medium provided by this embodiment stores computer instructions, and when these instructions are executed by a processor, they implement the steps of the above method embodiments.
[0107] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.
[0108] Memory may include non-permanent memory in the computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
[0109] 1. Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
[0110] 2. Those skilled in the art should understand that the embodiments of this application can be provided as a method, a system, or a computer program product. Therefore, this application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0111] Although the present invention is disclosed above in preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention should be defined by the scope of the claims of the present invention.
[0112] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data that have been authorized by the user or fully authorized by all parties. Moreover, the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of the relevant countries and regions, and corresponding operation entrances are provided for users to choose to authorize or reject.
Claims
1. A method for processing virtual items, characterized in that The method includes: In response to a discard operation for a first virtual item, during the duration of the discard operation, determining the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation, and displaying the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation; After the discard operation ends, determining that the quantity of the first virtual item to be discarded is a first quantity; discarding the first quantity of the first virtual item.
2. The processing method of the virtual prop according to claim 1, characterized in that The step of, in response to a discard operation for a first virtual item, during the duration of the discard operation, determining the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation, and displaying the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation, includes: In response to a first operation of moving the first virtual item to a designated area of the graphical user interface, controlling the first virtual item to enter a to-be-discarded state, and during the duration of the discard operation, determining the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation, and displaying the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation.
3. The processing method of the virtual item according to claim 1, wherein The step of, in response to a discard operation for a first virtual item, during the duration of the discard operation, determining the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation, and displaying the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation, includes: In response to a control trigger operation on a prop discard control after the first virtual item is selected, controlling the first virtual item to enter a to-be-discarded state, and during the duration of the control trigger operation, determining the quantity of the first virtual item to be discarded corresponding to the current duration of the control trigger operation, and displaying the quantity of the first virtual item to be discarded corresponding to the current duration of the control trigger operation.
4. The processing method of the virtual prop according to claim 2, wherein, The step of, during the duration of the discard operation, determining the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation, includes: During the duration of a drag operation, starting to count time from the first moment when the first virtual item enters the designated area of the graphical user interface; Determining the quantity of the first virtual item to be discarded corresponding to the duration of the drag operation from the first moment to the current moment.
5. The method for processing virtual props according to claim 4, characterized in that, The step of, after the discard operation ends, determining that the quantity of the first virtual item to be discarded is a first quantity, includes: After the drag operation ends within the designated area, determining the quantity of the first virtual item to be discarded corresponding to the duration from the first moment to the end moment of the drag operation as the first quantity.
6. The processing method of the virtual prop according to claim 2, characterized in that, The method further includes: In response to a second operation of moving the first virtual item out of the designated area of the graphical user interface, controlling the first virtual item to exit the to-be-discarded state, and canceling the display of the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation.
7. The processing method of the virtual prop according to claim 1, wherein The method further includes: During the continuation of the discard operation, if the quantity of the first virtual item to be discarded reaches the upper limit quantity of the first virtual item, the upper limit quantity is determined as the first quantity.
8. The processing method of the virtual prop according to claim 4, characterized in that Determining the quantity of the first virtual item to be discarded corresponding to the duration of the drag operation from the first moment to the current moment includes: Every time a preset duration elapses since the first moment, determining the quantity increment corresponding to the currently elapsed preset duration; Based on the quantity increment corresponding to the currently elapsed preset duration and the quantity of the first virtual item to be discarded corresponding to the duration of the drag operation from the first moment to the target moment, determining the quantity of the first virtual item to be discarded corresponding to the duration of the drag operation from the first moment to the current moment; wherein, the target moment is before the current moment and is separated from the current moment by a preset duration.
9. The processing method of the virtual item according to claim 7, wherein, The quantity increments corresponding to each preset duration in the currently elapsed preset duration are the same or different.
10. A processing device for virtual props, characterized in that The device includes: An operation response unit, configured to, in response to a discard operation on a first virtual item, during the continuation of the discard operation, determine the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation, and display the quantity of the first virtual item to be discarded corresponding to the current duration of the discard operation; A quantity determination unit, configured to, after the discard operation ends, determine that the quantity of the first virtual item to be discarded is the first quantity; An item discard unit, configured to discard the first quantity of the first virtual item.
11. An electronic device, characterized in that, Including a processor and a memory; wherein, The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to any one of claims 1-9.
12. A computer-readable storage medium having one or more computer instructions stored thereon, characterized in that, The instruction is executed by the processor to implement the method according to any one of claims 1-9.