CN116139485A - Virtual resource exchange method and device, electronic equipment and storage medium - Google Patents

Virtual resource exchange method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116139485A
CN116139485A CN202310021018.9A CN202310021018A CN116139485A CN 116139485 A CN116139485 A CN 116139485A CN 202310021018 A CN202310021018 A CN 202310021018A CN 116139485 A CN116139485 A CN 116139485A
Authority
CN
China
Prior art keywords
resource
virtual
exchange
resources
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310021018.9A
Other languages
Chinese (zh)
Inventor
张红艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202310021018.9A priority Critical patent/CN116139485A/en
Publication of CN116139485A publication Critical patent/CN116139485A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/533Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/58Controlling game characters or game objects based on the game progress by computing conditions of game characters, e.g. stamina, strength, motivation or energy level
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/69Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by enabling or updating specific game elements, e.g. unlocking hidden features, items, levels or versions

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The utility model provides a virtual resource exchange method, a virtual resource exchange device, electronic equipment and a storage medium. The switching method provides a graphical user interface through the terminal equipment, wherein the graphical user interface comprises a virtual object and a resource intelligent switching control, and the method comprises the following steps: responding to a first operation for the resource intelligent exchange control, and displaying a resource exchange interface according to virtual resource information corresponding to the updated virtual object; the resource exchange interface comprises exchange recommendation information and an exchange confirmation control, wherein the exchange recommendation information comprises virtual out-of-resource information and virtual in-resource information; and responding to a second operation for the exchange confirmation control, and executing a virtual resource exchange action corresponding to the exchange recommendation information. By the technology, the resource exchange process is simplified, and the efficiency of resource exchange is improved.

Description

