Virtual resource exchange method and apparatus, and storage medium
By automatically identifying exchange partners through the game server and displaying exchange information controls on the game interface, the problem of complex virtual resource exchange operations between teammates is solved, enabling rapid resource exchange and improving the user experience.
Patent Information
- Application Number
- CN202210088478.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2042-01-25
AI Technical Summary
In multiplayer action competitive games, the virtual resource exchange between teammates is complicated and cannot be done quickly, wasting time and affecting the user experience.
The game server automatically determines the virtual objects to be exchanged and displays the exchange information control on the game interface. After the player confirms, the resource exchange can be carried out directly, simplifying the operation process.
It enables rapid exchange of virtual resources, enhancing the user's gaming experience.
Smart Images

Figure CN116546071B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the game technical field, and in particular to a virtual resource exchange method and device and storage medium. BACKGROUND
[0002] In a multi-player action game, such as a shooting game, a gun battle game, a multi-player role-playing game, etc., there are often scenes and needs for instant and rapid exchange of resources between teammates in the same camp. However, in the prior art research and discussion, when a player exchanges resources with a teammate, the player and the teammate need to discard the resources to be exchanged, and then exchange the resources picked up from each other, so as to realize the exchange of resources. The operation process is complex, time-consuming, and cannot achieve the purpose of rapid exchange of resources. SUMMARY
[0003] The embodiments of the present application provide a virtual resource exchange method, device and storage medium, which can simplify the operation process of exchanging resources between a current virtual object and a friendly virtual object, achieve the purpose of rapid exchange of resources in a game, and improve the game experience of users.
[0004] The embodiments of the present application provide a virtual resource exchange method, which comprises:
[0005] displaying a game interface of a current virtual object, the game interface comprising at least part of a virtual scene of a target game and at least part of a virtual object located in the virtual scene;
[0006] when the current virtual object and an exchange virtual object meet an exchange triggering condition, obtaining a resource exchange request sent by a game server for the current virtual object and the exchange virtual object, the resource exchange request comprising first virtual resources exchanged by the current virtual object to the exchange virtual object, second virtual resources exchanged by the exchange virtual object to the current virtual object, and an object identifier of the exchange virtual object, the exchange virtual object being a virtual object belonging to the same camp as the current virtual object;
[0007] in response to the obtained resource exchange request, displaying an exchange information control in the game interface, the exchange information control comprising the object identifier of the exchange virtual object, the first virtual resources and the second virtual resources;
[0008] in response to an exchange confirmation operation for the exchange information control, sending consent feedback information for the resource exchange request to the game server, so that the game server exchanges the first virtual resources of the current virtual object with the second virtual resources of the exchange virtual object after receiving the consent feedback information of the current virtual object and the consent feedback information of the exchange virtual object.
[0009] Similarly, the embodiment of the present application also provides a virtual resource exchange method, comprising:
[0010] obtaining a first object attribute of a current virtual object and a second object attribute of a friendly virtual object belonging to the same camp as the current virtual object;
[0011] determining an exchange virtual object for resource exchange with the current virtual object according to the first object attribute of the current virtual object and the second object attribute of the friendly virtual object;
[0012] obtaining a first virtual resource exchanged by the current virtual object to the exchange virtual object and a second virtual resource exchanged by the exchange virtual object to the current virtual object;
[0013] sending a resource exchange request to the current virtual object and the exchange virtual object respectively, the resource exchange request comprising the first virtual resource exchanged by the current virtual object to the exchange virtual object, the second virtual resource exchanged by the exchange virtual object to the current virtual object, and an object identifier of the exchange virtual object;
[0014] when receiving the consent feedback information sent by the current virtual object and the exchange virtual object respectively in response to the consent feedback request, exchanging the first virtual resource of the current virtual object with the second virtual resource of the exchange virtual object.
[0015] Correspondingly, the embodiment of the present application also provides a virtual resource exchange device, comprising:
[0016] an interface display unit configured to display a game interface of a current virtual object, the game interface comprising at least part of a virtual scene of a target game and at least part of virtual objects located in the virtual scene;
[0017] a request obtaining unit configured to, when the current virtual object and an exchange virtual object meet an exchange trigger condition, obtain a resource exchange request sent by a game server for the current virtual object and the exchange virtual object, the resource exchange request comprising a first virtual resource exchanged by the current virtual object to the exchange virtual object, a second virtual resource exchanged by the exchange virtual object to the current virtual object, and an object identifier of the exchange virtual object, the exchange virtual object being a virtual object belonging to the same camp as the current virtual object;
[0018] a control display unit configured to, in response to the obtained resource exchange request, display an exchange information control in the game interface, the exchange information control comprising the object identifier of the exchange virtual object, the first virtual resource and the second virtual resource.
[0019] a feedback sending unit, configured to, in response to a confirmation operation for the exchange information control, send, to the game server, consent feedback information for the resource exchange request, so that the game server exchanges the first virtual resource of the current virtual object with the second virtual resource of the exchange virtual object after receiving the consent feedback information of the current virtual object and the consent feedback information of the exchange virtual object.
[0020] Optionally, the request obtaining unit is further configured to:
[0021] in response to a movement operation for the current virtual object, determine a first position of the current virtual object in the virtual scene;
[0022] if a distance between the first position of the current virtual object in the virtual scene and a second position of the exchange virtual object in the virtual scene is less than a preset distance, determine that the current virtual object and the exchange virtual object satisfy the exchange triggering condition.
[0023] Optionally, the request obtaining unit is further configured to:
[0024] in response to a resource obtaining operation for the current virtual object, determine first possessed virtual resources of the current virtual object;
[0025] if the first possessed virtual resources include a first exchange virtual resource that does not match a role type of the current virtual object, send, to the game server, an exchange query request, so that the game server determines, according to the exchange query request, that there is an exchange virtual object whose object attribute matches the first exchange virtual resource;
[0026] when receiving exchange confirmation information for the exchange query request sent by the game server, determine that the current virtual object and the exchange virtual object satisfy the exchange triggering condition.
[0027] Optionally, the exchange information control includes a cancel exchange sub-control, and the apparatus is further configured to:
[0028] in response to a touch operation for the cancel exchange sub-control in the exchange information control, send, to the game server, rejection feedback information for the resource exchange request, so that the game server cancels the resource exchange between the current virtual object and the exchange virtual object.
[0029] Correspondingly, an embodiment of the present application further provides a virtual resource exchange apparatus, including:
[0030] The attribute obtaining unit is configured to obtain a first object attribute of a current virtual object and a second object attribute of a friendly virtual object belonging to the same camp as the current virtual object;
[0031] The determining unit is configured to determine, according to the first object attribute of the current virtual object and the second object attribute of the friendly virtual object, an exchange virtual object for resource exchange with the current virtual object;
[0032] The exchange resource obtaining unit is configured to obtain a first virtual resource exchanged by the current virtual object to the exchange virtual object and a second virtual resource exchanged by the exchange virtual object to the current virtual object;
[0033] The request sending unit is configured to send a resource exchange request to the current virtual object and the exchange virtual object respectively, the resource exchange request including the first virtual resource exchanged by the current virtual object to the exchange virtual object, the second virtual resource exchanged by the exchange virtual object to the current virtual object, and an object identifier of the exchange virtual object;
[0034] The feedback receiving unit is configured to exchange the first virtual resource of the current virtual object with the second virtual resource of the exchange virtual object after receiving the consent feedback information sent by the current virtual object and the exchange virtual object respectively in response to the consent feedback request.
[0035] Optionally, the first object attribute includes a first position of the current virtual object in the virtual scene, and the second object attribute includes a second position of the friendly virtual object in the virtual scene, and the determining unit is further configured to:
[0036] If it is detected that a distance between the first position of the current virtual object and the second position of at least one friendly virtual object in the virtual scene is less than a preset distance, a friendly virtual object with a distance to the first position of the current virtual object less than the preset distance is determined as a candidate virtual object;
[0037] The first held resource of the current virtual object and the second held resource of the candidate virtual object are obtained.
[0038] According to the first held resource and the second held resource of the candidate virtual object, an exchange virtual object for resource exchange with the current virtual object is determined.
[0039] Optionally, the determining unit is further configured to:
[0040] If the first exchanged virtual resource in the first held virtual resource of the current virtual object does not match the role type of the current virtual object, determining a candidate virtual object corresponding to the role type matched by the first exchanged virtual resource as an exchangeable virtual object;
[0041] If the second exchanged virtual resource in the second held virtual resource of the exchangeable virtual object does not match the role type of the exchangeable virtual object, and the second exchanged virtual resource matches the role type of the current virtual object, determining the exchangeable virtual object as the exchanged virtual object.
[0042] Optionally, the exchange resource obtaining unit is further configured to:
[0043] determine the first exchanged virtual resource as the first virtual resource;
[0044] determine the second exchanged virtual resource as the second virtual resource.
[0045] Similarly, the embodiment of the present application also provides a terminal device, comprising:
[0046] a memory configured to store a computer program;
[0047] a processor configured to implement the steps of any one of the virtual resource exchange methods when executing the computer program.
[0048] Similarly, the embodiment of the present application also provides a server, comprising:
[0049] a memory configured to store a computer program;
[0050] a processor configured to implement the steps of any one of the virtual resource exchange methods when executing the computer program.
[0051] In addition, the embodiment of the present application also provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of any one of the virtual resource exchange methods.
[0052] The embodiment of the present application provides a virtual resource exchange method and device and a storage medium, the game server automatically determines an exchange virtual object for exchanging resources with a current virtual object, the game server determines first virtual resources of the current virtual object exchanged to the exchange virtual object and second virtual resources of the exchange virtual object exchanged to the current virtual object, and a terminal device can directly display, according to a resource exchange request sent by the game server, an object identifier of the exchange virtual object which can exchange resources and exchange information controls of the first virtual resources and the second virtual resources for exchanging resources to a player, so that the player can quickly exchange the first virtual resources and the second virtual resources after performing an exchange determination operation on the exchange information controls, the operation process of exchanging resources between the current virtual object and the friendly virtual object is simplified, the exchange time is reduced, the purpose of quickly exchanging resources in the game is achieved, and the game experience of the user is improved. BRIEF DESCRIPTION OF DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be implemented in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0054] Figure 1 FIG. 1 is a system schematic diagram of a virtual resource exchange device provided by the embodiment of the present application;
[0055] Figure 2 FIG. 2 is a flowchart of a virtual resource exchange method provided by the embodiment of the present application;
[0056] Figure 3 FIG. 3 is a display schematic diagram of an exchange information control provided by the embodiment of the present application;
[0057] Figure 4 FIG. 4 is another flowchart of a virtual resource exchange method provided by the embodiment of the present application;
[0058] Figure 5 FIG. 5 is a structural schematic diagram of a virtual resource exchange device provided by the embodiment of the present application;
[0059] Figure 6 FIG. 6 is another structural schematic diagram of a virtual resource exchange device provided by the embodiment of the present application;
[0060] Figure 7 FIG. 7 is a structural schematic diagram of a terminal device provided by the embodiment of the present application;
[0061] Figure 8 FIG. 8 is a structural schematic diagram of a server provided by the embodiment of the present application. DETAILED DESCRIPTION
[0062] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0063] The virtual resource exchange method, device and storage medium are provided in the embodiments of the present application. Specifically, the virtual resource exchange method in the embodiments of the present application can be executed by a computer device, where the computer device can be a terminal or a server and the like. The terminal can be a terminal device such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), and the like. The terminal can also include a client, which can be a game application client, a browser client carrying a game program, an instant messaging client, and the like. The server can be a standalone physical server, a server cluster or a distributed system composed of multiple physical servers, a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content distribution network services, and basic cloud computing services such as big data and artificial intelligence platforms, and the like.
[0064] For example, when the virtual resource exchange method is executed on a terminal, the terminal device stores a game application program and is used to present a scene in a game picture. The terminal device is used to interact with a user through a graphical user interface, for example, by downloading and installing a game application program on the terminal device and running the game application program. The terminal device can provide the graphical user interface to the user in various ways, for example, by rendering and displaying on the display screen of the terminal device, or by presenting the graphical user interface through holographic projection. For example, the terminal device can include a touch display screen and a processor, the touch display screen is used to present a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface, the graphical user interface includes a game picture and a game picture, and the processor is used to run the game application program and the game, generate the graphical user interface, respond to the operation instructions, and control the display of the graphical user interface on the touch display screen.
[0065] For example, when the virtual resource exchange method is run on a server, it can be for cloud gaming. Cloud gaming refers to a game mode based on cloud computing. In the running mode of cloud gaming, the running subject of the game application and the game picture presentation subject are separated, and the storage and running of the game cloud game commodity interaction method are completed on the cloud game server. The game picture presentation is completed on the cloud game client. The cloud game client is mainly used for receiving, sending and presenting game pictures. For example, the cloud game client can be a display device close to the user side with data transmission function, such as a mobile terminal, a television, a computer, a palm computer, a personal digital assistant, etc., but the terminal device for game data processing is the cloud game server in the cloud. When playing the game, the user operates the cloud game client to send operation instructions to the cloud game server, the cloud game server runs the game program according to the operation instructions, encodes and compresses the game picture data, returns the cloud game client through the network, and finally decodes and outputs the game picture through the cloud game client.
[0066] Please refer to Figure 1 , Figure 1 The system schematic diagram of the virtual resource exchange device provided by the embodiment of the application is shown. The system can include at least one terminal and at least one game server. The terminal held by the user can be connected to the game server of different games through different networks, for example, the network can be a wireless network or a wired network, the wireless network can be a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc., the terminal is used to display the game interface of the current virtual object, the game interface includes at least part of the virtual scene of the target game and at least part of the virtual object located in the virtual scene; obtaining the resource exchange request sent by the game server for the current virtual object and the exchange virtual object, the resource exchange request includes the first virtual resource exchanged by the current virtual object to the exchange virtual object, the second virtual resource exchanged by the exchange virtual object to the current virtual object, and the object identifier of the exchange virtual object, the exchange virtual object is a virtual object belonging to the same camp as the current virtual object; in response to the obtained resource exchange request, displaying the exchange information control in the game interface, the exchange information control includes the object identifier of the exchange virtual object, the first virtual resource and the second virtual resource; in response to the exchange confirmation operation for the exchange information control, sending the consent feedback information for the resource exchange request to the game server, so that the game server exchanges the first virtual resource of the current virtual object with the second virtual resource of the exchange virtual object after receiving the consent feedback information of the current virtual object and the consent feedback information of the exchange virtual object.
[0067] The game server is configured to acquire a first object attribute of a current virtual object and a second object attribute of a friendly virtual object belonging to the same camp as the current virtual object; determine an exchange virtual object for resource exchange with the current virtual object according to the first object attribute of the current virtual object and the second object attribute of the friendly virtual object; acquire a first virtual resource exchanged by the current virtual object to the exchange virtual object and a second virtual resource exchanged by the exchange virtual object to the current virtual object; send a resource exchange request to the current virtual object and the exchange virtual object respectively, the resource exchange request comprising the first virtual resource exchanged by the current virtual object to the exchange virtual object, the second virtual resource exchanged by the exchange virtual object to the current virtual object, and an object identifier of the exchange virtual object; and exchange the first virtual resource of the current virtual object with the second virtual resource of the exchange virtual object after receiving the consent feedback information sent by the current virtual object and the exchange virtual object respectively in response to the consent feedback request.
[0068] The following will be described in detail. It should be noted that the description order of the following embodiments is not limited as the preferred order of the embodiments.
[0069] The embodiment will be described from the perspective of a virtual resource exchange device, which can be integrated in a terminal device, such as a smart phone, a notebook computer, a tablet computer, a personal computer, and the like.
[0070] The virtual resource exchange method provided in the embodiment of the present application can be executed by a processor of a terminal, as shown in the figure, and the specific process of the virtual resource exchange method mainly includes steps 201 to 204, which will be described in detail as follows. Figure 2
[0071] Step 201: Display a game interface of a current virtual object, the game interface comprising at least part of a virtual scene of a target game and at least part of a virtual object located in the virtual scene.
[0072] In the embodiment of the present application, the virtual scene included in the game interface of the target game can have game props and / or a plurality of virtual objects (buildings, trees, mountains, and the like) constituting a game world environment, and the like. The target game can be a first-person shooter game, a massively multiplayer online role-playing game, and the like.
[0073] In the embodiments of the present application, the virtual object is a virtual object provided for a player to operate in a target game, and the virtual object can make a game behavior corresponding to a touch operation according to a touch operation made by the user in the game interface. For example, when the player makes a jump operation on the virtual object, the virtual object will make a jump action in the virtual scene in response to the operation of the player. In order to increase the interest of the target game, the virtual object can have different virtual professions, for example, the virtual object can be a thief, a guard, a general, etc., each virtual object has a virtual profession, and each virtual object has a different role type because each virtual profession has different characteristics, and each role type has matching virtual resources and non-matching virtual resources.
[0074] Among them, the virtual resource can be a game resource available for the virtual object in the target game, for example, can be equipment, weapons, pets, troops, etc.
[0075] Step 202, when the current virtual object and the exchange virtual object meet the exchange trigger condition, the resource exchange request sent by the game server for the current virtual object and the exchange virtual object is obtained, the resource exchange request includes the first virtual resource exchanged by the current virtual object to the exchange virtual object, the second virtual resource exchanged by the exchange virtual object to the current virtual object, and the object identifier of the exchange virtual object, and the exchange virtual object is a virtual object belonging to the same camp as the current virtual object.
[0076] In the embodiments of the present application, the "resource exchange request" mentioned in step 202 is obtained when the current virtual object and the exchange virtual object meet the exchange trigger condition, wherein the interaction trigger condition can be that the positions of the current virtual object and the friendly virtual object in the virtual scene are less than a preset distance, that is, before the above step 202 "obtains the resource exchange request sent by the game server for the current virtual object and the exchange virtual object", it can also include:
[0077] In response to the movement operation on the current virtual object, the first position of the current virtual object in the virtual scene is determined;
[0078] If the distance between the first position of the current virtual object in the virtual scene and the second position of the exchange virtual object in the virtual scene is less than a preset distance, it is determined that the current virtual object and the exchange virtual object meet the exchange trigger condition.
[0079] In the embodiments of the present application, the game interface can include a movement control, when the player touches the movement control, the terminal can move the position of the current virtual object in the virtual scene according to the direction touched by the player. Similarly, the teammate can touch the movement control to control the friendly virtual object to move the friendly virtual object in the virtual scene, for example, as shown in Figure 3As shown, when the distance between the current virtual object 302 and the position of one of the friendly virtual objects 301 in the virtual scene is less than the preset distance, the server can determine that the current virtual object and the exchange virtual object meet the exchange triggering condition, and thus start detecting whether the current virtual object 302 and the friendly virtual object 301 can exchange resources.
[0080] In the embodiments of the present application, before the above-mentioned step 202 "obtaining the resource exchange request sent by the game server for the current virtual object and the exchange virtual object", the following steps can also be included:
[0081] In response to the resource acquisition operation for the current virtual object, determining the first owned virtual resource of the current virtual object;
[0082] If the first exchange virtual resource in the first owned virtual resource does not match the role type of the current virtual object, sending an exchange query request to the game server, so that the game server determines, according to the exchange query request, that there is an exchange virtual object whose object attribute matches the first exchange virtual resource;
[0083] When receiving the exchange confirmation information sent by the game server for the exchange query request, it is determined that the current virtual object and the exchange virtual object meet the exchange triggering condition.
[0084] In the embodiments of the present application, in order to increase the activity diversity of the virtual object in the target game and improve the interest of the game, the virtual scene can have virtual resources that can be picked up by the virtual object, for example, different virtual weapons can be scattered in different areas of the virtual scene, and the player can select suitable virtual weapons according to the role type of the virtual object, thereby increasing the attack of the virtual object. When the virtual object moves in the virtual scene, the virtual resources scattered in the virtual scene are picked up, and the picked virtual resources can be added to the backpack as the owned virtual resources of the virtual object. Among them, the owned virtual resource is a virtual resource that can be applied by the virtual object.
[0085] Step 203, in response to the obtained resource exchange request, displaying an exchange information control on the game interface, the exchange information control including the object identifier of the exchange virtual object, the first virtual resource and the second virtual resource.
[0086] In this embodiment, when a resource exchange request from the game server is received, the terminal can parse the request and obtain the object identifier of the virtual object exchanging resources with the current virtual object, the first virtual resource exchanged between the current virtual object and the exchanging virtual object, and the second virtual resource exchanged between the exchanging virtual object and the current virtual object. This information is then displayed to the player through an exchange information control, allowing the player to know which teammate is exchanging resources with and what virtual resources are being exchanged, thus enabling further judgment on whether to proceed with the exchange. For example, as... Figure 3 As shown, the game interface 30 includes an information exchange control 303, which includes an object identifier 3013 for exchanging virtual objects, an object identifier 3014 for the current virtual object, a first virtual resource 3012 for the current virtual object to exchange with the virtual object, and a second virtual resource 3011 for the virtual object to exchange with the current virtual object.
[0087] Step 204: In response to the exchange confirmation operation for the exchange information control, send an agreement feedback message for the resource exchange request to the game server, so that after receiving the agreement feedback message for the current virtual object and the agreement feedback message for the exchange virtual object, the game server will exchange the first virtual resource of the current virtual object with the second virtual resource of the exchange virtual object.
[0088] In this embodiment of the application, the game interface includes a confirmation exchange sub-control. When the player touches the confirmation exchange sub-control, the terminal confirms that the player has performed an exchange confirmation operation and sends an agreement feedback message for the resource exchange request to the game server, for example, such as... Figure 3 As shown, the game interface 30 includes a confirmation exchange sub-control 3015. When the player clicks the confirmation exchange sub-control 3015, a confirmation feedback message for the resource exchange request will be sent to the game server.
[0089] In this embodiment, if a player does not wish to exchange resources with the virtual object, they can send a rejection message to the game server to cancel the resource exchange. Specifically, a cancel exchange sub-control can be set in the exchange information control. The method to cancel the resource exchange can be: in response to a touch operation on the cancel exchange sub-control in the exchange information control, a rejection message for the resource exchange request is sent to the game server so that the game server cancels the resource exchange between the current virtual object and the virtual object.
[0090] For example, such as Figure 3 As shown, the game interface 30 includes a cancel swap sub-control 3016. When the player clicks the cancel swap sub-control 3016, a rejection feedback message for the resource swap request will be sent to the game server.
[0091] All the technical solutions above can be combined in any manner to form optional embodiments of the present application, which will not be described one by one here.
[0092] The virtual resource exchange method provided by the embodiments of the present application automatically determines, by a game server, an exchange virtual object that exchanges resources with a current virtual object, and determines, by the game server, first virtual resources exchanged from the current virtual object to the exchange virtual object and second virtual resources exchanged from the exchange virtual object to the current virtual object. A terminal device can directly display, to a player, an object identifier of the exchange virtual object that can exchange resources and exchange information controls of the first virtual resources and the second virtual resources according to a resource exchange request sent by the game server, so that the player can quickly exchange the first virtual resources and the second virtual resources after performing an exchange determination operation on the exchange information controls, thereby simplifying an operation process of exchanging resources between the current virtual object and the friendly virtual object, reducing exchange time, achieving the purpose of quickly exchanging resources in a game, and improving a game experience of a user.
[0093] Please refer to Figure 4 , Figure 4 Another flowchart of the virtual resource exchange method provided by the embodiments of the present application is shown in FIG. 4. The specific flow of the method can be as follows.
[0094] Step 401: Obtain a first object attribute of a current virtual object and a second object attribute of a friendly virtual object belonging to the same camp as the current virtual object.
[0095] In the embodiments of the present application, the first object attribute is information describing a relevant game behavior of the current virtual object in a target game, which can be, for example, a real-time position, an activity track of the current virtual object in a virtual scene, and a number of attacks on enemy virtual objects belonging to different camps, and the like.
[0096] Similarly, the second object attribute is information describing a relevant game behavior of the friendly virtual object in the target game. For example, it can be a real-time position of the current virtual object in the virtual scene, and the like.
[0097] Step 402: Determine, according to the first object attribute of the current virtual object and the second object attribute of the friendly virtual object, an exchange virtual object that exchanges resources with the current virtual object.
[0098] In the embodiments of the present application, when the first object attribute is a first position of the current virtual object in the virtual scene, the first position can be the position of the current virtual object at the current time in the virtual scene, and when the second object attribute is a second position of each friendly virtual object in the virtual scene, the second position can be the position of each friendly virtual object at the current time in the virtual scene. At this time, the step 402 of "determining the exchange virtual object for resource exchange with the current virtual object according to the first object attribute of the current virtual object and the second object attribute of the friendly virtual object" can be:
[0099] If it is detected that the distance between the first position of the current virtual object and the second position of at least one friendly virtual object in the virtual scene is less than the preset distance, the friendly virtual object whose distance from the first position of the current virtual object is less than the preset distance is determined as the candidate virtual object.
[0100] The first held resource of the current virtual object and the second held resource of the candidate virtual object are obtained.
[0101] The exchange virtual object for resource exchange with the current virtual object is determined according to the first held resource and the second held resource of the candidate virtual object.
[0102] In the embodiments of the present application, in order to make the current virtual resource and the exchange virtual object exchange virtual resources, which can bring benefits to the current virtual object and the exchange virtual object, and improve the effectiveness of resource utilization, the step of "determining the exchange virtual object for resource exchange with the current virtual object according to the first held resource and the second held resource of the candidate virtual object" can be:
[0103] If the first held virtual resource of the current virtual object has a first exchange virtual resource that does not match the role type of the current virtual object, the candidate virtual object corresponding to the role type matched by the first exchange virtual resource is determined as the exchangeable virtual object.
[0104] If the second held virtual resource of the exchangeable virtual object has a second exchange virtual resource that does not match the role type of the exchangeable virtual object, and the second exchange virtual resource matches the role type of the current virtual object, the exchangeable virtual object is determined as the exchange virtual object.
[0105] The step 403 is to obtain the first virtual resource exchanged by the current virtual object to the exchange virtual object, and the second virtual resource exchanged by the exchange virtual object to the current virtual object.
[0106] In the embodiments of the present application, the step 403 of "obtaining the first virtual resource exchanged by the current virtual object to the exchange virtual object, and the second virtual resource exchanged by the exchange virtual object to the current virtual object" can be:
[0107] determining the first exchange virtual resource as the first virtual resource;
[0108] determining the second exchange virtual resource as the second virtual resource.
[0109] Step 404, sending a resource exchange request to the current virtual object and the exchange virtual object respectively, the resource exchange request including the first virtual resource exchanged by the current virtual object to the exchange virtual object, the second virtual resource exchanged by the exchange virtual object to the current virtual object, and the object identifier of the exchange virtual object.
[0110] Step 405, exchanging the first virtual resource of the current virtual object with the second virtual resource of the exchange virtual object after receiving the consent feedback information sent by the current virtual object and the exchange virtual object respectively in response to the consent feedback request.
[0111] All the technical solutions described above can be combined to form optional embodiments of the present application, which will not be described one by one here.
[0112] The virtual resource exchange method provided by the embodiments of the present application can detect the first object attribute of the current virtual object and the second object attribute of the friendly virtual object in real time, so as to determine the exchange virtual object for resource exchange with the current virtual object, further determine the first virtual resource exchanged by the current virtual object to the exchange virtual object and the second virtual resource exchanged by the exchange virtual object to the current virtual object, and then send a resource exchange request to the terminal. After receiving the consent feedback information sent by the current virtual object and the exchange virtual object respectively in response to the consent feedback request, the first virtual resource of the current virtual object is exchanged with the second virtual resource of the exchange virtual object. The operation process of the current virtual object and the friendly virtual object for resource exchange is simplified, the exchange time is reduced, the purpose of quickly exchanging resources in the game is achieved, and the game experience of the user is improved.
[0113] In order to better implement the virtual resource exchange method of the embodiments of the present application, the embodiments of the present application further provide a virtual resource exchange device. Please refer to Figure 5 , Figure 5 The structure diagram of the virtual resource exchange device provided by the embodiments of the present application. The virtual resource exchange device can include an interface display unit 501, a request acquisition unit 502, a control display unit 503, and a feedback sending unit 504.
[0114] The interface display unit 501 is configured to display the game interface of the current virtual object, and the game interface includes at least part of the virtual scene of the target game and at least part of the virtual object located in the virtual scene.
[0115] The request obtaining unit 502 is configured to obtain a resource exchange request for the current virtual object and the exchange virtual object sent by the game server when the current virtual object and the exchange virtual object satisfy the exchange trigger condition, the resource exchange request including first virtual resources of the current virtual object exchanged for the exchange virtual object, second virtual resources of the exchange virtual object exchanged for the current virtual object, and an object identifier of the exchange virtual object, the exchange virtual object being a virtual object belonging to the same camp as the current virtual object;
[0116] The control displaying unit 503 is configured to display an exchange information control on the game interface in response to the obtained resource exchange request, the exchange information control including the object identifier of the exchange virtual object, the first virtual resources, and the second virtual resources.
[0117] The feedback sending unit 504 is configured to send, in response to an exchange confirmation operation on the exchange information control, consent feedback information for the resource exchange request to the game server, so that the game server exchanges the first virtual resources of the current virtual object with the second virtual resources of the exchange virtual object after receiving the consent feedback information of the current virtual object and the consent feedback information of the exchange virtual object.
[0118] Optionally, the resource exchange request is obtained when the current virtual object and the exchange virtual object satisfy the exchange trigger condition, and the request obtaining unit 502 is further configured to:
[0119] determine a first position of the current virtual object in the virtual scene in response to a movement operation on the current virtual object;
[0120] If a distance between the first position of the current virtual object in the virtual scene and a second position of the exchange virtual object in the virtual scene is less than a preset distance, it is determined that the current virtual object and the exchange virtual object satisfy the exchange trigger condition.
[0121] Optionally, the resource exchange request is obtained when the current virtual object and the exchange virtual object satisfy the exchange trigger condition, and the request obtaining unit 502 is further configured to:
[0122] determine first owned virtual resources of the current virtual object in response to a resource obtaining operation on the current virtual object;
[0123] If the first owned virtual resources include first exchange virtual resources that do not match a role type of the current virtual object, an exchange query request is sent to the game server, so that the game server determines, according to the exchange query request, that there is an exchange virtual object whose object attribute matches the first exchange virtual resources;
[0124] When exchange confirmation information for the exchange query request sent by the game server is received, it is determined that the current virtual object and the exchange virtual object satisfy the exchange trigger condition.
[0125] Optionally, the exchange information control comprises a cancel exchange sub-control, and the apparatus is further configured to:
[0126] In response to a touch operation on the cancel exchange sub-control in the exchange information control, the apparatus is further configured to send rejection feedback information for the resource exchange request to the game server, so that the game server cancels the resource exchange between the current virtual object and the exchange virtual object.
[0127] All the technical solutions described above can be combined in any manner to form optional embodiments of the present application, which will not be described one by one here.
[0128] The virtual resource exchange apparatus provided by the embodiments of the present application can display the game interface of the current virtual object through the interface display unit 501, then acquire the resource exchange request for the current virtual object and the exchange virtual object sent by the game server through the request acquisition unit 502, then display the exchange information control on the game interface in response to the acquired resource exchange request through the control display unit 503, and finally send the consent feedback information for the resource exchange request to the game server in response to the exchange confirmation operation on the exchange information control through the feedback sending unit 504, so that the game server exchanges the first virtual resource of the current virtual object with the second virtual resource of the exchange virtual object after receiving the consent feedback information of the current virtual object and the consent feedback information of the exchange virtual object. The embodiments of the present application simplify the operation process of the resource exchange between the current virtual object and the friendly virtual object, reduce the exchange time, achieve the purpose of quickly exchanging resources in the game, and improve the game experience of the user.
[0129] In order to better implement the virtual resource exchange method of the embodiments of the present application, the embodiments of the present application further provide a virtual resource exchange apparatus. Please refer to Figure 6 , Figure 6 The virtual resource exchange apparatus provided by the embodiments of the present application is shown in the structure diagram. The virtual resource exchange apparatus can comprise an attribute acquisition unit 601, a determination unit 602, an exchange resource acquisition unit 603, a request sending unit 604 and a feedback receiving unit 605.
[0130] The attribute acquisition unit 601 is configured to acquire the first object attribute of the current virtual object and the second object attribute of the friendly virtual object belonging to the same camp as the current virtual object.
[0131] The determination unit 602 is configured to determine the exchange virtual object for the resource exchange with the current virtual object according to the first object attribute of the current virtual object and the second object attribute of the friendly virtual object.
[0132] The exchange resource obtaining unit 603 is configured to obtain first virtual resources of the current virtual object to exchange with the exchange virtual object, and second virtual resources of the exchange virtual object to exchange with the current virtual object;
[0133] The request sending unit 604 is configured to send resource exchange requests to the current virtual object and the exchange virtual object respectively, the resource exchange requests including the first virtual resources of the current virtual object to exchange with the exchange virtual object, the second virtual resources of the exchange virtual object to exchange with the current virtual object, and an object identifier of the exchange virtual object.
[0134] The feedback receiving unit 605 is configured to exchange the first virtual resources of the current virtual object with the second virtual resources of the exchange virtual object after receiving the consent feedback information sent by the current virtual object and the exchange virtual object respectively in response to the consent feedback request.
[0135] Optionally, the first object attribute includes a first position of the current virtual object in the virtual scene, and the second object attribute includes a second position of the friendly virtual object in the virtual scene. The determining unit 602 is further configured to:
[0136] If it is detected that the distance between the first position of the current virtual object and the second position of at least one friendly virtual object in the virtual scene is less than a preset distance, the friendly virtual object whose distance to the first position of the current virtual object is less than the preset distance is determined as a candidate virtual object.
[0137] The first held resource of the current virtual object and the second held resource of the candidate virtual object are obtained.
[0138] The exchange virtual object for resource exchange with the current virtual object is determined according to the first held resource and the second held resource of the candidate virtual object.
[0139] Optionally, the determining unit 602 is further configured to:
[0140] If the first held virtual resource of the current virtual object has a first exchange virtual resource that does not match the role type of the current virtual object, the candidate virtual object corresponding to the role type matched by the first exchange virtual resource is determined as an exchangeable virtual object.
[0141] If the second held virtual resource of the exchangeable virtual object has a second exchange virtual resource that does not match the role type of the exchangeable virtual object, and the second exchange virtual resource matches the role type of the current virtual object, the exchangeable virtual object is determined as the exchange virtual object.
[0142] Optionally, the exchange resource obtaining unit 603 is further configured to:
[0143] The first exchange virtual resource is determined as the first virtual resource.
[0144] determining the second exchange virtual resource as the second virtual resource.
[0145] The virtual resource exchange device provided by the embodiment of the present application can obtain the first object attribute of the current virtual object and the second object attribute of the friendly virtual object belonging to the same camp as the current virtual object through the attribute obtaining unit 601, then determine the exchange virtual object for resource exchange with the current virtual object according to the first object attribute of the current virtual object and the second object attribute of the friendly virtual object through the determination unit 602, then obtain the first virtual resource exchanged by the current virtual object to the exchange virtual object and the second virtual resource exchanged by the exchange virtual object to the current virtual object through the exchange resource obtaining unit 603, then send the resource exchange request to the current virtual object and the exchange virtual object respectively through the request sending unit 604, and finally exchange the first virtual resource of the current virtual object and the second virtual resource of the exchange virtual object after receiving the consent feedback information sent by the current virtual object and the exchange virtual object respectively in response to the consent feedback request through the feedback receiving unit 605, so as to simplify the operation process of the current virtual object and the friendly virtual object for resource exchange, reduce the exchange time, achieve the purpose of quickly exchanging resources in the game, and improve the game experience of the user.
[0146] Correspondingly, the embodiment of the present application also provides a terminal device, which can be a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (PDA, Personal Digital Assistant), and the like. As shown in Figure 7 Figure 7 The terminal device 700 provided by the embodiment of the present application is shown in the structure diagram. The terminal device 700 includes a processor 701 having one or more processing cores, a memory 702 having one or more computer readable storage media, and a computer program stored on the memory 702 and executable on the processor. The processor 701 is electrically connected to the memory 702. Those skilled in the art can understand that the structure of the terminal device 700 shown in the figure does not constitute a limitation on the terminal device, and can include more or fewer components than the figure, or combine certain components, or different component arrangements.
[0147] The processor 701 is the control center of the terminal device 700, which connects all parts of the terminal device 700 through various interfaces and lines, executes various functions of the terminal device 700 and processes data by running or loading the software program and / or module stored in the memory 702 and calling the data stored in the memory 702, so as to overall monitor the terminal device 700.
[0148] In the embodiments of the present application, the processor 701 in the terminal device 700 loads the instructions corresponding to the processes of one or more application programs into the memory 702 and runs the application programs stored in the memory 702 to implement various functions according to the following steps:
[0149] display a game interface of the current virtual object, the game interface including at least part of a virtual scene of a target game and at least part of a virtual object located in the virtual scene;
[0150] When the current virtual object and the exchange virtual object satisfy an exchange triggering condition, obtain a resource exchange request sent by the game server for the current virtual object and the exchange virtual object, the resource exchange request including first virtual resources exchanged by the current virtual object to the exchange virtual object, second virtual resources exchanged by the exchange virtual object to the current virtual object, and an object identifier of the exchange virtual object, the exchange virtual object being a virtual object belonging to the same camp as the current virtual object;
[0151] In response to the obtained resource exchange request, display an exchange information control in the game interface, the exchange information control including the object identifier of the exchange virtual object, the first virtual resources, and the second virtual resources;
[0152] In response to an exchange confirmation operation for the exchange information control, send, to the game server, consent feedback information for the resource exchange request, so that the game server exchanges the first virtual resources of the current virtual object with the second virtual resources of the exchange virtual object after receiving the consent feedback information of the current virtual object and the consent feedback information of the exchange virtual object.
[0153] The specific implementation of each operation can be referred to the foregoing embodiments, which will not be described here.
[0154] Optionally, as shown in Figure 7 The terminal device 700 further includes a touch display screen 703, a radio frequency circuit 704, an audio circuit 705, an input unit 706, and a power supply 707. The processor 701 is electrically connected with the touch display screen 703, the radio frequency circuit 704, the audio circuit 705, the input unit 706, and the power supply 707, respectively. Those skilled in the art can understand that the computer device structure shown in the Figure 7 The computer device structure shown in the foregoing embodiments does not constitute a limitation on the computer device, and can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0155] The touch display screen 703 can be used to display a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface. The touch display screen 703 can include a display panel and a touch panel. The display panel can be used to display information input by a user or information provided to a user and various graphical user interfaces of a computer device, which can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED) or the like. The touch panel can be used to collect touch operations of a user thereon or adjacent thereto (such as operations of a user's finger, a stylus or any suitable object or accessory on or adjacent to the touch panel) and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel can include two parts of a touch detection device and a touch controller. The touch detection device detects the touch position of a user and detects signals generated by a touch operation and transmits the signals to the touch controller. The touch controller receives touch information from the touch detection device and converts the touch information into touch coordinates and sends the touch coordinates to the processor 701, and can receive commands from the processor 701 and execute the commands. The touch panel can cover the display panel. When the touch panel detects a touch operation thereon or adjacent thereto, the touch panel transmits the touch operation to the processor 701 to determine the type of the touch event, and then the processor 701 provides corresponding visual output on the display panel according to the type of the touch event. In the embodiments of the present application, the touch panel and the display panel can be integrated into the touch display screen 703 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can realize input and output functions as two independent components. That is, the touch display screen 703 can also realize input functions as part of the input unit 706.
[0156] In the embodiments of the present application, the processor 701 generates a game interface on the touch display screen 703 by executing a game application program, and the processor 701 displays an exchange information control on the game interface according to the analysis of the received resource exchange request. The touch display screen 703 is used to present the game interface and receive operation instructions generated by a user acting on the game interface.
[0157] The radio frequency circuit 704 can be used to transceive radio frequency signals to establish wireless communication with a network device or other computer device, and transceive signals between the network device or other computer device.
[0158] The audio circuit 705 can be used to provide an audio interface between the user and the computer device through a speaker and a microphone. The audio circuit 705 can convert the received audio data into an electrical signal and transmit the electrical signal to the speaker for conversion into a sound signal output by the speaker. On the other hand, the microphone collects a sound signal and converts the sound signal into an electrical signal, which is received by the audio circuit 705 and converted into audio data. The audio data is output to the processor 701 for processing, and then transmitted to another computer device through the radio frequency circuit 704, or output to the memory 702 for further processing. The audio circuit 705 can also include an earphone jack to provide communication between an external earphone and the computer device.
[0159] The input unit 706 can be used to receive inputted digital, character information or user feature information (such as fingerprint, iris, face information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0160] The power supply 707 is used to supply power to various components of the terminal device 700. Optionally, the power supply 707 can be logically connected to the processor 701 through a power management system, so that the power management system can realize functions such as management of charging, discharging and power consumption management. The power supply 707 can also include one or more direct current or alternating current power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.
[0161] Although Figure 7 The terminal device 700 can also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which are not described here in detail.
[0162] In the above embodiments, the description of each embodiment focuses on different aspects, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0163] As can be seen from the above, the terminal device provided by the embodiment automatically determines, by a game server, an exchange virtual object for resource exchange with a current virtual object, and determines, by the game server, first virtual resources exchanged from the current virtual object to the exchange virtual object and second virtual resources exchanged from the exchange virtual object to the current virtual object. The terminal device can directly display, according to a resource exchange request sent by the game server, an object identifier of the exchange virtual object that can perform resource exchange, and exchange information controls of the first virtual resources and the second virtual resources for resource exchange to the player, so that the player can quickly exchange the first virtual resources and the second virtual resources after performing an exchange determination operation on the exchange information controls, thereby simplifying the operation process of resource exchange between the current virtual object and the friendly virtual object, reducing the exchange time, achieving the purpose of quickly exchanging resources in the game, and improving the user's game experience.
[0164] Correspondingly, the embodiments of the present application also provide a server, which can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, a cloud server providing basic cloud computing services such as cloud service, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, etc. As shown in Figure 8 Figure 8 The server provided by the embodiments of the present application is shown in a structural schematic diagram. The server 800 includes a processor 801 having one or more processing cores, a memory 802 having one or more computer readable storage media, and a computer program stored on the memory 802 and executable on the processor. The processor 801 is electrically connected to the memory 802. Those skilled in the art can understand that the server structure shown in the figure does not constitute a limitation on the server, and can include more or fewer components than shown, or combine certain components, or different component arrangements.
[0165] The processor 801 is the control center of the server 800, which connects various parts of the entire server 800 through various interfaces and lines, executes various functions of the server 800 and processes data by running or loading software programs and / or modules stored in the memory 802, and calling data stored in the memory 802, thereby overall monitoring the server 800.
[0166] In the embodiments of the present application, the processor 801 in the server 800 will load the instructions corresponding to the processes of one or more application programs into the memory 802, and run the application programs stored in the memory 802 by the processor 801, so as to realize various functions according to the following steps:
[0167] Obtain a first object attribute of a current virtual object and a second object attribute of a friendly virtual object belonging to the same camp as the current virtual object;
[0168] According to the first object attribute of the current virtual object and the second object attribute of the friendly virtual object, determine an exchange virtual object for resource exchange with the current virtual object;
[0169] Obtain a first virtual resource exchanged by the current virtual object to the exchange virtual object, and a second virtual resource exchanged by the exchange virtual object to the current virtual object;
[0170] Respectively send a resource exchange request to the current virtual object and the exchange virtual object, the resource exchange request including the first virtual resource exchanged by the current virtual object to the exchange virtual object, the second virtual resource exchanged by the exchange virtual object to the current virtual object, and an object identifier of the exchange virtual object;
[0171] When the consent feedback information sent by the current virtual object and the exchange virtual object in response to the consent feedback request is received respectively, the first virtual resource of the current virtual object is exchanged with the second virtual resource of the exchange virtual object.
[0172] The specific implementation of each operation can refer to the foregoing embodiments, which will not be described here.
[0173] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by related hardware controlled by the instructions, which can be stored in a computer readable storage medium and loaded and executed by a processor.
[0174] To this end, the embodiments of the present application provide a computer readable storage medium, which stores a plurality of computer programs capable of being loaded by a processor to execute the steps in any virtual resource exchange method provided by the embodiments of the present application. For example, the computer program can execute the following steps:
[0175] displaying a game interface of the current virtual object, the game interface including at least part of a virtual scene of a target game and at least part of a virtual object located in the virtual scene;
[0176] When the current virtual object and the exchange virtual object meet the exchange triggering condition, obtaining a resource exchange request sent by a game server for the current virtual object and the exchange virtual object, the resource exchange request including a first virtual resource exchanged by the current virtual object to the exchange virtual object, a second virtual resource exchanged by the exchange virtual object to the current virtual object, and an object identifier of the exchange virtual object, the exchange virtual object being a virtual object belonging to the same camp as the current virtual object;
[0177] In response to the obtained resource exchange request, displaying an exchange information control in the game interface, the exchange information control including the object identifier of the exchange virtual object, the first virtual resource and the second virtual resource;
[0178] In response to an exchange confirmation operation for the exchange information control, sending consent feedback information in response to the resource exchange request to the game server, so that the game server exchanges the first virtual resource of the current virtual object with the second virtual resource of the exchange virtual object after receiving the consent feedback information of the current virtual object and the consent feedback information of the exchange virtual object.
[0179] obtaining a first object attribute of the current virtual object and a second object attribute of a friendly virtual object belonging to the same camp as the current virtual object;
[0180] According to the first object attribute of the current virtual object and the second object attribute of the friendly virtual object, determine an exchange virtual object that exchanges resources with the current virtual object;
[0181] Obtain the first virtual resource exchanged by the current virtual object to the exchange virtual object, and the second virtual resource exchanged by the exchange virtual object to the current virtual object;
[0182] Send a resource exchange request to the current virtual object and the exchange virtual object respectively, the resource exchange request including the first virtual resource exchanged by the current virtual object to the exchange virtual object, the second virtual resource exchanged by the exchange virtual object to the current virtual object, and the object identifier of the exchange virtual object;
[0183] After receiving the consent feedback information sent by the current virtual object and the exchange virtual object respectively in response to the consent feedback request, exchange the first virtual resource of the current virtual object with the second virtual resource of the exchange virtual object.
[0184] The specific implementation of each operation can refer to the foregoing embodiments, which will not be described here.
[0185] The storage medium can include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0186] The computer program stored in the storage medium can execute the steps of any virtual resource exchange method provided by the embodiments of the present application, and thus can achieve the beneficial effects of any virtual resource exchange method provided by the embodiments of the present application. Details are described in the foregoing embodiments, which will not be described here.
[0187] In the above embodiments, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can refer to the relevant description of other embodiments.
[0188] The virtual resource exchange method, device, and storage medium provided by the embodiments of the present application are described in detail above, and the principle and implementation manner of the present application are described by applying specific examples. The above description of the embodiments is only used to help understand the technical solutions and core ideas of the present application; those skilled in the art should understand that they can modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for some technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A virtual resource exchange method, characterized in that, include: The game interface displays the current virtual object, and the game interface includes at least a portion of the virtual scene of the target game and at least a portion of the virtual objects located in the virtual scene; In response to a resource acquisition operation for the current virtual object, determine the first virtual resource already held by the current virtual object; If the first exchange virtual resource in the first held virtual resource has an object attribute that does not match the current virtual object, an exchange query request is sent to the game server so that the game server determines, based on the exchange query request, that there is an exchange virtual object whose object attribute matches the first exchange virtual resource. When the game server sends an exchange confirmation message in response to the exchange query request, it is determined that the current virtual object and the exchange virtual object meet the exchange triggering conditions. When the current virtual object and the exchange virtual object meet the exchange triggering conditions, a resource exchange request sent by the game server for the current virtual object and the exchange virtual object is obtained. The resource exchange request includes a first virtual resource exchanged by the current virtual object to the exchange virtual object, a second virtual resource exchanged by the exchange virtual object to the current virtual object, and an object identifier of the exchange virtual object. The exchange virtual object is a virtual object belonging to the same faction as the current virtual object. In response to the obtained resource exchange request, an exchange information control is displayed on the game interface. The exchange information control includes the object identifier of the exchange virtual object, the first virtual resource, and the second virtual resource. In response to the exchange confirmation operation for the exchange information control, an agreement feedback message for the resource exchange request is sent to the game server, so that after receiving the agreement feedback message for the current virtual object and the agreement feedback message for the exchange virtual object, the game server exchanges the first virtual resource of the current virtual object with the second virtual resource of the exchange virtual object.
2. The method according to claim 1, characterized in that, Before obtaining the resource exchange request sent by the game server for the current virtual object and the exchanged virtual object, the process further includes: In response to a movement operation on the current virtual object, a first position of the current virtual object in the virtual scene is determined; If the distance between the first position of the current virtual object in the virtual scene and the second position of the exchange virtual object in the virtual scene is less than a preset distance, it is determined that the current virtual object and the exchange virtual object satisfy the exchange trigger condition.
3. The method according to claim 1, characterized in that, The information exchange control includes a cancel exchange sub-control, and the method further includes: In response to a touch operation on the cancel exchange sub-control in the exchange information control, a rejection feedback message for the resource exchange request is sent to the game server, so that the game server cancels the resource exchange between the current virtual object and the exchange virtual object.
4. A virtual resource exchange method, characterized in that, include: Obtain the first object attribute of the current virtual object and the second object attribute of the friendly virtual object belonging to the same faction as the current virtual object. The game interface of the current virtual object includes at least a part of the virtual scene of the target game and at least a part of the virtual objects located in the virtual scene. The first object attribute includes the first position of the current virtual object in the virtual scene, and the second object attribute includes the second position of the friendly virtual object in the virtual scene. Based on the first object attribute of the current virtual object and the second object attribute of the friendly virtual object, determine the exchange virtual object that will exchange resources with the current virtual object; Obtain the first virtual resource exchanged by the current virtual object to the exchanged virtual object, and the second virtual resource exchanged by the exchanged virtual object to the current virtual object; Send resource exchange requests to the current virtual object and the exchange virtual object respectively. The resource exchange request includes a first virtual resource exchanged by the current virtual object to the exchange virtual object, a second virtual resource exchanged by the exchange virtual object to the current virtual object, and the object identifier of the exchange virtual object. After receiving consent feedback information from both the current virtual object and the exchange virtual object regarding the resource exchange request, the first virtual resource of the current virtual object is exchanged with the second virtual resource of the exchange virtual object.
5. The method according to claim 4, characterized in that, The step of determining the exchange virtual object to exchange resources with the current virtual object based on the first object attribute of the current virtual object and the second object attribute of the friendly virtual object includes: If it is detected that the distance between the first position of the current virtual object and the second position of at least one friendly virtual object in the virtual scene is less than a preset distance, then friendly virtual objects whose distance to the first position of the current virtual object is less than the preset distance are determined as candidate virtual objects; Obtain the first held resources of the current virtual object and the second held resources of the candidate virtual object; Based on the first held resources and the second held resources of the candidate virtual object, an exchange virtual object is determined to exchange resources with the current virtual object.
6. The method according to claim 5, characterized in that, The step of determining the virtual object to exchange resources with the current virtual object based on the first held resources and the second held resources of the candidate virtual object includes: If, among the first held virtual resources of the current virtual object, there is a first exchange virtual resource that does not match the role type of the current virtual object, a candidate virtual object corresponding to the role type that matches the first exchange virtual resource is determined as an exchangeable virtual object; If among the second held virtual resources of the exchangeable virtual object, there is a second exchangeable virtual resource that does not match the role type of the exchangeable virtual object, and the second exchangeable virtual resource matches the role type of the current virtual object, then the exchangeable virtual object is determined to be the exchangeable virtual object.
7. The method according to claim 6, characterized in that, The step of obtaining the first virtual resource exchanged by the current virtual object to the exchanged virtual object, and the second virtual resource exchanged by the exchanged virtual object to the current virtual object, includes: The first exchanged virtual resource is determined to be the first virtual resource; The second exchange virtual resource is identified as the second virtual resource.
8. A virtual resource exchange device, characterized in that, include: An interface display unit is used to display the game interface of the current virtual object, the game interface including at least a portion of the virtual scene of the target game and at least a portion of the virtual objects located in the virtual scene; The request acquisition unit is configured to respond to a resource acquisition operation for the current virtual object, determine the first virtual resource already held by the current virtual object, and if the first virtual resource already held has a first exchange virtual resource whose object attributes do not match those of the current virtual object, send an exchange query request to the game server so that the game server determines, based on the exchange query request, that there exists an exchange virtual object whose object attributes match those of the first exchange virtual resource. When receiving exchange confirmation information from the game server for the exchange query request, it determines that the current virtual object and the exchange virtual object meet the exchange triggering condition. When the current virtual object and the exchange virtual object meet the exchange triggering condition, it acquires a resource exchange request from the game server for the current virtual object and the exchange virtual object. The resource exchange request includes a first virtual resource exchanged by the current virtual object to the exchange virtual object, a second virtual resource exchanged by the exchange virtual object to the current virtual object, and an object identifier of the exchange virtual object. The exchange virtual object is a virtual object belonging to the same faction as the current virtual object. A control display unit is configured to display an exchange information control on the game interface in response to the acquired resource exchange request. The exchange information control includes the object identifier of the exchange virtual object, the first virtual resource, and the second virtual resource. The feedback sending unit is configured to send consent feedback information for the resource exchange request to the game server in response to the exchange confirmation operation of the exchange information control, so that after receiving the consent feedback information of the current virtual object and the consent feedback information of the exchange virtual object, the game server will exchange the first virtual resource of the current virtual object with the second virtual resource of the exchange virtual object.
9. A virtual resource exchange device, characterized in that, include: The attribute acquisition unit is used to acquire the first object attribute of the current virtual object and the second object attribute of the friendly virtual object belonging to the same faction as the current virtual object. The game interface of the current virtual object includes at least a part of the virtual scene of the target game and at least a part of the virtual objects located in the virtual scene. The first object attribute includes the first position of the current virtual object in the virtual scene, and the second object attribute includes the second position of the friendly virtual object in the virtual scene. The determining unit is configured to determine, based on the first object attribute of the current virtual object and the second object attribute of the friendly virtual object, the exchange virtual object to exchange resources with the current virtual object; The resource exchange acquisition unit is used to acquire the first virtual resource exchanged by the current virtual object to the exchange virtual object, and the second virtual resource exchanged by the exchange virtual object to the current virtual object; The request sending unit is configured to send resource exchange requests to the current virtual object and the exchange virtual object respectively. The resource exchange request includes a first virtual resource exchanged by the current virtual object to the exchange virtual object, a second virtual resource exchanged by the exchange virtual object to the current virtual object, and an object identifier of the exchange virtual object. The feedback receiving unit is configured to, upon receiving consent feedback information from the current virtual object and the exchange virtual object regarding the resource exchange request, exchange the first virtual resource of the current virtual object with the second virtual resource of the exchange virtual object.
10. A terminal device, characterized in that, include: Memory, used to store computer programs; A processor for implementing the steps of the virtual resource exchange method as described in any one of claims 1 to 3 when executing the computer program.
11. A server, characterized in that, include: Memory, used to store computer programs; A processor for implementing the steps of the virtual resource exchange method as described in any one of claims 4 to 7 when executing the computer program.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the virtual resource exchange method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Resource exchanging method, device and system
CN104348830A