Virtual resource exchange method, device, electronic device and storage medium
By displaying exchange recommendation information and confirmation controls in the graphical user interface, the problem of cumbersome virtual resource exchange operations is solved, and an efficient and simplified resource exchange process is achieved.
Patent Information
- Application Number
- CN202310021018.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-06
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2043-01-06
AI Technical Summary
The existing virtual resource exchange operation is cumbersome and inefficient. Players need to click on buttons and interfaces multiple times to complete resource exchange, and it is easy for virtual buildings to be unable to upgrade due to unreasonable exchanges.
It provides a graphical user interface, including resource intelligent exchange control, which displays the resource exchange interface by triggering the control. The interface contains exchange recommendation information and confirmation controls, and the user can complete resource exchange in just one operation.
The resource exchange process is simplified, the exchange efficiency is improved, the user memory and misoperation is reduced, the exchange is rational, and the fluency and accuracy of virtual resource exchange is improved.
Smart Images

Figure CN116139485B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a method, device, electronic device, and storage medium for exchanging virtual resources. Background Art
[0002] Currently, in some games that include base building, upgrading virtual buildings usually consumes resources. During the virtual building upgrade process, different amounts of various virtual resources are required, so virtual resource exchange operations are often required due to the lack of corresponding virtual resources.
[0003] The existing virtual resource exchange operation usually requires clicking a control (or button) in the base construction interface to enter a list of available buttons, then clicking the "Resource Trading" button in the button list to open the resource exchange interface, and then clicking a required resource icon to enter the next level interface and exchange by dragging the other two resource bars on the right. After the exchange, return to the corresponding upgrade or base construction interface to perform related operations.
[0004] During the above-mentioned virtual resource exchange process, players need to use multiple buttons and interfaces to perform multiple operations to complete a resource exchange, and they need to drag the resource bar to determine the exchange quantity. Once the exchange quantity is unreasonable, the upgrade of the virtual building cannot be achieved, and multiple virtual resource exchange operations need to be performed. The operation is cumbersome and inefficient. Summary of the Invention
[0005] The purpose of the embodiments of the present disclosure is to provide a method, device, electronic device and storage medium for exchanging virtual resources, so as to simplify the resource exchange process and improve the efficiency of resource exchange.
[0006] An embodiment of the present disclosure provides a method for exchanging virtual resources, providing a graphical user interface through a terminal device; the graphical user interface includes virtual objects and resource intelligent exchange controls, and the method includes: in response to a first operation on the resource intelligent exchange control, displaying a resource exchange interface according to virtual resource information corresponding to the upgraded virtual object; wherein the resource exchange interface includes exchange recommendation information and an exchange confirmation control, and the exchange recommendation information includes virtual swap-out resource information and virtual swap-in resource information; in response to a second operation on the exchange confirmation control, executing a virtual resource exchange action corresponding to the exchange recommendation information.
[0007] In a second aspect, an embodiment of the present disclosure further provides a virtual resource exchange device, which provides a graphical user interface through a terminal device; the graphical user interface includes virtual objects and resource intelligent exchange controls, and the device includes: a resource exchange trigger module, which is used to respond to a first operation on the resource intelligent exchange control and display a resource exchange interface according to the virtual resource information corresponding to the upgraded virtual object; wherein the resource exchange interface includes exchange recommendation information and an exchange confirmation control, and the exchange recommendation information includes virtual swap-out resource information and virtual swap-in resource information; a resource exchange execution module, which is used to respond to a second operation on the exchange confirmation control and execute the virtual resource exchange action corresponding to the exchange recommendation information.
[0008] In a third aspect, an embodiment of the present disclosure further provides an electronic device, including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the above-mentioned virtual resource exchange method.
[0009] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned virtual resource exchange method.
[0010] The embodiments of the present disclosure provide a method, device, electronic device, and storage medium for exchanging virtual resources. By displaying a resource intelligent exchange control in a graphical user interface for building a virtual object, a resource exchange interface can be directly displayed by triggering a first operation on the control. The resource exchange interface includes exchange recommendation information and an exchange confirmation control for user reference. The user can trigger the terminal device to perform a virtual resource exchange action corresponding to the exchange recommendation information by performing a second operation on the exchange confirmation control. The resource exchange process can achieve resource exchange through only one control and one resource exchange interface, thereby simplifying the operation process. At the same time, the exchange recommendation information in the resource exchange interface displayed according to the virtual resource information corresponding to the upgraded virtual object is more reasonable. In some scenarios, the user does not need to fill in or select the resources and their quantities to be exchanged based on memory. The corresponding resource exchange can be completed by performing the second operation on the exchange confirmation control, further simplifying the user operation during the virtual resource exchange process and improving the efficiency of resource exchange. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the specific implementation methods or the description of the prior art. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0012] Figure 1 A schematic diagram of a graphical user interface provided in an embodiment of the present disclosure;
[0013] Figure 2 A flowchart of a method for exchanging virtual resources provided by an embodiment of the present disclosure;
[0014] Figure 3 A schematic diagram of a resource exchange interface provided by an embodiment of the present disclosure;
[0015] Figure 4 A schematic diagram of another resource exchange interface provided by an embodiment of the present disclosure;
[0016] Figure 5 A schematic diagram of another resource exchange interface provided by an embodiment of the present disclosure;
[0017] Figure 6 A schematic diagram of another resource exchange interface provided by an embodiment of the present disclosure;
[0018] Figure 7 Another graphical user interface diagram provided by an embodiment of the present disclosure;
[0019] Figure 8 A schematic diagram of the structure of a virtual resource exchange device provided in an embodiment of the present disclosure;
[0020] Figure 9 A schematic diagram of the structure of another virtual resource switching device provided in an embodiment of the present disclosure;
[0021] Figure 10 A schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0022] The following will clearly and completely describe the technical solutions of this application in conjunction with the embodiments. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0023] First, let me introduce the nouns involved in this application:
[0024] (1) Virtual scene (game scene or construction scene)
[0025] A virtual scene is a virtual scene displayed (or provided) when an application is running on a terminal or server. Optionally, the virtual scene is a simulation of the real world, or a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene is any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, and a three-dimensional virtual scene. The virtual environment can be the sky, land, ocean, etc., wherein the land includes environmental elements such as deserts, cities, and plants. For example, in a base-building game, the virtual scene is a 2D, 2.5D, or 3D game world for players to control virtual objects to build a base. Exemplary virtual scenes may include at least one element of mountains, plains, rivers, lakes, oceans, deserts, sky, plants, buildings, vehicles, and warships.
[0026] (2) Game interface
[0027] The game interface refers to the interface corresponding to the application provided or displayed through a graphical user interface, which includes a UI interface and a game screen for players to interact. In an optional embodiment, the UI interface may include game controls (such as skill controls, movement controls, function controls, etc.), indicators (such as direction indicators, character indicators, etc.), information display areas (such as the number of kills, match time, etc.), or game setting controls (such as system settings, stores, gold coins, etc.). In an optional embodiment, the game screen is a display screen corresponding to the virtual scene displayed by the terminal device, and the game screen may include elements in the above-mentioned virtual scene, as well as game characters, NPC characters, AI characters, etc. that execute game logic.
[0028] (3) Virtual objects
[0029] A virtual object refers to a dynamic object that can be controlled in a virtual scene. Optionally, the dynamic object can be a virtual building, a virtual warship, a virtual vehicle, etc. The virtual object is built using virtual resources, and the construction process of the virtual object can be performed by a virtual character controlled by the player. The number of virtual characters can be dynamically determined as needed, and the embodiments of the present application do not limit this. In one possible implementation, the user can control the virtual character to move in the virtual scene, for example, to control the virtual object to run, jump, crawl, etc., and can also control the virtual character to use the skills, virtual props, etc. provided by the application to fight with other virtual characters.
[0030] (4) Player Character
[0031] A player character is a virtual character that can be controlled by the player and moves within the game environment. In some electronic games, this character may also be called a shikigami character or a hero character. A player character can be at least one of several different forms, including a virtual person, a virtual animal, an anime character, or a virtual vehicle.
[0032] In order to quickly and easily exchange virtual resources during the construction of virtual objects, an embodiment of the present invention provides a method, device, electronic device, and storage medium for exchanging virtual resources. This technology can be applied to game scenes that include the construction of the above-mentioned virtual objects.
[0033] In one embodiment of the present disclosure, a method for exchanging virtual resources can be executed on a terminal device or a server. The terminal device can be a local terminal device. When the method for exchanging virtual resources is executed on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0034] In an optional embodiment, various cloud applications, such as cloud gaming, can be run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operation mode, the operating entity of the game program and the entity presenting the game screen are separated. The storage and operation of the virtual resource exchange method are completed on the cloud gaming server. The role of the client device is to receive and send data and present the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, TV, computer, PDA, etc.; but the terminal device performing information processing is the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation instructions to the cloud gaming server. The cloud gaming server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0035] In an optional embodiment, the terminal device can be a local terminal device. Taking a game as an example, the local terminal device stores the game program and is used to present the game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally downloading and installing the game program through an electronic device and running it. The local terminal device can provide the graphical user interface to the player in various ways, for example, it can be rendered and displayed on the terminal display, or provided to the player through holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present the graphical user interface, the graphical user interface including the game screen, and the processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.
[0036] In one possible implementation, an embodiment of the present invention provides a method for exchanging virtual resources, wherein a graphical user interface is provided through a terminal device, wherein the terminal device can be the local terminal device mentioned above, or a client device in the cloud interaction system mentioned above. The terminal device provides a graphical user interface, which includes virtual objects and resource intelligent exchange controls, see Figure 1 The diagram shows a graphical user interface including a virtual object 12 and a resource intelligent exchange control 16. The virtual object 12 can be a battleship, turret, water station, or other object in a base construction, or other object in a base defense system or operating system. The graphical user interface can also display other constructed objects in addition to the virtual object 12. Figure 1 As shown, the virtual object 12 and other built objects constitute a building scene 14. In order to facilitate users to understand the current resource usage, the graphical user interface can also include an existing resource consumption prompt area, in which the total amount and consumption of each resource currently owned by the user can be displayed. Usually, during the construction of the virtual object 12, some virtual resources may be used, such as metals, crystals, and heavy hydrogen, etc. Among them, some virtual resources are easier to obtain and are ordinary resources; while some virtual resources are more difficult to obtain and are rare resources. In some scenarios, users may have a large number of ordinary resources, a small number of rare resources, or no rare resources. In the process of building virtual objects, it is necessary to use ordinary resources to exchange rare resources in order to continue building virtual objects. In order to improve the exchange efficiency of virtual resources, this embodiment sets a resource intelligent exchange control 16 in the above-mentioned graphical user interface, so that the user can enter the resource exchange interface by triggering the control, and then complete the exchange process of relevant virtual resources. Based on the above Figure 1 The graphical user interface shown is shown in Figure 2 The flowchart of the virtual resource exchange method shown in FIG. 1 includes the following steps:
[0037] Step S202: In response to a first operation on the resource intelligent exchange control, displaying a resource exchange interface based on virtual resource information corresponding to the upgraded virtual object; wherein the resource exchange interface includes exchange recommendation information and an exchange confirmation control, wherein the exchange recommendation information includes virtual swap-out resource information and virtual swap-in resource information;
[0038] The first operation for the resource intelligent exchange control can be any operation of selecting the resource intelligent exchange control. For example, for a non-touch terminal, the first operation can include a single-click or double-click operation of the left mouse button; for a touch terminal, the first operation can include a sliding operation and / or a touch operation, etc.
[0039] The specific content of the exchange recommendation information in the above-mentioned resource exchange interface is related to the virtual resource information corresponding to the upgraded virtual object. The virtual resource information corresponding to the upgraded virtual object is different, and the content of the exchange recommendation information in the resource exchange interface is different. In a possible implementation, the virtual resource information corresponding to the upgraded virtual object includes the quantity information of various virtual resources required for the upgraded virtual object and the quantity information of various virtual resources currently owned by the user of the above-mentioned terminal device. Based on this information, the virtual swap-out resource information and virtual swap-in resource information corresponding to the upgraded virtual object can be determined. The virtual swap-out resource information may include the identifier of the virtual swap-out resource and its swap-out quantity, and the virtual swap-in resource information may include the identifier of the virtual swap-in resource and its swap-in quantity. The identifier of the virtual swap-out resource and the identifier of the virtual swap-in resource may be a name identifier, an icon identifier, or a combination identifier including the name and icon of the virtual resource.
[0040] In one possible implementation, the above-mentioned virtual swap-out resources and the above-mentioned virtual swap-in resources can be a one-to-one relationship, or a one-to-many or many-to-one relationship, that is, one virtual swap-out resource can be exchanged for one virtual swap-in resource, or multiple virtual swap-out resources can be exchanged for one virtual swap-in resource, or multiple virtual swap-out resources can be exchanged for multiple virtual swap-in resources. The correspondence between the virtual swap-out resources and the virtual swap-in resources is specifically related to the virtual resource information corresponding to the upgraded virtual object.
[0041] For example, let's say the virtual warship is currently at level 2 and the user only has 10,000 resource A. Upgrading the virtual warship requires 4,000 resource A and 2,000 resource B. If 6,000 resource A can be exchanged for 4,000 resource B, the exchange recommendation could take the following two forms: Virtual swap-out resource A, quantity: 6,000; virtual swap-in resource B, quantity: 4,000; Virtual swap-out resource A, quantity: 3,000; virtual swap-in resource B, quantity: 2,000. Both forms of exchange recommendation ensure the virtual warship can be upgraded from level 2 to level 3.
[0042] Step S204: In response to the second operation on the exchange confirmation control, executing the virtual resource exchange action corresponding to the exchange recommendation information.
[0043] The swap confirmation control triggers a virtual resource swap. Once the user confirms the swap between the virtual swap-out and virtual swap-in resource information, selecting this control triggers the virtual resource swap. This swap confirmation control prevents the user from swapping resources unless they perform a second operation on the swap confirmation control, providing a one-time error-tolerant option and ensuring the validity of the resource swap.
[0044] The second operation for the exchange confirmation control is similar to the first operation mentioned above. The second operation can be any operation of selecting the exchange confirmation control. For example, for a non-touch terminal, the second operation can include a single-click or double-click operation of the left mouse button; for a touch terminal, the second operation can include a sliding operation and / or a touch operation, etc.
[0045] In one possible implementation, the method may further update an existing resource consumption prompt area and / or display a prompt message in a graphical user interface after executing the virtual resource exchange action corresponding to the exchange recommendation information, indicating that the virtual resource exchange action corresponding to the exchange recommendation information is complete. For example, the resource exchange interface may be automatically closed, and a message such as "Resource Exchange Completed" may be displayed to notify the user that the resource exchange is complete.
[0046] The above method displays a resource intelligent exchange control within the graphical user interface for building a virtual object. By triggering a first operation on the control, a resource exchange interface can be directly displayed. The resource exchange interface includes exchange recommendation information and an exchange confirmation control for user reference. The user can trigger the terminal device to execute the virtual resource exchange action corresponding to the exchange recommendation information by performing a second operation on the exchange confirmation control. The resource exchange process can achieve resource exchange through only one control and one resource exchange interface, thereby simplifying the operation process. At the same time, the resource exchange interface displayed based on the virtual resource information corresponding to the upgraded virtual object has more reasonable exchange recommendation information. In some scenarios, the user does not need to fill in or select the resources and their quantities to be exchanged based on memory. The second operation on the exchange confirmation control is all that is needed to complete the corresponding resource exchange. This further simplifies the user operation during the virtual resource exchange process and improves the efficiency of resource exchange.
[0047] In order to improve the readability of the resource exchange interface, in a possible implementation, the step of displaying the resource exchange interface according to the virtual resource information corresponding to the upgraded virtual object in the above step S202 may include: (1) determining exchange recommendation information according to the virtual resource information corresponding to the upgraded virtual object; wherein, the virtual resource information includes the virtual resources required for upgrading the virtual object and the existing virtual resources of the user of the above terminal device, and the exchange recommendation information includes the identifier of the virtual swapped-out resource and the identifier of the virtual swapped-in resource, as well as the quantity of each virtual resource after the exchange; (2) displaying the resource exchange interface including the exchange recommendation information and the exchange confirmation control. This method enables users to understand the recommended information more intuitively and clearly by displaying the identifier of the virtual swapped-out resource and the identifier of the virtual swapped-in resource and the quantity of each virtual resource after the exchange (i.e., the resource conversion result) on the resource exchange interface. See Figure 3A schematic diagram of a resource exchange interface, wherein the virtual resource to be exchanged is metal and the virtual resource to be exchanged is crystal, both identified by resource names. The amount of metal after the exchange is 4000 and the amount of crystal after the exchange is 3000. Through this resource exchange interface, the user can clearly understand the exchange object and the amount after the exchange, making it easier for the user to confirm whether to proceed with the exchange.
[0048] In a possible implementation, in order to obtain the swap-in resources to the maximum extent and reduce the number of resource swaps, the step of determining the swap recommendation information based on the virtual resource information corresponding to the upgraded virtual object may include: (1) determining the virtual swap-out resources and virtual swap-in resources based on the virtual resources required for upgrading the virtual object and the existing virtual resources of the user of the terminal device; (2) setting the demand for the virtual swap-out resources in the virtual resources required for upgrading the virtual object as the reserved amount of the virtual swap-out resources; (3) determining the swap-in amount of the virtual swap-in resources based on the swap-out amount of the virtual swap-out resources; wherein the swap-out amount is the total amount of the user's current virtual swap-out resources minus the reserved amount; (4) generating the swap recommendation information based on the reserved amount of the virtual swap-out resources and the swap-in amount of the virtual swap-in resources. The swap recommendation information generated in this way may include the reserved amount of the virtual swap-out resources, the swap-in amount of the virtual swap-in resources, and may also include information such as the swap-out amount of the virtual swap-out resources. This way not only guarantees the upgrade requirements of the virtual object after the resource swap, but also maximizes the use of the virtual swap-out resources to exchange for more virtual swap-in resources, thereby reducing unnecessary frequent resource swap operations. Continue Figure 3 For example, Figure 4 Provides a schematic diagram of another resource exchange interface, similar to Figure 3 Similarly, the virtual swap-out resource is metal, and the virtual swap-in resource is crystal, both of which are identified by resource names. This interface also includes the identifier and quantity corresponding to the reserved resource. In this example, the reserved resource is metal, and the reserved quantity is 4000.
[0049] Considering that in some scenarios, the amount of reserved resources in the exchange recommendation information may not meet the user's wishes, based on this, the above resource exchange interface includes a modification box and modification controls for the reserved amount; the reserved amount is displayed in the modification box, see Figure 4 As shown, the metal reserve 400 is displayed in a modification box, with a modification control displayed to the right of the modification box. Accordingly, the method further includes: in response to a modification operation on the reserve in the modification box, displaying the changed quantity in the modification box; and in response to a selection operation on the modification control, updating the reserve and exchange recommendation information for the virtual swap-out resource using the quantity displayed in the modification box. By displaying the reserve modification box and modification control, this method allows users to modify the reserve of a resource, thereby adjusting the exchange quantity of virtual swap-in and virtual swap-out resources. This approach improves the flexibility of resource exchange.
[0050] In one possible implementation, in order to allow users to more comprehensively understand the information related to resource exchange, the step of displaying the resource exchange interface including exchange recommendation information and exchange confirmation controls may include: obtaining prompt information indicating whether the virtual object meets the upgrade conditions based on the quantity of each virtual resource after exchange in the exchange recommendation information; generating and displaying the resource exchange interface; wherein the resource exchange interface includes the exchange recommendation information, prompt information, and exchange confirmation controls. Figure 4 The resource exchange interface shown has the prompt message "Can meet the upgrade conditions of the current object" displayed in italics. By displaying the prompt message of whether the virtual object meets the upgrade conditions after the resource exchange on the resource exchange interface, the user can promptly know whether the exchanged resources can be used to upgrade the virtual object, thereby improving the information adequacy and readability of the resource exchange process and providing reliable information for upgrading the virtual object as soon as possible. Of course, in some scenarios, the exchanged resources cannot meet the upgrade conditions of the virtual object, and the prompt "Does not meet the upgrade conditions of the current object" will be displayed to remind the user that the exchanged resources do not meet the upgrade conditions of the virtual object.
[0051] The upgrade requirements for a virtual object typically refer to the amount of virtual resources required to upgrade the virtual object from its current state to the next level. For example, if a building is currently at level 4 and wants to upgrade to level 5, the upgrade requirements for the current building might be: 5000 metal, 600 deuterium, and 4000 crystals.
[0052] For scenarios with multiple virtual swap-in resources or virtual swap-out resources, that is, the exchanged virtual resources may be one-to-many or many-to-one, this embodiment can also determine priority recommended resources from multiple resources, thereby reducing the user's screening process. Based on this, the above-mentioned step of displaying the resource exchange interface according to the virtual resource information corresponding to the upgraded virtual object may include: determining the first type number of virtual swap-out resources and the second type number of virtual swap-in resources according to the virtual resource information corresponding to the upgraded virtual object; if the first type number and / or the second type number are multiple, determining priority recommended resources from the virtual resources with multiple types; and displaying the resource exchange interface marked with priority recommended resources. If only the first category is multiple, then the virtual resources of the multiple categories are virtual swap-out resources, and the priority recommended resource is determined only from the multiple different types of virtual swap-out resources. If only the second category is multiple, then the virtual resources of the multiple categories are virtual swap-in resources, and the priority recommended resource is determined only from the multiple different types of virtual swap-in resources. If both the first category and the second category are multiple, then the virtual resources of the multiple categories include virtual swap-out resources and virtual swap-in resources, and the priority recommended resource is determined from the multiple different types of virtual swap-out resources, and the priority recommended resource is determined from the multiple different types of virtual swap-in resources. If both the first category and the second category are 1, then the virtual swap-out resource and the virtual swap-in resource are exchanged one-to-one, and both are priority recommended resources.
[0053] The number of virtual resources of multiple types can be understood as the virtual swap-out resources or virtual swap-in resources that meet the exchange requirements are not a single virtual resource. For example, the virtual swap-out resources include metals and crystals. In this case, the virtual swap-out resources include two different virtual resources. Then, the above method can be used to determine the priority recommended resource from the metals and crystals. For example, metal is determined as the priority recommended resource. For the case where the number of the first type is multiple, the method of determining the priority recommended resource from the different types of virtual swap-out resources can include one of the following: (1) determining the virtual resource with the largest number among the multiple different types of virtual swap-out resources as the priority recommended resource; (2) determining the ordinary resource among the multiple different types of virtual swap-out resources as the priority recommended resource; (3) determining the virtual resource with the smallest number required for upgrading the virtual object among the multiple different types of virtual swap-out resources as the priority recommended resource.
[0054] For the case where there are multiple second categories, the method of determining the priority recommended resource from different types of virtual swap-in resources may include one of the following: (1) determining the virtual resource with the least existing quantity among multiple different types of virtual swap-in resources as the priority recommended resource; (2) determining the rare resource among multiple different types of virtual swap-in resources as the priority recommended resource; (3) determining the virtual resource with the largest quantity required for upgrading virtual objects among multiple different types of virtual swap-in resources as the priority recommended resource.
[0055] The priority recommended resources may be of one or two types, and may be either virtual swap-in resources or virtual swap-out resources. This method of marking the priority recommended resources allows users to intuitively identify the currently recommended resource for swapping, thereby improving the readability of the resource swap interface.
[0056] As a possible implementation, the resource exchange interface further includes an option box for multiple types of virtual resources, through which the priority recommended resources can be adjusted according to actual needs. Based on this, the method further includes: in response to a selection operation on a target option box, switching the mark of the priority recommended resource in the resource exchange interface to the target recommended resource corresponding to the target option box; and updating the exchange recommendation information in the resource exchange interface according to the quantity information corresponding to the target recommended resource. This method of setting the resource option box can adjust the priority recommended resources according to user preferences, for example, adjusting the original metal as the priority recommended resource to crystal as the priority recommended resource, thereby enhancing the flexibility of the technology and interactivity with users, and expanding the application scenarios of resource exchange.
[0057] See also Figure 5 The diagram shows another resource exchange interface. The metal in the left figure is the priority recommended resource initially determined by the system. The priority recommended resource is indicated by "√" and added to the option box corresponding to the metal resource. The virtual swap-out resource also includes crystals, and the virtual swap-in resource is deuterium. In the left figure, the reserved amount of metal is 4000. If metal is used as the virtual swap-out resource to exchange for deuterium, the amount of resources after the exchange is: 4000 metal, 3000 crystals, and 500 deuterium. By the user selecting the crystal option box, the "√" mark is switched from the metal option box to the crystal option box, as shown in the figure below. Figure 5 As shown in the right image, if the crystal option box is marked with "√", the virtual swap resource is recommended to be crystal, with a reserve of 2000 crystals. The resource quantity after swapping is: 6000 metal, 2000 crystals, and 500 deuterium. The other information in the image is similar to the description above and will not be repeated here.
[0058] See also Figure 6 The diagram of another resource exchange interface is shown on the left. Figure 5Similar to the left picture, metal is the priority resource initially determined by the system, and there is a "√" in its option box. The virtual swap-out resource also includes crystals, and the virtual swap-in resource is deuterium. In the left picture, the reserved amount of metal is 4000. If metal is used as the virtual swap-out resource to exchange for deuterium, the amount of resources after the exchange is: metal 4000, crystal 3000, deuterium 500. By the user selecting the option boxes of crystals and metals, such as Figure 6 As shown in the right image, if both the Metal and Crystal options boxes are marked with "√," the virtual swapped resources are recommended to be metal and crystal. The reserved crystal quantity is 2500 and the metal quantity is 5000. The total number of resources after the swap is: 5000 metal, 2500 crystal, and 500 deuterium. The other information in the image is similar to the description above and will not be repeated here.
[0059] The above-mentioned priority recommended resources can determine non-urgent resources from the user's existing virtual resources based on the level of the current virtual object, and use the non-urgent resources with large quantity or high value (which can be exchanged for more other resources) as priority recommended resources, or use the ordinary resources (i.e., resources that are relatively easy to obtain) among the user's existing virtual resources as priority recommended swap-out resources, and use the scarce resources (i.e., resources that are not easy to obtain) among the resources that the user lacks as priority recommended swap-in resources.
[0060] above Figure 5 and Figure 6 The example of multiple types of virtual swap-out resources is used for explanation. In specific application processes, there can also be multiple types of virtual swap-in resources. Similar to the above method, when there are multiple virtual swap-in resources, one or two priority recommended resources can be directly recommended. Users can also adjust the priority recommended resources. The specific process will not be repeated here.
[0061] Taking the building interface as an example, a resource intelligent exchange control is added to the building interface. When the resource intelligent exchange control is selected, the terminal device checks the virtual resources and quantity currently owned by the player character, determines the next level based on the level of the building currently built by the player character, and then calculates the current lack of virtual resources and quantity based on the virtual resources and quantity required for the next level, as well as the virtual resources and quantity currently owned by the player character, and then determines the resource exchange mode. Resource exchange modes include one-to-one mode, one-to-two mode, and two-to-one mode. Different resource exchange modes have different resource exchange interface styles, so the corresponding resource exchange interface is displayed according to the resource exchange mode. The following introduces each resource exchange mode separately.
[0062] (1) One-to-one model
[0063] When the user has enough A resources to exchange for the B resources that are missing for upgrading the building, A resources can be directly recommended as the priority exchange resource, or the user can manually select A resources as the priority exchange resource. If the reserved amount of exchanged resources is not set, the default amount is the minimum value required to upgrade the building. If the building upgrade conditions are met after the exchange, the text prompt "Building upgrade conditions can be met!" will be displayed on the resource exchange interface.
[0064] (2) Two-to-one mode
[0065] When both resources owned by the user can be exchanged and the exchange meets the building upgrade conditions, the system can directly default to one or let the user choose one as the priority recommended exchange resource, and display the text prompt "Can meet the building upgrade conditions!" on the resource exchange interface.
[0066] When both resources owned by the user are overflowing and can be exchanged, but the building upgrade conditions are not met after the exchange, the system can directly default to one or let the user choose one as the priority recommended exchange resource, and display a text prompt "Building upgrade conditions are not met!" on the resource exchange interface.
[0067] (3) One-to-two model
[0068] When a user lacks two types of resources, but has enough resources of another type to replace the two missing resources, the resource exchange interface will default to exchanging one resource for two resources, with the other resource recommended as the preferred resource to be swapped out, and the two missing resources recommended as the preferred resources to be swapped in. If the building upgrade conditions are met after the exchange, a text prompt will be displayed saying "Building upgrade conditions can be met!"
[0069] When a user lacks two resources, but another resource is not enough to replace the two missing resources, the resource exchange interface will display two resources for selection. The user can select one of them as the priority recommended resource, and the interface will display the prompt "Not enough to upgrade".
[0070] In addition to the above information, the resource exchange interface can also be configured with a dynamic icon indicating the number of resources for virtual resources. The dynamic icon is modified according to the quantity information of each virtual resource after the exchange, so that the modified icon status is consistent with the number of resources after the exchange. For example, the color of the circle filled with the virtual resource represents the quantity information of the virtual resource. If the upper limit of the number of virtual resources A is 10,000, when the number of virtual resources A reaches 10,000, the circle of virtual resource A is filled with red, that is, the entire circle is displayed in red. If the number of virtual resources A reaches 5,000, half of the circle of virtual resource A is red and the other half is gray. If the number of virtual resources A is 0, the circle of virtual resource A is all gray. Here, the dynamic icon uses a circle as an implementation example. In specific implementation, the dynamic icon can also be a progress bar or other forms, which is not limited in this embodiment.
[0071] The resource exchange interface may be closed in various ways, including but not limited to: closing after the exchange confirmation control is selected, closing when the display duration reaches a set duration and no user operation is received on the resource exchange interface within the duration, closing when the user operates other controls or interfaces outside the resource exchange interface while the resource exchange interface is displayed, closing when the user operates the close control on the resource exchange interface, etc. The close control on the resource exchange interface can be similar to other interfaces, with a close control (e.g., an icon with an "×") located in the upper right corner of the resource exchange interface.
[0072] As a possible implementation, the method further includes: in response to a third operation on the resource intelligent exchange control, executing an exchange action corresponding to priority swapping out resources and priority swapping in resources according to the virtual resource information corresponding to the upgraded virtual object; wherein the priority swapping out resources are virtual resources that have reached the upper limit among the existing virtual resources of the user of the terminal device, and the priority swapping in resources are virtual resources that are missing from the upgraded virtual object. The third operation on the resource intelligent exchange control here is different from the first operation described above. Through two different operation modes, it can be distinguished whether the resource exchange interface needs to be displayed. For example, the first operation is a mouse single-click operation, and the third operation is a mouse double-click operation. If the user double-clicks the resource intelligent exchange control with the mouse, the resource exchange interface is not displayed, and the exchange action corresponding to priority swapping out resources and priority swapping in resources is directly executed according to the virtual resource information corresponding to the upgraded virtual object, so as to realize a one-click fast resource exchange process. If the user single-clicks the resource intelligent exchange control with the mouse, the resource exchange interface is displayed, and the resource exchange is performed according to the resource exchange interface and the user's subsequent operation. This method allows users to quickly exchange resources with one click by performing a third operation on the resource intelligent exchange control when they know that a certain resource has reached its upper limit, thus avoiding the waste of resources that have reached the upper limit and improving the flexibility of the technology.
[0073] The aforementioned virtual resources are usually set with an upper limit. If a virtual resource has reached its upper limit, it will overflow when it is acquired. Therefore, this embodiment selects the virtual resource that has reached its upper limit as the priority resource to be swapped out, which can avoid resource overflow and waste. Of course, if the virtual resource has not reached its upper limit, the resource with the largest number can also be selected as the priority resource to be swapped out.
[0074] Considering that in some scenarios, users may have insufficient resources and may accidentally touch the resource intelligent exchange control, in order to simplify the operation, the above-mentioned response to the first operation on the resource intelligent exchange control, displaying the resource exchange interface according to the virtual resource information corresponding to the upgraded virtual object includes: responding to the first operation on the resource intelligent exchange control, determining whether the existing virtual resources of the user of the terminal device meet the set exchange conditions; if so, displaying the resource exchange interface according to the virtual resource information corresponding to the upgraded virtual object; if not, prompting that the current virtual resources cannot be exchanged. Figure 7 Another graphical user interface diagram shown, wherein Figure 1 On this basis, when the user performs the first operation on the resource intelligent exchange control, the graphical user interface displays "There are currently no excess resources available for exchange". This method of judging whether the existing virtual resources meet the set exchange conditions in the process of triggering the resource intelligent exchange control to display the resource exchange interface can directly prompt instead of displaying the resource exchange interface in scenarios where exchange is not possible, avoiding meaningless resource exchange and simplifying the user's resource exchange operation.
[0075] Through the above method, when users are exchanging resources, they only need to trigger the resource intelligent exchange control in the game's graphical user interface, and the system will display a resource exchange interface with exchange recommendation information and an exchange confirmation control. Simply select the exchange confirmation control to achieve resource exchange. The path of this resource exchange process is: from the resource intelligent exchange control to the resource exchange interface, and then select the exchange confirmation control. Under this quick exchange path, the user's gaming thoughts are not easily interrupted, maintaining the smoothness of game operations. At the same time, the exchange recommendation information in the resource exchange interface reflects the number of resources missing for upgrading virtual objects. Users do not need to remember it, reducing the phenomenon of having to return to the resource exchange interface to exchange resources again due to insufficient resources after the exchange due to incorrect memory.
[0076] After completing the exchange of virtual resources through the above method, the user can upgrade the above virtual objects according to the needs of the scene. The specific process of the upgrade operation can be referred to the relevant technical implementation and will not be repeated here.
[0077] Based on the above method embodiment, this embodiment also provides a virtual resource exchange device, which provides a graphical user interface through a terminal device; the graphical user interface includes virtual objects and resource intelligent exchange controls, see Figure 8 As shown, Figure 8 A schematic diagram of the structure of a virtual resource exchange device provided in this embodiment is shown, and the device includes:
[0078] The resource exchange triggering module 801 is configured to, in response to a first operation on the resource intelligent exchange control, display a resource exchange interface based on the virtual resource information corresponding to the upgraded virtual object. The resource exchange interface includes exchange recommendation information and an exchange confirmation control, wherein the exchange recommendation information includes virtual swap-out resource information and virtual swap-in resource information.
[0079] The resource exchange execution module 802 is configured to execute a virtual resource exchange action corresponding to the exchange recommendation information in response to a second operation on the exchange confirmation control.
[0080] The above-mentioned device provided in this embodiment, by setting a resource intelligent exchange control in the graphical user interface for building a virtual object, can directly display the resource exchange interface by triggering a first operation on the control, and the resource exchange interface includes exchange recommendation information and an exchange confirmation control for user reference. The user can trigger the terminal device to execute the virtual resource exchange action corresponding to the exchange recommendation information through a second operation acting on the exchange confirmation control. The resource exchange process can realize resource exchange through a resource exchange interface, thereby simplifying the operation process. At the same time, the exchange recommendation information in the resource exchange interface displayed according to the virtual resource information corresponding to the upgraded virtual object is more reasonable. The user does not need to fill in or select the resources to be exchanged according to memory, which further simplifies the user operation and improves the efficiency of resource exchange.
[0081] The resource exchange trigger module 801 is further configured to determine exchange recommendation information based on the virtual resource information corresponding to the upgraded virtual object; wherein the virtual resource information includes the virtual resources required for the upgraded virtual object and the existing virtual resources of the user of the terminal device; the exchange recommendation information includes the identifier of the virtual resource to be swapped out, the identifier of the virtual resource to be swapped in, and the quantity of each virtual resource after the exchange; and display a resource exchange interface including the exchange recommendation information and an exchange confirmation control. This method enables the identifier of the virtual resource to be swapped out, the identifier of the virtual resource to be swapped in, and the quantity of each virtual resource after the exchange (i.e., the resource conversion result) to be displayed on the resource exchange interface, allowing the user to more intuitively and clearly understand the recommended information.
[0082] The resource exchange trigger module 801 is further configured to determine virtual swap-out resources and virtual swap-in resources based on the virtual resources required for upgrading the virtual object and the existing virtual resources of the user of the terminal device; set the required amount of virtual swap-out resources among the virtual resources required for upgrading the virtual object as the reserved amount of virtual swap-out resources; determine the swap-in amount of virtual swap-in resources based on the swap-out amount of virtual swap-out resources; wherein the swap-out amount is the total amount of virtual swap-out resources currently available to the user minus the reserved amount; and generate exchange recommendation information based on the reserved amount of virtual swap-out resources and the swap-in amount of virtual swap-in resources. This approach not only ensures the upgrade requirements of the virtual object after resource exchange, but also maximizes the use of virtual swap-out resources to exchange for more virtual swap-in resources, thereby reducing unnecessary frequent resource exchange operations.
[0083] The resource exchange trigger module 801 is further configured to, in response to a modification operation on the reserved amount within the modification box, display the modified amount within the modification box; and, in response to a selection operation on the modification control, update the reserved amount of the virtual swap-out resource and the exchange recommendation information using the amount displayed within the modification box. By displaying the reserved amount modification box and modification control, the user can modify the reserved amount of the resource, thereby adjusting the exchange amount of the virtual swap-in resource and the virtual swap-out resource, thereby enhancing the flexibility of resource exchange.
[0084] The resource exchange trigger module 801 is further configured to obtain prompt information indicating whether the virtual object meets upgrade requirements based on the number of virtual resources after the exchange in the exchange recommendation information; and generate and display a resource exchange interface, which includes the exchange recommendation information, prompt information, and an exchange confirmation control. By displaying prompt information indicating whether the virtual object meets upgrade requirements after the resource exchange on the resource exchange interface, users can promptly understand whether the exchanged resources can be used to upgrade the virtual object, thereby improving the information adequacy and readability of the resource exchange process and providing reliable information for expediting virtual object upgrades.
[0085] The resource exchange trigger module 801 is further configured to determine, based on the virtual resource information corresponding to the upgraded virtual object, the number of virtual resources of a first category to be swapped out and the number of virtual resources of a second category to be swapped in; if the number of the first category and / or the number of the second category is multiple, determine a priority recommended resource from the virtual resources of the multiple categories; and display a resource exchange interface marked with the priority recommended resource. This method of marking the priority recommended resource allows the user to intuitively determine which resource is currently recommended for exchange, thereby improving the readability of the information on the resource exchange interface.
[0086] exist Figure 8 On the basis of the above resource exchange interface, the above resource exchange interface further includes option boxes corresponding to multiple types of virtual resources. Based on this, the embodiment of the present disclosure also provides another virtual resource exchange device. Figure 9FIG. 1 shows a schematic diagram of the structure of another virtual resource switching device provided by this embodiment. Figure 9 As shown, the above-mentioned device also includes a recommendation information update module 803, which is used to switch the mark of the priority recommended resource in the resource exchange interface to the target recommended resource corresponding to the target option box in response to the selection operation of the target option box; and update the exchange recommendation information in the resource exchange interface according to the quantity information corresponding to the target recommended resource. This method of setting the resource option box can adjust the priority recommended resources according to user preferences, for example, changing the original priority recommended resource from metal to crystal, enhancing the flexibility of the technology and interactivity with users, and expanding the application scenarios of resource exchange.
[0087] The apparatus further includes a fast swap module 804 for executing, in response to a third operation on the intelligent resource swap control, a swap operation corresponding to priority swapping out resources and priority swapping in resources based on virtual resource information corresponding to the upgraded virtual object; wherein priority swapping out resources are virtual resources that have reached their upper limit among the user's existing virtual resources of the terminal device, and priority swapping in resources are virtual resources that are missing from the upgraded virtual object. This method enables a one-click, fast resource swap by executing a third operation on the intelligent resource swap control, even when the user knows that a resource has reached its upper limit, thereby avoiding waste of resources that have reached their upper limit and improving the flexibility of the technology.
[0088] The resource exchange trigger module 801 is further configured to, in response to a first operation on the resource intelligent exchange control, determine whether the user's existing virtual resources on the terminal device meet the set exchange conditions; if so, display a resource exchange interface based on the virtual resource information corresponding to the upgraded virtual object; if not, indicate that the current virtual resources cannot be exchanged. This method of determining whether the existing virtual resources meet the set exchange conditions during the process of triggering the resource intelligent exchange control to display the resource exchange interface allows for a direct prompt in scenarios where exchange is not possible, rather than displaying the resource exchange interface. This avoids meaningless resource exchanges and simplifies the user's resource exchange operation.
[0089] The virtual resource exchange device provided in this embodiment can enable users to understand the recommendation information more intuitively and clearly by displaying the identifiers of virtual swapped-out resources and virtual swapped-in resources and the number of each virtual resource after the exchange on the resource exchange interface; and through the above-mentioned virtual resource reservation amount, it not only guarantees the upgrade requirements of virtual objects after the resource exchange, but also maximizes the use of virtual swapped-out resources to exchange for more virtual swapped-in resources, thereby reducing unnecessary frequent resource exchange operations.
[0090] Through the resource exchange technology provided by the above embodiments, during the virtual object upgrade process, users can directly exchange resources based on the exchange recommendation information provided by the resource exchange interface, without having to remember the number of resources currently lacking, thus reducing mental effort. At the same time, the virtual resources to be swapped in and out, as well as the exchange quantity, can be determined within the resource exchange interface without having to jump to other interfaces to set relevant information, thus reducing the user's operating costs and improving the smoothness of game operations. By prompting the resource exchange interface with information on whether the virtual object upgrade conditions can be met after the resource exchange, the readability of the resource exchange process information is further improved.
[0091] The virtual resource exchange device provided in the embodiment of the present disclosure has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for parts not mentioned in the embodiment of the virtual resource exchange device, reference can be made to the corresponding content in the aforementioned embodiment.
[0092] The present disclosure also provides an electronic device, such as Figure 10 As shown, it is a structural diagram of the electronic device, wherein the electronic device includes a processor 101 and a memory 100, the memory 100 stores computer executable instructions that can be executed by the processor 101, and the processor 101 executes the computer executable instructions to implement the above-mentioned virtual resource exchange method.
[0093] exist Figure 10 In the illustrated embodiment, the electronic device further includes a bus 102 and a communication interface 103 , wherein the processor 101 , the communication interface 103 and the memory 100 are connected via the bus 102 .
[0094] Among them, the memory 100 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 102 can be an ISA (Industry Standard Architecture, Industrial Standard Architecture) bus, a PCI (Peripheral Component Interconnect, Peripheral Component Interconnect Standard) bus or an EISA (Extended Industry Standard Architecture, Extended Industry Standard Architecture) bus, etc. The bus 102 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 10Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0095] The processor 101 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 101 or by instructions in the form of software. The above-mentioned processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 101 reads the information in the memory and completes the steps of the virtual resource exchange method of the above embodiment in combination with its hardware.
[0096] An embodiment of the present disclosure also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned virtual resource exchange method. The specific implementation can be found in the aforementioned method embodiment, which will not be repeated here.
[0097] The computer program product of the virtual resource exchange method, device and electronic device provided in the embodiments of the present disclosure includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments and will not be repeated here.
[0098] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present application.
[0099] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0100] In the description of this application, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate the description of this application and simplify the description. They do not indicate or imply that the devices or components referred to must have a specific orientation, be constructed, or operate in a specific orientation. Therefore, they should not be construed as limitations on this application. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0101] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The scope of protection of the present application is not limited thereto. Although the present application has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed in the present application, or perform equivalent replacements for some of the technical features thereof. These modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the scope of protection of the claims.
Claims
1. A method for exchanging virtual resources, characterized in that: A graphical user interface is provided through a terminal device; the graphical user interface includes virtual objects and resource intelligent exchange controls, and the method is applied to a game scene built with the virtual objects, and the virtual objects are upgraded by consuming the virtual resources, including: In response to a first operation on the resource intelligent exchange control, a resource exchange interface is displayed according to the virtual resource information corresponding to the upgraded virtual object; wherein the resource exchange interface includes exchange recommendation information and an exchange confirmation control, and the exchange recommendation information includes virtual swap-out resource information and virtual swap-in resource information; In response to a second operation on the exchange confirmation control, executing a virtual resource exchange action corresponding to the exchange recommendation information.
2. The method according to claim 1, characterized in that Displaying a resource exchange interface according to the virtual resource information corresponding to the upgraded virtual object includes: Determining exchange recommendation information based on virtual resource information corresponding to the upgrade of the virtual object; wherein the virtual resource information includes virtual resources required for upgrading the virtual object and existing virtual resources of the user of the terminal device, and the exchange recommendation information includes an identifier of the virtual resource to be swapped out and an identifier of the virtual resource to be swapped in, as well as the quantity of each virtual resource after the swap; A resource exchange interface including the exchange recommendation information and an exchange confirmation control is displayed.
3. The method according to claim 2, characterized in that Determining the exchange recommendation information according to the virtual resource information corresponding to the upgraded virtual object includes: Determining virtual swap-out resources and virtual swap-in resources based on virtual resources required for upgrading the virtual object and existing virtual resources of the user of the terminal device; Setting the demand amount of the virtual swap-out resource in the virtual resources required for upgrading the virtual object as the reserved amount of the virtual swap-out resource; Determining the swap-in amount of the virtual swap-in resource according to the swap-out amount of the virtual swap-out resource; wherein the swap-out amount is the amount obtained by subtracting the reserved amount from the total amount of the virtual swap-out resources currently available to the user; The swap recommendation information is generated according to the reserved amount of the virtual swap-out resource and the swap-in amount of the virtual swap-in resource.
4. The method according to claim 3, characterized in that The resource exchange interface includes a modification box and a modification control for the reserved amount; the reserved amount is displayed in the modification box, and the method further includes: In response to a modification operation on the reserved amount in the modification box, displaying the modified amount in the modification box; In response to a selection operation on the modification control, the reserved amount of the virtual swap-out resource and the swap recommendation information are updated using the amount displayed in the modification box.
5. The method according to claim 2, characterized in that Displaying the resource exchange interface including the exchange recommendation information and the exchange confirmation control includes: Obtaining prompt information indicating whether the virtual object meets upgrade conditions according to the quantity of each virtual resource after exchange in the exchange recommendation information; Generate and display a resource exchange interface; wherein the resource exchange interface includes the exchange recommendation information, the prompt information and an exchange confirmation control.
6. The method according to claim 1, characterized in that Displaying the resource exchange interface according to the virtual resource information corresponding to the upgraded virtual object includes: Determining the number of first types of virtual swap-out resources and the number of second types of virtual swap-in resources according to the virtual resource information corresponding to the upgraded virtual object; If the number of the first categories and / or the number of the second categories is plural, determining a priority recommended resource from the virtual resources of the plural categories; A resource exchange interface marked with the priority recommended resource is displayed.
7. The method according to claim 6, characterized in that The resource exchange interface further includes option boxes corresponding to the plurality of virtual resources; the method further includes: In response to a selection operation on a target option box, switching the mark of the priority recommended resource in the resource exchange interface to the target recommended resource corresponding to the target option box; The exchange recommendation information in the resource exchange interface is updated according to the quantity information corresponding to the target recommended resource.
8. The method according to claim 1, characterized in that The method further comprises: In response to the third operation on the resource intelligent exchange control, the exchange actions corresponding to the priority swap-out resources and the priority swap-in resources are performed according to the virtual resource information corresponding to the upgrade of the virtual object; wherein, the priority swap-out resources are the virtual resources that have reached the upper limit among the existing virtual resources of the user of the terminal device, and the priority swap-in resources are the virtual resources that are missing for upgrading the virtual object.
9. The method according to claim 1, characterized in that In response to a first operation on the resource intelligent exchange control, displaying a resource exchange interface according to the virtual resource information corresponding to the upgraded virtual object includes: In response to a first operation on the resource intelligent exchange control, determining whether the existing virtual resources of the user of the terminal device meet the set exchange conditions; If yes, displaying a resource exchange interface according to the virtual resource information corresponding to the upgraded virtual object; If not, it prompts that the current virtual resources cannot be exchanged.
10. A virtual resource exchange device, characterized in that: A graphical user interface is provided through a terminal device; the graphical user interface includes virtual objects and resource intelligent exchange controls, and the device is applied to a game scene built with the virtual objects, and the virtual objects are upgraded by consuming the virtual resources, including: a resource exchange triggering module, configured to, in response to a first operation on the resource intelligent exchange control, display a resource exchange interface according to the virtual resource information corresponding to the upgraded virtual object; wherein the resource exchange interface includes exchange recommendation information and an exchange confirmation control, the exchange recommendation information including virtual swap-out resource information and virtual swap-in resource information; The resource exchange execution module is configured to execute the virtual resource exchange action corresponding to the exchange recommendation information in response to a second operation on the exchange confirmation control.
11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Resource exchange method and device, computer readable storage medium and computer equipment
CN111161073A