Virtual resource exchange method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of game technologies, and in particular, to a virtual resource exchange method, device, electronic device, and storage medium.
Background
In some games involving base construction, virtual buildings are currently upgraded in a resource-consuming manner. In the process of upgrading a virtual building, a plurality of virtual resources with different amounts are required, so that the virtual resource exchanging operation is often required due to the lack of corresponding virtual resources.
In the existing virtual resource exchange operation, a control (or button) in a base construction interface is usually required to be clicked to enter a selectable button list, then a resource exchange interface is opened by clicking a resource transaction button in the button list, then a certain required resource icon is clicked, another 2 resource bars on the right side are dragged to exchange in a next-level interface, and after exchange, the corresponding upgrading or base construction interface is returned to perform related operation.
In the virtual resource exchange process, a player needs to perform multiple operations through multiple buttons and interfaces to complete one-time resource exchange, and drag resource bars are needed to determine the exchange quantity, so that the upgrading of a virtual building cannot be realized once the exchange quantity is unreasonable, multiple virtual resource exchange operations are needed, and the operation is complex and the efficiency is low.
Disclosure of Invention
An object of an embodiment of the present disclosure is to provide a method, an apparatus, an electronic device, and a storage medium for exchanging virtual resources, so as to simplify a resource exchanging process and improve efficiency of resource exchanging.
The embodiment of the disclosure provides a virtual resource exchange method, which provides a graphical user interface through terminal equipment; the graphical user interface comprises a virtual object and a resource intelligent exchange control, and the method comprises the following steps: responding to a first operation for the resource intelligent exchange control, and displaying a resource exchange interface according to virtual resource information corresponding to the updated virtual object; the resource exchange interface comprises exchange recommendation information and an exchange confirmation control, wherein the exchange recommendation information comprises virtual out-of-resource information and virtual in-resource information; and responding to a second operation for the exchange confirmation control, and executing a virtual resource exchange action corresponding to the exchange recommendation information.
In a second aspect, an embodiment of the present disclosure further provides a device for exchanging virtual resources, where a graphical user interface is provided through a terminal device; the graphical user interface includes a virtual object and a resource intelligent exchange control, the apparatus comprising: the resource exchange triggering module is used for responding to a first operation for the resource intelligent exchange control and displaying a resource exchange interface according to virtual resource information corresponding to the updated virtual object; the resource exchange interface comprises exchange recommendation information and an exchange confirmation control, wherein the exchange recommendation information comprises virtual out-of-resource information and virtual in-resource information; and the resource exchange executing module is used for responding to the second operation of the exchange confirmation control and executing the virtual resource exchange action corresponding to the exchange recommendation information.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including a processor and a memory, where the memory stores computer executable instructions executable by the processor, and the processor executes the computer executable instructions to implement the method for exchanging virtual resources described above.
In a fourth aspect, embodiments of the present disclosure further provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the above-described virtual resource exchange method.
The embodiment of the disclosure provides a virtual resource exchanging method, device, electronic equipment and storage medium, by displaying a resource intelligent exchanging control in a graphical user interface for building a virtual object, the resource exchanging interface can be directly displayed by triggering a first operation on the control, the resource exchanging interface comprises exchanging recommendation information and exchanging confirmation control for user reference, a user can trigger a terminal device to execute a virtual resource exchanging action corresponding to the exchanging recommendation information through a second operation on the exchanging confirmation control, and the resource exchanging process can realize resource exchanging only through one control and one resource exchanging interface, so that the operation process is simplified. Meanwhile, according to the resource exchange interface displayed by the virtual resource information corresponding to the updated virtual object, the exchange recommendation information in the resource exchange interface is more reasonable, and in some scenes, a user can complete corresponding resource exchange by only needing to exchange the second operation on the confirmation control without filling or selecting the resources to be exchanged and the quantity of the resources according to the memory, so that the user operation in the virtual resource exchange process is further simplified, and the resource exchange efficiency is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a graphical user interface provided by an embodiment of the present disclosure;
FIG. 2 is a flowchart of a method for exchanging virtual resources according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a resource exchange interface provided by an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of another resource exchange interface provided by an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of another resource exchange interface provided by an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of another resource exchange interface provided by an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of another graphical user interface provided by an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a virtual resource switching apparatus according to an embodiment of the present disclosure;
Fig. 9 is a schematic structural diagram of another virtual resource switching apparatus according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
First, the present application is directed to introducing nouns:
(1) Virtual scene (game scene or construction scene)
The virtual scene is a virtual scene that an application program displays (or provides) when running on a terminal or a server. Optionally, the virtual scene is a simulation environment for the real world, or a semi-simulated semi-fictional virtual environment, or a purely fictional 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, and the virtual environment can be sky, land, ocean and the like, wherein the land comprises environmental elements such as deserts, cities, plants and the like. For example, for a base construction game, where the virtual scene is a 2D, 2.5D, or 3D game world for players to control virtual objects to play a base, exemplary virtual scenes may include: at least one element selected from mountain, plain, river, lake, ocean, desert, sky, plant, building, vehicle, and warship.
(2) Game interface
The game interface is an interface corresponding to the application program provided or displayed through the graphical user interface, and the interface comprises a UI interface and a game picture for the player to interact. In alternative embodiments, game controls (e.g., skill controls, movement controls, functionality controls, etc.), indication identifiers (e.g., direction indication identifiers, character indication identifiers, etc.), information presentation areas (e.g., number of clicks, time of play, etc.), or game setting controls (e.g., system settings, stores, gold coins, etc.) may be included in the UI interface. In an alternative embodiment, the game screen is a display screen corresponding to the virtual scene displayed by the terminal device, where the game screen may include elements in the virtual scene, and game roles, NPC roles, AI roles, and the like for executing game logic.
(3) Virtual object
Virtual objects refer to dynamic objects that can be controlled in a virtual scene. Alternatively, the dynamic object may be a virtual building, a virtual warship, a virtual vehicle, or the like. The virtual object is built by virtual resources, the building process of the virtual object can be performed by virtual roles controlled by players, and the number of the virtual roles can be dynamically determined according to requirements, which is not limited in the embodiment of the application. In one possible implementation, a user can control a virtual character to move in the virtual scene, e.g., control a virtual object to run, jump, crawl, etc., as well as control the virtual character to fight other virtual characters using skills, virtual props, etc., provided by an application.
(4) Player character
A player character refers to a virtual character that may be manipulated by a player to be active in a gaming environment, which may also be referred to as a god character, hero character in some electronic games. The player character may be at least one of a virtual character, a virtual animal, a cartoon character, a virtual vehicle, or the like.
In order to simply and quickly realize virtual resource exchange in the virtual object construction process, the embodiment of the invention provides a virtual resource exchange method, a device, electronic equipment and a storage medium.
In one embodiment of the disclosure, the method for exchanging virtual resources may be executed on a terminal device or a server. The terminal device may be a local terminal device. When the virtual resource exchange method runs on a server, the method can be realized and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and client equipment.
In an alternative embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud game. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the running mode of the cloud game, the running main body of the game program and the game picture presentation main body are separated, the storage and running of the exchange method of the virtual resources are completed on the cloud game server, and the function of the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the terminal device for information processing is cloud game server of cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game pictures.
In an alternative embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with the player through the graphical user interface, namely, conventionally downloading and installing the game program through the electronic device and running. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal, or provided to the player by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including game visuals, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
In a possible implementation manner, the embodiment of the present invention provides a method for exchanging virtual resources, and a graphical user interface is provided through a terminal device, where the terminal device may be the aforementioned local terminal device or the aforementioned client device in the cloud interaction system. A graphical user interface is provided through the terminal device, the graphical user interface comprises a graphical user interface comprising a virtual object and a resource intelligent exchange control, a schematic diagram of a graphical user interface is shown in fig. 1, the schematic diagram comprises a virtual object 12 and a resource intelligent exchange control 16, wherein the virtual object 12 can be a warship, a turret, a water station and other objects in a base construction or can be other objects in a base defense system or an operation system, and the graphical user interface can also display other built objects except the virtual object 12, and the virtual object 12 and the other built objects form a building scene 14 as shown in fig. 1. In order to facilitate the user to know the use condition of the current resources, the graphical user interface can also comprise an existing resource consumption prompt area, wherein the total amount and consumption of each resource currently owned by the user can be displayed in the area. In general, some virtual resources may be used in the building process of the virtual object 12, for example: metals, crystals, heavy hydrogen and the like, wherein some virtual resources are relatively easy to obtain, and belong to common resources; and some virtual resources are difficult to acquire, and belong to rare resources. In some scenarios, a user may have a larger number of common resources, have a smaller number of rare resources, or have no rare resources, and in the process of building a virtual object, needs to use the common resources to exchange the rare resources so as to continue building the virtual object. In order to improve the exchange efficiency of the virtual resources, the embodiment sets the resource intelligent exchange control 16 in the graphical user interface, so that a user can enter the resource exchange interface by triggering the control, and further complete the exchange process of the related virtual resources. Based on the graphical user interface shown in fig. 1, referring to the flowchart of the virtual resource exchange method shown in fig. 2, the method includes the following steps:
Step S202, responding to a first operation for the resource intelligent exchange control, and displaying a resource exchange interface according to virtual resource information corresponding to the updated virtual object; the resource exchange interface comprises exchange recommendation information and an exchange confirmation control, wherein the exchange recommendation information comprises virtual out-of-resource information and virtual in-resource information;
the first operation for the resource intelligent switching control may be any operation for selecting the resource intelligent switching control, for example, for a non-touch terminal, the first operation may include a single click or double click operation of a left mouse button; for the touch terminal, the first operation may include a sliding operation and/or a point touch operation, etc.
The specific content of the exchange recommendation information in the resource exchange interface is related to the virtual resource information corresponding to the upgrade virtual object, the virtual resource information corresponding to the upgrade virtual object is different, and the content of the exchange recommendation information in the resource exchange interface is different. In one possible implementation manner, the virtual resource information corresponding to the updated virtual object includes information of the number of various virtual resources required for updating the virtual object and information of the number of various virtual resources currently owned by the user of the terminal device, and according to these information, virtual outgoing resource information and virtual incoming resource information corresponding to the updated virtual object may be determined. The virtual swap-out resource information may include an identification of the virtual swap-out resource and a swap-out number thereof, and the virtual swap-in resource information may include an identification of the virtual swap-in resource and a swap-in number thereof. The identification of the virtual swap-out resource and the identification of the virtual swap-in resource may be name identifications, icon identifications, or a combination identification containing the name and icon of the virtual resource.
In one possible implementation manner, the virtual outgoing resources and the virtual incoming resources may be in a one-to-one relationship, or may be in a one-to-many or many-to-one relationship, that is, one virtual incoming resource may be exchanged with one virtual outgoing resource, one virtual incoming resource may be exchanged with multiple virtual outgoing resources, or multiple virtual incoming resources may be exchanged with multiple virtual outgoing resources, where the correspondence between the virtual outgoing resources and the virtual incoming resources is specifically related to virtual resource information corresponding to the updated virtual object.
Taking the construction of a virtual warship in the base construction as an example, assuming that the current grade of the constructed virtual warship is the 2 nd grade, a user only currently has an A resource 10000, an A resource 4000 is needed for upgrading the virtual warship, a B resource 2000 is needed for upgrading the virtual warship, and if the A resource 6000 can be replaced by the B resource 4000, the exchange recommendation information can be in the following two forms: virtual swap-out of resources: a, the number is: 6000; virtual swap-in resource B, number: 4000; virtual swap-out of resources: a, the number is: 3000; virtual swap-in resource B, number: 2000. the two forms of exchange recommendation information can ensure that the virtual warship is upgraded from the current grade of 2 nd grade to the 3 rd grade.
Step S204, responding to the second operation of the exchange confirmation control, and executing the virtual resource exchange action corresponding to the exchange recommendation information.
The exchange confirmation control is a control for triggering virtual resource exchange, and is used for selecting the control when a user confirms the exchange corresponding to the virtual out-of-resource information and the virtual in-resource information, so that corresponding virtual resource exchange can be performed. Through the exchange confirmation control, even if a user misoperates the resource intelligent exchange control, the resource exchange can not be directly carried out under the condition that the second operation is not carried out on the exchange confirmation control, the first fault-tolerant opportunity is provided for the user, and the rationality of the resource exchange is ensured.
For the second operation of the exchange confirmation control, similar to the first operation, the second operation may be any operation of selecting the exchange confirmation control, for example, for a non-touch terminal, the second operation may include a single click or double click operation of a left mouse button; for the touch terminal, the second operation may include a sliding operation and/or a point touch operation, etc.
In a possible implementation manner, after executing the virtual resource exchange action corresponding to the exchange recommendation information, the method may update an existing resource consumption prompting area and/or display prompting information in the graphical user interface to prompt that the virtual resource exchange action corresponding to the exchange recommendation information is completed. For example, the resource exchange interface is automatically closed, and the user is prompted that the resource exchange is completed in the word of "exchange resource complete".
According to the method, the resource intelligent exchange control is displayed in the graphical user interface for building the virtual object, the resource exchange interface can be directly displayed by triggering the first operation on the control, the resource exchange interface comprises the exchange recommendation information and the exchange confirmation control for reference by a user, the user can trigger the terminal equipment to execute the virtual resource exchange action corresponding to the exchange recommendation information through the second operation on the exchange confirmation control, and the resource exchange process can realize resource exchange through only one control and one resource exchange interface, so that the operation process is simplified. Meanwhile, according to the resource exchange interface displayed by the virtual resource information corresponding to the updated virtual object, the exchange recommendation information in the resource exchange interface is more reasonable, and in some scenes, a user can complete corresponding resource exchange by only needing to exchange the second operation on the confirmation control without filling or selecting the resources to be exchanged and the quantity of the resources according to the memory, so that the user operation in the virtual resource exchange process is further simplified, and the resource exchange efficiency is further improved.
In order to improve the readability of the resource exchange interface, in a possible implementation manner, the step of displaying the resource exchange interface according to the virtual resource information corresponding to the updated virtual object in the step S202 may include: (1) According to the virtual resource information corresponding to the updated virtual object, determining exchange recommendation information; the virtual resource information comprises virtual resources required by upgrading the virtual object and the existing virtual resources of the user of the terminal equipment, and the exchange recommendation information comprises the identification of virtual out-of-resources and the identification of virtual in-resources and the number of the virtual resources after exchange; (2) And displaying a resource exchange interface comprising exchange recommendation information and an exchange confirmation control. According to the method, the identification of the virtual swap-out resources, the identification of the virtual swap-in resources and the number of the virtual resources (namely the conversion result of the resources) after the swap are displayed on the resource swap interface, so that a user can intuitively and clearly know the recommendation information. Referring to a schematic diagram of a resource exchange interface shown in fig. 3, in which virtual resources are metals, virtual resources are crystals, all are identified by resource names, the number of metals after exchange is 4000, and the number of crystals is 3000. Through the resource exchange interface, the user can clearly know the exchanged objects and the exchanged quantity, so that the user can conveniently confirm whether to conduct the exchange.
In one possible implementation manner, in order to obtain the swap-in resource to the maximum extent, and reduce the number of resource exchanges, the step of determining to exchange recommendation information according to the virtual resource information corresponding to the updated virtual object may include: (1) Determining virtual out-of-resources and virtual in-resources according to virtual resources required by upgrading the virtual object and existing virtual resources of a user of the terminal equipment; (2) Setting the demand quantity of the virtual swap-out resources in the virtual resources required by upgrading the virtual objects as the reserved quantity of the virtual swap-out resources; (3) Determining the swap-in amount of the virtual swap-in resource according to the swap-out amount of the virtual swap-out resource; the change-out amount is the amount obtained by subtracting the reserved amount from the total amount of the virtual change-out resources currently existing by the user; (4) And generating exchange recommendation information according to the reserved quantity of the virtual swap-out resources and the swap-in quantity of the virtual swap-in resources. The exchange recommendation information generated in the mode can contain the reserved quantity of the virtual outgoing resources, the exchange quantity of the virtual incoming resources and the like, and can also contain the information such as the exchange quantity of the virtual outgoing resources. Continuing with the example of fig. 3, fig. 4 provides a schematic diagram of another resource exchange interface, similar to fig. 3, in which virtual resources are metal, virtual resources are crystal, and are identified by resource names, and the interface further includes an identifier and number corresponding to reserved resources, in this example, the reserved resources are metal, and the reserved quantity is 4000.
Considering that the number of reserved resources in the exchange recommendation information may not meet the wish of a user in some scenes, based on the fact that the resource exchange interface comprises a modification frame and a modification control of the reserved quantity; the reserved amount is shown in the modification box, see fig. 4, wherein the reserved amount 400 of metal is shown in the modification box, and the modification control is shown on the right side of the modification box. Correspondingly, the method further comprises the steps of: displaying the changed quantity in the modification frame in response to a modification operation for the reserved quantity in the modification frame; and in response to a selected operation for the modification control, applying the number displayed within the modification box to update the reserved amount of the virtual swap-out resource and exchange recommendation information. According to the method, the reserved quantity of the resources can be modified by a user through displaying the modification frame and the modification control of the reserved quantity, so that the exchange quantity of the virtual switch-in resources and the virtual switch-out resources is adjusted, and the flexibility of resource exchange is improved.
In one possible embodiment, in order to make the user more fully aware of the information related to resource exchange, the step of displaying the resource exchange interface including the exchange recommendation information and the exchange confirmation control may include: acquiring prompt information of whether the virtual object meets the upgrading conditions according to the number of each virtual resource after the exchange in the exchange recommendation information; generating and displaying a resource exchange interface; the resource exchange interface comprises an exchange recommendation information, a prompt information and an exchange confirmation control. Referring to the resource exchange interface shown in fig. 4, a prompt message "can satisfy the upgrade condition of the current object" is displayed in italics. By displaying the prompt information of whether the virtual object meets the upgrading condition or not after the resource exchange on the resource exchange interface, a user can timely know whether the exchange resource can upgrade the virtual object, so that the information sufficiency and the readability of the resource exchange process are improved, and reliable information is provided for upgrading the virtual object as soon as possible. Of course, in some scenarios, if the exchanged resource cannot meet the upgrade condition of the virtual object, the user is prompted to "not meet the upgrade condition of the current object" so as to prompt the user that the exchanged resource does not meet the upgrade condition of the virtual object.
The upgrade condition of the virtual object generally refers to the number of virtual resources required for the virtual object to be upgraded from the current state to the next level. For example, the current building level is 4, and if the current building is to be upgraded to 5, the upgrade condition of the current building may be specifically: 5000 for metal, 600 for heavy hydrogen and 4000 for crystal.
For a scenario in which there are multiple virtual swap-in resources or virtual swap-out resources, that is, in which the exchanged virtual resources may be one-to-many or many-to-one, the embodiment may further determine a priority recommended resource from multiple resources, so as to reduce a screening process of a user, and based on this, the step of displaying a resource exchange interface according to virtual resource information corresponding to an upgraded virtual object may include: determining the first kind of number of virtual out-of resources and the second kind of number of virtual in-out resources according to the virtual resource information corresponding to the updated virtual object; if the number of the first category and/or the number of the second category are multiple, determining a priority recommended resource from the virtual resources with the multiple categories; and displaying a resource exchange interface marked with the priority recommended resource. If the number of the first category is a plurality of virtual resources, the virtual resources with the plurality of categories are virtual swap-out resources, and the priority recommended resources are determined only from the plurality of virtual swap-out resources with different categories; if the number of the second category is a plurality of virtual resources, the virtual resources with the plurality of categories are virtual swap-in resources, and the priority recommended resources are determined only from the virtual swap-in resources with the plurality of different categories; if the number of the first category and the number of the second category are multiple, the virtual resources with multiple categories comprise virtual swap-out resources and virtual swap-in resources, the priority recommended resources are determined from the multiple virtual swap-out resources with different categories, and the priority recommended resources are determined from the multiple virtual swap-in resources with different categories. And if the number of the first category and the number of the second category are 1, the virtual swap-out resources and the virtual swap-in resources are one-to-one exchanged, and the virtual swap-out resources and the virtual swap-in resources are the recommended resources.
The virtual resources with multiple categories may be understood as virtual swap-out resources or virtual swap-in resources satisfying the exchange are not a single virtual resource, for example, the virtual swap-out resources include metal and crystal, and then the virtual swap-out resources include two different virtual resources, and then the preferred recommended resources may be determined from the metal and crystal by the above method, for example, the metal is determined to be the preferred recommended resource. For the case where the number of the first category is plural, the manner of determining the priority recommended resource from the virtual swap-out resources of the different categories may include one of: (1) Determining the virtual resources with the largest quantity in the virtual swapped-out resources of a plurality of different types as priority recommended resources; (2) Determining common resources in a plurality of different kinds of virtual swap-out resources as priority recommended resources; (3) And determining the virtual resource with the least quantity required by upgrading the virtual object in the plurality of different types of virtual swap-out resources as the priority recommended resource.
For the case where the number of the second category is plural, the manner of determining the priority recommended resource from the virtual swap-in resources of the different categories may include one of: (1) Determining virtual resources with the least quantity in the resources of a plurality of different types of virtual switch-in resources as priority recommended resources; (2) Determining rare resources in a plurality of different kinds of virtual swap-in resources as priority recommended resources; (3) And determining the virtual resources with the largest quantity required by upgrading the virtual objects in the plurality of heterogeneous virtual swap-in resources as the priority recommended resources.
The types of the priority recommended resources can be one or two types, and the priority recommended resources can be virtual in-and-out resources. The method for marking the priority recommended resources can enable the user to intuitively determine which resource is currently recommended to be exchanged, and improves the information readability of the resource exchange interface.
As a possible implementation manner, the resource exchange interface further includes option boxes of virtual resources corresponding to multiple categories, and the priority recommended resources can be adjusted according to actual needs through the option boxes. Based on this, the above method further comprises: responding to the selected operation aiming at the target option frame, and switching the mark of the priority recommended resource in the resource exchange interface to the target recommended resource corresponding to the target option frame; and updating the exchange recommendation information in the resource exchange interface according to the quantity information corresponding to the target recommendation resource. The mode of setting the option boxes of the resources can adjust the priority recommended resources according to the user preference, for example, the original metal is used as the priority recommended resources, and the crystal is used as the priority recommended resources, so that the technical flexibility and the interactivity with the user are enhanced, and the application scene of resource exchange is expanded.
Referring to the schematic diagram of another resource exchange interface shown in fig. 5, the metal in the left diagram is the priority recommended resource determined by the initial system, the priority recommended resource identifier is represented by a 'v' and is added to a selection box corresponding to the metal resource, the virtual swap-out resource further comprises a crystal, and the virtual swap-in resource is heavy hydrogen. In the left graph, the reserved quantity of metal is 4000, and when the metal is used as a virtual swap-out resource to exchange heavy hydrogen, the number of the exchanged resources is: metal 4000, crystal 3000, heavy hydrogen 500. Through the selection operation of the option frame of the crystal by the user, the mark of the 'V' is switched from the metal option frame to the option frame of the crystal, as shown in the right diagram of fig. 5, the mark of the option frame of the crystal is marked with the 'V', then the virtual swap-out resource is preferentially recommended as the crystal, the reserved quantity of the crystal is 2000, and the number of the resources after swap is: metal 6000, crystal 2000, heavy hydrogen 500. Other information in the drawings is similar to the above description and will not be repeated here.
Referring to the schematic diagram of another resource exchange interface shown in fig. 6, the left diagram is similar to the left diagram of fig. 5, metal is a priority recommended resource determined by the initial system, a choice box of the resource is v, the virtual out-put resource further comprises a crystal, and the virtual in-put resource is heavy hydrogen. In the left graph, the reserved quantity of metal is 4000, and when the metal is used as a virtual swap-out resource to exchange heavy hydrogen, the number of the exchanged resources is: metal 4000, crystal 3000, heavy hydrogen 500. Through the selection operation of the user on the crystal and the metal option boxes, as shown in the right diagram of fig. 6, the metal option boxes and the crystal option boxes are marked with 'v', then the virtual swap-out resources are preferentially recommended to be metal and crystal, the crystal reserve amount is 2500, the metal reserve amount is 5000, and the number of the resources after swap is: metal 5000, crystal 2500, heavy hydrogen 500. Other information in the drawings is similar to the above description and will not be repeated here.
The above-mentioned priority recommended resources may determine non-urgent resources from the existing virtual resources of the user according to the level of the current virtual object, and use the resources with a large number or large value (with a large amount of available resources) in the non-urgent resources as priority recommended resources, or use the common resources (i.e., the resources that are relatively easy to obtain) in the existing virtual resources of the user as priority recommended swap-out resources, and use the scarce resources (i.e., the resources that are not easy to obtain) in the resources that are lacking by the user as priority recommended swap-in resources.
In fig. 5 and fig. 6, the types of virtual swap-out resources are described by taking multiple examples, and in a specific application process, the types of virtual swap-in resources may also be multiple, and similar to the method described above, when the types of virtual swap-in resources are multiple, one or two priority recommended resources may also be directly recommended, and the user may also adjust the priority recommended resources, so that the specific process is not repeated.
Taking a building interface as an example, adding a resource intelligent exchange control in the building interface, when the resource intelligent exchange control is selected, checking virtual resources and quantity currently owned by the player character by the terminal equipment, determining the next level according to the level of the building currently constructed by the player character, and calculating to obtain the currently lacking virtual resources and quantity according to the virtual resources and quantity required by the next level and the virtual resources and quantity currently owned by the player character, thereby determining the resource exchange mode. The resource exchange modes include a one-to-one mode, a one-to-two mode, and a two-to-one mode. Different resource exchange modes are used for different resource exchange interface modes, so that corresponding resource exchange interfaces are displayed according to the resource exchange modes. The following description is made for the resource exchange modes, respectively.
One-to-one mode
When the A resource owned by the user is enough to be fully replaced by the B resource lacking in the upgrading building, the A resource can be directly used as the preferred replacement resource, or the user manually selects the A resource as the preferred replacement resource, the default quantity of the replacement resource is the minimum value required for upgrading the building under the condition that the replacement quantity is not set, if the building upgrading condition is met after the replacement, the resource replacement interface is displayed as' meeting the building upgrading condition! "text prompt.
Two-to-one mode
When two resources owned by the user can be exchanged and the building upgrading condition is met after the exchange, the system can be directly defaulted to one or the user can select one of the resources to be the preferred resource to be exchanged, and the resource exchange interface is displayed for' meeting the building upgrading condition! "text prompt.
When two resources owned by the user overflow and can be exchanged, but building upgrading conditions are not met after the exchange, the system can directly default one or allow the user to select one of the resources to be exchanged as a priority recommendation, and the resource exchange interface displays the condition that building upgrading conditions are not met-! "text prompt.
(three) one-to-two mode
When the user lacks 2 kinds of resources, but the other resource owned by the user is enough to replace the two kinds of the lacking resources, the resource exchange interface sets the default as a form of exchanging 2 kinds of resources for one kind of resource, takes the other kind of resource as the preferentially recommended out-put resource, takes the 2 kinds of the lacking resources as the preferentially recommended in-put resource, and if the building upgrading condition is met after the exchanging, the interface displays that the building upgrading condition is met-! "text prompt.
When the user lacks 2 kinds of resources, but the other resource is insufficient to replace the two kinds of the lacking resources, the resource exchange interface displays 2 kinds of resources which can be replaced alternatively, the user can select one of the 2 kinds of resources as the replaced resource recommended preferentially, and a prompt of 'insufficient upgrading' is displayed on the interface.
Besides the information, the resource exchange interface can be configured with dynamic icons of the number of resources by the virtual resources, and the dynamic icons of the virtual resources are modified according to the number information of the exchanged virtual resources, so that the state of the modified icons is consistent with the number of the exchanged resources. For example, if the upper limit of the number of virtual resources a is 10000, the number of the virtual resources a reaches 10000, and when the number of the virtual resources a reaches 10000, the ring of the virtual resources a is filled with red, that is, the entire ring is displayed as red. If the number of virtual resources A reaches 5000, half of the ring of the virtual resources A is red, and the other half is gray. The number of virtual resources A is 0, and the circles of the virtual resources A are all gray. The dynamic icon is an implementation example of a ring, and in a specific implementation, the dynamic icon may also be a progress bar or other forms, which is not limited in this embodiment.
The closing manner of the resource exchange interface may include, but is not limited to: closing after the exchange confirmation control is selected, displaying the time length to reach the set time length, closing when the operation of the user on the resource exchange interface is not received in the time length, closing when the user operates other controls or interfaces outside the resource exchange interface in the display process of the resource exchange interface, closing when the user operates the closing control on the resource exchange interface, and the like. Wherein the close control on the resource exchange interface may be similar to other interfaces, with the close control (e.g., an icon with an "x") being set in the upper right corner of the resource exchange interface.
As a possible implementation manner, the method further includes: responding to a third operation for the resource intelligent exchange control, and executing exchange actions corresponding to the resources which are preferentially exchanged out and the resources which are preferentially exchanged in according to virtual resource information corresponding to the updated virtual object; the priority is to change out the resources to the virtual resources reaching the upper limit in the existing virtual resources of the user of the terminal equipment, and the priority is to change in the resources to the virtual resources lacking in the upgrading virtual object. The third operation for the resource intelligent exchange control is different from the first operation, and through two different operation modes, whether the resource exchange interface needs to be displayed or not can be distinguished, for example, the first operation is a mouse clicking operation, the third operation is a mouse double clicking operation, if a user uses a mouse to double click the resource intelligent exchange control, the resource exchange interface is not displayed, and the exchange action corresponding to the resource is executed according to the virtual resource information corresponding to the updated virtual object, so that the one-key rapid resource exchange process is realized. If the user clicks the resource intelligent exchange control by using the mouse, displaying a resource exchange interface, and carrying out resource exchange according to the resource exchange interface and the follow-up operation of the user. According to the method, under the condition that a user knows that a certain resource reaches the upper limit, the third operation on the resource intelligent exchange control is performed, so that one-key rapid resource exchange is realized, waste of the resource reaching the upper limit is avoided, and the technical flexibility is improved.
The virtual resources are generally set with an upper limit of number, and for the virtual resources that have reached the upper limit, the virtual resources overflow when the virtual resources are acquired, so that the embodiment selects the virtual resources that reach the upper limit from the existing virtual resources as the resources to be replaced preferentially, and can avoid wasting the resources due to overflow of the resources. Of course, if the virtual resource does not reach the upper limit, the resource with the largest number may be selected as the priority-out resource.
Considering that in some situations, the user may touch the resource intelligent switching control by mistake due to insufficient resources, in order to simplify the operation, the displaying, according to the virtual resource information corresponding to the upgrade virtual object, the resource switching interface in response to the first operation for the resource intelligent switching control includes: responding to a first operation aiming at the resource intelligent exchange control, and judging whether the existing virtual resource of the user of the terminal equipment meets the set exchange condition; if yes, displaying a resource exchange interface according to the virtual resource information corresponding to the updated virtual object; if not, the current virtual resource is prompted to be unable to be exchanged. Referring to another graphical user interface schematic diagram shown in fig. 7, on the basis of fig. 1, when a user performs a first operation on the resource intelligent exchange control, a "no redundant resources can be exchanged yet" is displayed in the graphical user interface.
By the method, in the process of resource exchange, a user only needs to trigger the resource intelligent exchange control on the graphical user interface of the game, the system can display the resource exchange interface with the exchange recommendation information and the exchange confirmation control, and the resource exchange can be realized by directly selecting the exchange confirmation control. Path of the resource exchange procedure: the resource intelligent exchange control is used for going to the resource exchange interface, and then the exchange confirmation control is selected, so that under the rapid exchange path, the game thinking of the user is not easily broken, and the smoothness of the game operation is maintained. Meanwhile, the exchange recommendation information in the resource exchange interface reflects the number of resources which are lack by upgrading the virtual object, so that a user does not need to memorize, and the phenomenon that the number is insufficient after the resource exchange is remembered to be wrong, and the user needs to return to the resource exchange interface again to exchange the resources is reduced.
After the exchange of the virtual resources is completed by the method, a user can perform upgrading operation on the virtual objects as required, and the specific process of the upgrading operation can be realized by referring to the related technology, which is not repeated here.
Based on the above method embodiment, the present embodiment further provides a virtual resource exchanging device, and a graphical user interface is provided through a terminal device; the graphical user interface includes a virtual object and a resource intelligent exchange control, as shown in fig. 8, fig. 8 shows a schematic structural diagram of an exchange device of a virtual resource according to the present embodiment, where the device includes:
The resource exchange triggering module 801 is configured to respond to a first operation for the resource intelligent exchange control, and display a resource exchange interface according to virtual resource information corresponding to the upgraded virtual object. The resource exchange interface comprises exchange recommendation information and an exchange confirmation control, wherein the exchange recommendation information comprises virtual out-of-resource information and virtual in-resource information.
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 for the exchange confirmation control.
According to the device provided by the embodiment, the resource intelligent exchange control is arranged in the graphical user interface for building the virtual object, the resource exchange interface can be directly displayed by triggering the first operation on the control, the resource exchange interface comprises the exchange recommendation information and the exchange confirmation control for reference by a user, the user can trigger the terminal equipment to execute the virtual resource exchange action corresponding to the exchange recommendation information by the second operation on the exchange confirmation control, the resource exchange process can realize resource exchange through one resource exchange interface, so that the operation process is simplified, meanwhile, the exchange recommendation information in the resource exchange interface displayed according to the virtual resource information corresponding to the updated virtual object is more reasonable, the user does not need to fill or select the resources to be exchanged according to the memory, and the user operation is further simplified and the resource exchange efficiency is improved.
The resource exchange triggering module 801 is further configured to determine exchange recommendation information according to virtual resource information corresponding to the upgraded virtual object; the virtual resource information comprises virtual resources required by upgrading the virtual object and the existing virtual resources of the user of the terminal equipment, and the exchange recommendation information comprises the identification of virtual out-of-resources and the identification of virtual in-resources, and the number of the virtual resources after exchange; and displaying a resource exchange interface comprising exchange recommendation information and an exchange confirmation control. The method can display the identification of the virtual swapped-out resources and the identification of the virtual swapped-in resources on the resource exchange interface, and the number of the virtual resources (namely the conversion result of the resources) after the exchange, so that the user can more intuitively and clearly know the recommendation information.
The resource exchange triggering module 801 is further configured to determine a virtual swap-out resource and a virtual swap-in resource according to a virtual resource required for upgrading the virtual object and an existing virtual resource of a user of the terminal device; setting the required quantity of virtual swap-out resources in the virtual resources required by upgrading the virtual objects as the reserved quantity of the virtual swap-out resources; determining the swap-in amount of the virtual swap-in resource according to the swap-out amount of the virtual swap-out resource; the change-out amount is the amount obtained by subtracting the reserved amount from the total amount of the virtual change-out resources currently existing by the user; and generating exchange recommendation information according to the reserved quantity of the virtual swap-out resources and the swap-in quantity of the virtual swap-in resources. The method not only ensures the upgrade requirement of the virtual object after exchanging the resources, but also maximally uses the virtual swap-out resources to exchange more virtual swap-in resources, thereby reducing unnecessary frequent resource exchanging operation.
The resource exchange triggering module 801 is further configured to display the changed number in the modification frame in response to a modification operation for the reserved amount in the modification frame; in response to a selected operation for the modification control, the application modifies the amount displayed within the box to update the reserved amount of the virtual swap-out resource and exchange recommendation information. By displaying the modification frame and the modification control of the reserved quantity, a user can modify the reserved quantity of the resources, and further adjust the exchange quantity of the virtual switch-in resources and the virtual switch-out resources, and the mode improves the flexibility of resource exchange.
The resource exchange triggering module 801 is further configured to obtain, according to the number of virtual resources exchanged in the exchange recommendation information, a prompt message indicating whether the virtual object meets an upgrade condition; generating and displaying a resource exchange interface; the resource exchange interface comprises an exchange recommendation information, a prompt information and an exchange confirmation control. By displaying the prompt information of whether the virtual object meets the upgrading condition or not after the resource exchange on the resource exchange interface, a user can timely know whether the exchange resource can upgrade the virtual object, so that the information sufficiency and the readability of the resource exchange process are improved, and reliable information is provided for upgrading the virtual object as soon as possible.
The resource exchange triggering module 801 is further configured to determine a first type number of virtual outgoing resources and a second type number of virtual incoming resources according to virtual resource information corresponding to the upgraded virtual object; if the number of the first category and/or the number of the second category are multiple, determining a priority recommended resource from the virtual resources with the multiple categories; and displaying a resource exchange interface marked with the priority recommended resource. The method for marking the priority recommended resources can enable the user to intuitively determine which resource is currently recommended to be exchanged, and improves the information readability of the resource exchange interface.
Based on fig. 8, the resource exchange interface further includes option boxes corresponding to multiple kinds of virtual resources, and based on this, another virtual resource exchange device is further provided in the embodiment of the present disclosure, fig. 9 shows a schematic structural diagram of another virtual resource exchange device provided in the embodiment, and as shown in fig. 9, the device further includes a recommendation information update module 803, configured to switch, in response to a selection operation for a target option box, a label of a priority recommended resource in the resource exchange interface to a 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 recommendation resource. The mode of setting the option boxes of the resources can adjust the priority recommended resources according to the user preference, for example, the original metal is used as the priority recommended resources, and the crystal is used as the priority recommended resources, so that the technical flexibility and the interactivity with the user are enhanced, and the application scene of resource exchange is expanded.
The apparatus further includes a fast exchange module 804, configured to respond to a third operation for the resource intelligent exchange control, and execute an exchange action corresponding to the resource that is preferentially swapped out and the resource that is preferentially swapped in according to virtual resource information corresponding to the upgraded virtual object; the priority is to change out the resources to the virtual resources reaching the upper limit in the existing virtual resources of the user of the terminal equipment, and the priority is to change in the resources to the virtual resources lacking in the upgrading virtual object. According to the method, under the condition that a user knows that a certain resource reaches the upper limit, the third operation on the resource intelligent exchange control is performed, so that one-key rapid resource exchange is realized, waste of the resource reaching the upper limit is avoided, and the technical flexibility is improved.
The resource exchange triggering module 801 is further configured to determine, in response to a first operation for a resource intelligent exchange control, whether an existing virtual resource of a user of the terminal device meets a set exchange condition; if yes, displaying a resource exchange interface according to the virtual resource information corresponding to the updated virtual object; if not, the current virtual resource is prompted to be unable to be exchanged. In the process of triggering the resource intelligent exchange control to display the resource exchange interface, the mode of judging whether the existing virtual resources meet the set exchange conditions can directly prompt without displaying the resource exchange interface in the scene of incapability of exchanging, thereby avoiding meaningless resource exchange and simplifying the operation of user resource exchange.
According to the virtual resource exchange device provided by the embodiment, through displaying the identifier of the virtual swap-out resource, the identifier of the virtual swap-in resource and the number of the virtual resources after the swap on the resource exchange interface, a user can more intuitively and clearly know the recommendation information; and through the virtual resource reservation, the upgrade requirement of the virtual object after exchanging the resources is guaranteed, and the virtual swap-out resources are used to be exchanged to more virtual swap-in resources to the maximum extent, so that unnecessary frequent resource exchanging operation is reduced.
Through the resource exchange technology provided by the embodiment, in the process of upgrading the virtual object, the user can directly exchange resources according to the exchange recommendation information provided by the resource exchange interface, so that the number of the resources which are currently lacking is not required to be memorized, and the mental cost is reduced. Meanwhile, virtual in-and out-of-resources and the exchange quantity can be determined in the resource exchange interface, other interfaces do not need to be skipped to set related information, the operation cost of a user is reduced, and the fluency of game operation is improved. The information of whether the upgrade condition of the virtual object can be met or not after the resource exchange is prompted by the resource exchange interface, so that the readability of the information in the resource exchange process is further improved.
The implementation principle and the technical effects of the virtual resource exchange device provided by the embodiment of the present disclosure are the same as those of the foregoing method embodiment, and for a brief description, reference may be made to corresponding contents in the foregoing embodiment where an embodiment portion of the virtual resource exchange device is not mentioned.
The embodiment of the disclosure further provides an electronic device, as shown in fig. 10, which is a schematic structural diagram of the electronic device, where the electronic device includes a processor 101 and a memory 100, where 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.
In the embodiment shown in fig. 10, the electronic device further comprises a bus 102 and a communication interface 103, wherein the processor 101, the communication interface 103 and the memory 100 are connected by the bus 102.
The memory 100 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 103 (which may be wired or wireless), and may use the internet, a wide area network, a local network, a metropolitan area network, etc. Bus 102 may be an ISA (Industry Standard Architecture ) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The bus 102 may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one bi-directional arrow is shown in FIG. 10, but not only one bus or type of bus.
The processor 101 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 101 or instructions in the form of software. The processor 101 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor 101 reads the information in the memory, and in combination with its hardware, performs the steps of the virtual resource exchange method of the foregoing embodiment.
The embodiments of the present disclosure further provide a computer readable storage medium, where a computer executable instruction is stored, where the computer executable instruction, when being called and executed by a processor, causes the processor to implement the above-mentioned virtual resource exchange method, and the specific implementation may refer to the foregoing method embodiment and will not be repeated herein.
The method, apparatus and computer program product of electronic device for exchanging virtual resources provided in the embodiments of the present disclosure include a computer readable storage medium storing program codes, where the instructions included in the program codes may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be repeated herein.
The relative steps, numerical expressions and numerical values of the components and steps set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the description of the present application, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of description of the present application and to simplify the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present application. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the foregoing examples are merely specific embodiments of the present application, and are not intended to limit the scope of the present application, but the present application is not limited thereto, and those skilled in the art will appreciate that while the foregoing examples are described in detail, the present application is not limited thereto. Any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or make equivalent substitutions for some of the technical features within the technical scope of the disclosure of the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A virtual resource exchange method is characterized in that a graphical user interface is provided through terminal equipment; the graphical user interface comprises a virtual object and a resource intelligent exchange control, and the method comprises the following steps:
responding to a first operation for the resource intelligent exchange control, and displaying a resource exchange interface according to the virtual resource information corresponding to the updated virtual object; the resource exchange interface comprises exchange recommendation information and an exchange confirmation control, wherein the exchange recommendation information comprises virtual out-of-resource information and virtual in-resource information;
and responding to a second operation for the exchange confirmation control, and executing a virtual resource exchange action corresponding to the exchange recommendation information.
2. The method of claim 1, wherein displaying a resource exchange interface according to the virtual resource information corresponding to the updated virtual object comprises:
according to the virtual resource information corresponding to the updated virtual object, determining exchange recommendation information; the virtual resource information comprises virtual resources required by upgrading the virtual object and the existing virtual resources of the user of the terminal equipment, and the exchange recommendation information comprises identifications of virtual out-of-resources and identifications of virtual in-resources and the number of the virtual resources after exchange;
And displaying a resource exchange interface containing the exchange recommendation information and the exchange confirmation control.
3. The method of claim 2, wherein determining exchange recommendation information based on upgrading virtual resource information corresponding to the virtual object comprises:
determining virtual swap-out resources and virtual swap-in resources according to virtual resources required by upgrading the virtual objects and existing virtual resources of users of the terminal equipment;
setting the required quantity of the virtual out-of-resources in the virtual resources required by upgrading the virtual object as the reserved quantity of the virtual out-of-resources;
determining the swap-in amount of the virtual swap-in resource according to the swap-out amount of the virtual swap-out resource; the change amount is the amount obtained by subtracting the reserved amount from the total amount of the virtual change-out resources currently existing by the user;
and generating exchange recommendation information according to the reserved quantity of the virtual swap-out resources and the swap-in quantity of the virtual swap-in resources.
4. A method according to claim 3, wherein the resource exchange interface contains the reserved quantity of modification boxes and modification controls; the reserved quantity is displayed in the modification frame, and the method further comprises:
Displaying a modified quantity within the modification box in response to a modification operation for the reserved quantity within the modification box;
and in response to the selected operation of the modification control, updating the reserved quantity of the virtual swap-out resource and the exchange recommendation information by using the quantity displayed in the modification box.
5. The method of claim 2, wherein displaying a resource exchange interface including the exchange recommendation information and exchange confirmation control comprises:
acquiring prompt information of whether the virtual object meets upgrading conditions according to the number of each virtual resource after the exchange in the exchange recommendation information;
generating and displaying a resource exchange interface; the resource exchange interface comprises the exchange recommendation information, the prompt information and an exchange confirmation control.
6. The method of claim 1, wherein displaying a resource exchange interface according to the virtual resource information corresponding to the updated virtual object comprises:
according to the virtual resource information corresponding to the updated virtual object, determining the first type number of virtual out-of-resources and the second type number of virtual in-out-resources;
if the number of the first category and/or the number of the second category are multiple, determining a priority recommended resource from the virtual resources with the multiple categories;
And displaying a resource exchange interface marked with the priority recommended resource.
7. The method of claim 6, wherein the resource exchange interface further comprises option boxes corresponding to the plurality of types of virtual resources respectively; the method further comprises the steps of:
responding to the selected operation aiming at the target option frame, and switching the mark of the priority recommended resource in the resource exchange interface to the target recommended resource corresponding to the target option frame;
and updating the exchange recommendation information in the resource exchange interface according to the quantity information corresponding to the target recommendation resource.
8. The method according to claim 1, wherein the method further comprises:
responding to a third operation for the resource intelligent exchange control, and executing exchange actions corresponding to the resources which are preferentially exchanged out and the resources which are preferentially exchanged in according to the virtual resource information corresponding to the updated virtual object; the priority resource is a virtual resource reaching an upper limit in the existing virtual resources of the user of the terminal equipment, and the priority resource is a virtual resource lacking in upgrading the virtual object.
9. The method of claim 1, wherein, in response to the first operation for the resource intelligent switching control, displaying a resource switching interface according to the virtual resource information corresponding to the updated virtual object comprises:
Responding to a first operation of the resource intelligent exchange control, and judging whether the existing virtual resource of the user of the terminal equipment meets the set exchange condition;
if yes, displaying a resource exchange interface according to the virtual resource information corresponding to the updated virtual object;
if not, the current virtual resource is prompted to be unable to be exchanged.
10. A virtual resource exchange device is characterized in that a graphical user interface is provided through terminal equipment; the graphical user interface includes a virtual object and a resource intelligent exchange control, the apparatus comprising:
the resource exchange triggering module is used for responding to a first operation for the resource intelligent exchange control and displaying a resource exchange interface according to the virtual resource information corresponding to the updated virtual object; the resource exchange interface comprises exchange recommendation information and an exchange confirmation control, wherein the exchange recommendation information comprises virtual out-of-resource information and virtual in-resource information;
and the resource exchange executing module is used for responding to the second operation of the exchange confirmation control and executing the virtual resource exchange action corresponding to the exchange recommendation information.
11. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of any one of claims 1 to 9.
12. A computer readable storage medium storing computer executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of any one of claims 1 to 9.
CN202310021018.9A 2023-01-06 2023-01-06 Virtual resource exchange method and device, electronic equipment and storage medium Pending CN116139485A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310021018.9A CN116139485A (en) 2023-01-06 2023-01-06 Virtual resource exchange method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310021018.9A CN116139485A (en) 2023-01-06 2023-01-06 Virtual resource exchange method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116139485A true CN116139485A (en) 2023-05-23

Family

ID=86338368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310021018.9A Pending CN116139485A (en) 2023-01-06 2023-01-06 Virtual resource exchange method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116139485A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023231613A1 (en) * 2022-06-01 2023-12-07 腾讯科技(深圳)有限公司 Upgrade interaction method and apparatus for game task, and medium, device and program product

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023231613A1 (en) * 2022-06-01 2023-12-07 腾讯科技(深圳)有限公司 Upgrade interaction method and apparatus for game task, and medium, device and program product

Similar Documents

Publication Publication Date Title
KR102092451B1 (en) Information processing method, terminal, and computer storage medium
CN110772800B (en) Method and device for sending skill information in game and electronic equipment
CN110215695B (en) Game object selection method and device
CN111324275B (en) Broadcasting method and device for elements in display picture
CN111240543A (en) Comment method and device, computer equipment and storage medium
CN107908482B (en) Information transmission method, equipment and computer readable medium
CN116139485A (en) Virtual resource exchange method and device, electronic equipment and storage medium
WO2023138192A1 (en) Method for controlling virtual object to pick up virtual prop, and terminal and storage medium
CN111841001B (en) Information processing method, device, equipment and storage medium in game
CN110058778A (en) Input panel switching method and device
CN111672132B (en) Game control method, game control device, server, and storage medium
US20230120293A1 (en) Method and apparatus for visualization of public welfare activities
CN112138381A (en) Game data processing method and device, storage medium and electronic device
CN112911052B (en) Information sharing method and device
CN113476823B (en) Virtual object control method and device, storage medium and electronic equipment
CN113952740A (en) Method and device for sharing virtual props in game, storage medium and electronic equipment
CN113750522A (en) Game skill processing method and device and electronic equipment
CN111346386B (en) Message processing method and device
CN116966561A (en) Tactical command method and device in game and electronic equipment
CN116688526A (en) Virtual character interaction method and device, terminal equipment and storage medium
CN111744181A (en) In-game information display method and device, game client and medium
CN113721820B (en) Man-machine interaction method and device and electronic equipment
KR20240026256A (en) Methods for displaying prompt information, devices and storage media, and electronic devices
CN114669052A (en) Game control method, device, equipment and storage medium
CN113891138A (en) Interactive operation prompting method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination