Virtual object control method and device, equipment and storage medium
By displaying controls in the user interface to enable the direct replacement and acquisition of multiple virtual objects, the problem of the limited acquisition methods for virtual object items is solved, efficiency is improved and communication pressure is reduced.
Patent Information
- Application Number
- CN202310538748.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-12
- Publication Date
- 2024-11-12
AI Technical Summary
In existing technologies, the methods for virtual objects to acquire virtual items are relatively simple, and each acquisition of an item requires a communication, which increases the communication pressure on terminal devices and servers.
By displaying virtual object items and controls in the user interface, users can directly replace items with other virtual objects and acquire multiple items at once, reducing the number of communication attempts.
It enriches the methods for obtaining virtual items, reduces the communication pressure between terminal devices and servers, and lowers the processing overhead of servers.
Smart Images

Figure CN118925230A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the fields of Internet and computer technology, and in particular to a control method, device, equipment and storage medium for a virtual object. Background Art
[0002] During the game, users can control virtual objects and use virtual props in the virtual environment.
[0003] In the related art, in order to allow users to experience a variety of virtual props in the game, different virtual props are randomly refreshed in the virtual environment. The user can control the virtual object to pick up a new virtual prop from the virtual environment and control the virtual object to use the new virtual prop.
[0004] However, in the related art, the method for a virtual object to obtain a virtual prop is relatively simple. Summary of the invention
[0005] The present application provides a control method, device, equipment and storage medium for a virtual object. The technical solution is as follows:
[0006] According to one aspect of an embodiment of the present application, a method for controlling a virtual object is provided, the method comprising:
[0007] Displaying in a user interface a display screen of a virtual environment, at least one virtual prop owned by a first virtual object in the virtual environment, and a first control for controlling the first virtual object to perform a first operation, wherein the first operation is used to obtain virtual props owned by other virtual objects in the virtual environment;
[0008] In response to an operation on the first control, replacing a first virtual prop in the at least one virtual prop with a second virtual prop, where the second virtual prop is a virtual prop owned by a second virtual object in the virtual environment;
[0009] In response to the operation of using the second virtual prop, the first virtual object is controlled to use the second virtual prop.
[0010] According to one aspect of an embodiment of the present application, a control device for a virtual object is provided, the device comprising:
[0011] An interface display module, configured to display in a user interface a display screen of a virtual environment, at least one virtual prop owned by a first virtual object in the virtual environment, and a first control for controlling the first virtual object to perform a first operation, wherein the first operation is used to obtain virtual props owned by other virtual objects in the virtual environment;
[0012] a replacement display module, configured to replace a first virtual prop in the at least one virtual prop with a second virtual prop in response to an operation on the first control, wherein the second virtual prop is a virtual prop owned by a second virtual object in the virtual environment;
[0013] The prop using module is used to control the first virtual object to use the second virtual prop in response to the operation of using the second virtual prop.
[0014] According to one aspect of an embodiment of the present application, a terminal device is provided, the terminal device comprising a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the virtual object control method as described above.
[0015] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the control method of the virtual object as described above.
[0016] According to one aspect of an embodiment of the present application, a computer program product is provided, which includes a computer program stored in a computer-readable storage medium, and a processor reads and executes the computer program from the computer-readable storage medium to implement the control method of the virtual object as described above.
[0017] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0018] By controlling the virtual object to perform corresponding operations, the user can obtain virtual props owned by other virtual objects. Compared with the related art, in which virtual objects can only randomly search in the virtual environment to obtain new virtual props, through this method, the first virtual object controlled by the user can obtain virtual props used by other virtual objects from other virtual objects in a targeted manner, enriching the method of obtaining virtual props.
[0019] Moreover, compared with the related art, each time a virtual object picks up a virtual prop from the virtual environment, the terminal device needs to send a notification message to the server to improve the real-time performance of the virtual props that can be picked up and avoid the situation where a virtual prop is picked up by multiple users. In this method, after the virtual object controlled by the user performs relevant operations, it can obtain multiple virtual props owned by other virtual objects at one time, that is, the user only needs to perform one operation to obtain multiple virtual props. Then the terminal device only needs to communicate with the server once to realize that the virtual object controlled by the user has multiple virtual props, which helps to reduce the communication pressure of the terminal device and the server.
[0020] Furthermore, the present method can be used in combination with the method of randomly generating virtual props in a virtual environment in the related art. Since the virtual objects controlled by the user can obtain the virtual props owned by other virtual objects, the need for the virtual objects controlled by the user to pick up virtual props from the virtual environment is reduced. Therefore, the server can reduce the number of virtual props that need to be randomly generated, which helps to reduce the server's maintenance of virtual props in the virtual environment and reduce the server's processing overhead. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a schematic diagram of a solution implementation environment provided by an exemplary embodiment of the present application;
[0022] Figure 2 is a flow chart of a method for controlling a virtual object provided by an exemplary embodiment of the present application;
[0023] Figure 3 is a schematic diagram of a user interface display effect provided by an exemplary embodiment of the present application;
[0024] Figure 4 is a schematic diagram of a state change of a first control provided by an exemplary embodiment of the present application;
[0025] Figure 5 is a schematic diagram of a virtual prop replacement effect provided by an exemplary embodiment of the present application;
[0026] Figure 6 is a schematic diagram of a second virtual object selection process provided by an exemplary embodiment of the present application;
[0027] Figure 7 is a schematic diagram of an operation success prompt provided by an exemplary embodiment of the present application;
[0028] Figure 8 is a schematic diagram of a prop stealing prompt provided by an exemplary embodiment of the present application;
[0029] Fig. 9 is a flow chart of a method for controlling a virtual object provided by another exemplary embodiment of the present application;
[0030] Fig.10 is a schematic diagram of control conversion provided by an exemplary embodiment of the present application;
[0031] Fig.11 is a schematic diagram of a first skill usage process provided by an exemplary embodiment of the present application;
[0032] Fig.12 is a schematic diagram of a method for controlling a virtual object provided by an exemplary embodiment of the present application;
[0033] Fig.13 is a schematic diagram of the interaction between a terminal device and a server provided by an exemplary embodiment of the present application;
[0034] Fig.14 is a block diagram of a control device for a virtual object provided by an exemplary embodiment of the present application;
[0035] Fig.15 It is a structural block diagram of a terminal device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0037] Figure 1 1 is a schematic diagram of a solution implementation environment provided by an exemplary embodiment of the present application. The solution implementation environment can be implemented as a computer system, such as a game application system. The solution implementation environment may include: a terminal device 10 and a server 20.
[0038] The terminal device 10 can be an electronic device such as a mobile phone, a tablet computer, a PC (Personal Computer), a game console, a multimedia playback device, a wearable device, an intelligent voice interaction device, a smart home appliance, a car terminal, etc.
[0039] In one example, a target application is running in the terminal device 10, and the target application may be a game application, as well as other applications that can provide game functions. In some embodiments, game applications include, but are not limited to: first person shooting (First Person Shooting, FPS) games, adventure games (AdvantureGame, ATG), action games (Action Game, ACT) and simulation games (Simulation Game, SLG), etc. For example, the target application is a first person shooting application, and the target application is provided with at least one virtual prop, and the user can use the virtual prop in the virtual environment to change the direction of the game.
[0040] The server 20 can provide background services for the target application running on the terminal device 10. For example, the server 20 can be the background server of the target application. The server 20 can provide the terminal device 10 with a server 20 that can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud computing, cloud functions, cloud storage, network services, cloud communications, domain name services, and artificial intelligence platforms. The server 20 has at least data transmission, storage, and computing functions.
[0041] In some embodiments, game data is provided between the server 20 and the terminal device 10, and the game data is used to characterize the position change of the virtual object in the virtual environment and the usage of the virtual props.
[0042] Figure 2 is a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application. For example, the execution subject of the method may be Figure 1 The terminal device 10 in the implementation environment of the solution, for example, the execution subject can be the client of the target application running on the terminal device 10. Figure 2 As shown, the method may include the following steps (210-230):
[0043] Step 210, displaying in a user interface a display screen of a virtual environment, at least one virtual prop owned by a first virtual object in the virtual environment, and a first control for controlling the first virtual object to perform a first operation, wherein the first operation is used to obtain virtual props owned by other virtual objects in the virtual environment.
[0044] In some embodiments, the user interface refers to a user interface of the target application. Optionally, after the game match of the target application starts, at least one of the following is displayed in the user interface: a display screen of the virtual environment, at least one virtual prop owned by a first virtual object in the virtual environment, and a first control for controlling the first virtual object to perform a first operation.
[0045] In some embodiments, the first virtual object refers to a virtual object controlled by a user using a terminal device in a game of a target application. Optionally, the user controls the first virtual object to move in a virtual environment, use virtual props, and release skills through the terminal device.
[0046] In some embodiments, the display screen of the virtual environment is used to characterize the virtual environment in which the first virtual object is located. Optionally, the display screen of the virtual environment is obtained by photographing the virtual environment through a shooting perspective related to the first virtual object. The shooting perspectives related to the first virtual object include: the first-person perspective of the first virtual object and the third-person perspective of the first virtual object. Among them, the first-person perspective of the first virtual object refers to the shooting perspective of fixing the virtual camera on the head of the first virtual object, and the picture obtained by photographing the virtual environment with the virtual camera is a display screen from the first-person perspective. The third-person perspective of the first virtual object refers to the shooting perspective of fixing the virtual camera behind the first virtual object, and the picture obtained by photographing the virtual environment with the virtual camera is a display screen from the third-person perspective.
[0047] It should be noted that the virtual camera refers to a camera model designed based on the imaging principle in the computer vision model. The camera model is set in a virtual environment, and the display screen of the virtual environment can be generated through the camera model. In the virtual environment, the relative position between the virtual camera and the first virtual object does not change, and the virtual camera moves in the virtual environment following the first virtual object.
[0048] Optionally, the terminal device switches the shooting perspective of the display screen of the virtual environment in response to the perspective switching operation. For example, the terminal device switches the display screen obtained by shooting from the first perspective of the first virtual object to the display screen obtained by shooting from the third perspective of the first virtual object in response to the operation of the perspective switching control.
[0049] Optionally, the display screen of the virtual environment includes at least one of the following: at least one virtual object appearing in the field of view of the first virtual object, a virtual prop held by the first virtual object (that is, a virtual prop being used by the first virtual object), a building in the virtual environment, etc.
[0050] In some embodiments, the at least one virtual prop owned by the first virtual object refers to a virtual prop that the first virtual object can use in a virtual environment. Optionally, the first virtual object owns at least one virtual prop.
[0051] Optionally, the source of the at least one virtual prop owned by the first virtual object includes but is not limited to at least one of the following: a virtual prop that the first virtual object brings with it, and a virtual prop that the first virtual object picks up from the virtual environment.
[0052] In some embodiments, the virtual props are consumable virtual props and non-consumable virtual props. Optionally, if the first virtual object uses consumable virtual props 1 in the virtual environment, the number of consumable virtual props 1 owned by the first virtual object (or the durability of the consumable virtual props 1 (the durability is used to characterize the remaining number of uses of the consumable virtual props 1)) will change; if the first virtual object uses non-consumable virtual props 2 in the virtual environment, the number of non-consumable virtual props 2 owned by the first virtual object will not change.
[0053] Optionally, the functions of the virtual props owned by the first virtual object include but are not limited to at least one of the following: affecting the game attributes of the virtual object in the virtual environment, changing the terrain in the virtual environment; wherein the game attributes include but are not limited to at least one of the following: the health value of the virtual object, the attack power of the virtual object, the movement speed of the virtual object, etc.
[0054] For example, virtual prop 1 owned by the first virtual object is used to increase the health of the first virtual object. For another example, virtual prop 2 owned by the first virtual object is used to deduct the health of other virtual objects. For another example, virtual prop 3 owned by the first virtual object is used to slow down the movement speed of other virtual objects. It should be noted that the type of virtual prop owned by the first virtual object is set according to the actual game, and this application does not limit it here.
[0055] Optionally, if the first virtual object has multiple virtual props of the same type, the user interface also displays the number of virtual props of the same type owned by the first virtual object, and the number may be 0 or any positive integer.
[0056] In some embodiments, a first control is also displayed in the user interface, and the first control is used to control the first virtual object to perform a first operation in the virtual environment. The first operation is used to copy virtual props possessed by other virtual objects in the virtual environment. Other virtual objects refer to virtual objects in the virtual environment other than the first virtual object.
[0057] Optionally, the other virtual objects are virtual objects controlled by other game players, or the other virtual objects refer to NPCs (Non Player Characters) in the game.
[0058] Optionally, the first operation is used to copy all virtual props owned by other virtual objects, or the first operation is used to copy part of the virtual props owned by other virtual objects. Assume that a certain other virtual object has m types of virtual props, and the first operation is used to copy n types of virtual props owned by the virtual object, where m is a positive integer and n is a positive integer less than or equal to m.
[0059] In some embodiments, the first operation is implemented by the second skill of the first virtual object, or the first operation is implemented by the first virtual object using the first prop. In other words, the user can control the first virtual object to release the second skill to complete the first operation, or the user controls the first virtual object to use the target virtual prop in the virtual environment to complete the first operation.
[0060] Optionally, the first virtual object has a functional chip configuration slot. Before the game starts, the terminal device configures a first chip for the first virtual object based on the chip configuration operation; wherein the first chip is used to enable the first virtual object to have a second skill, or to enable the first virtual object to use a first prop in the game; after the game starts, a first control for controlling the first virtual object to perform a first operation is displayed in the user interface.
[0061] In the case where the first operation is implemented through the second skill, the first operation refers to a skill possessed by the first virtual object, and the first control is used to control the first virtual object to release the second skill so as to complete the first operation.
[0062] In some embodiments, the first operation has a cooling condition, and when the cooling condition is met, the terminal device can control the first virtual object to perform the first operation through the first control. That is, when the second skill meets the cooling condition, the first control is in a usable state; when the second skill does not meet the cooling condition, the first control is in an unusable state.
[0063] Optionally, the cooling condition is related to time. For example, if the duration of the game match is greater than or equal to the cooling time threshold, the user can control the first virtual object to perform the first operation through the first control. The cooling time can be preset, such as the cooling time is equal to 300 seconds.
[0064] Optionally, the cooling condition is related to the energy accumulated by the first virtual object. For example, after the game starts, the first virtual object starts to accumulate energy from 0, and when the accumulated energy is greater than or equal to an energy threshold, the first control is in a usable state. The user can control the first virtual object to perform a first operation through the first control. The energy threshold is preset, such as the energy threshold is equal to 100.
[0065] In one example, the speeds at which the first virtual object accumulates energy at different times are not completely equal. For example, at a first moment, the speed at which the first virtual object accumulates energy is a first energy accumulation speed; at a second moment, the first virtual object uses a virtual item to hit other virtual objects, and the speed at which the first virtual object accumulates energy is a second energy accumulation speed, wherein the value of the first energy accumulation speed is less than the value of the second energy accumulation speed.
[0066] In the case where the first operation is implemented by the first prop, the first control is used to control the first virtual object to consume the first prop in the virtual environment. Optionally, the first virtual object can obtain the first prop from the virtual environment. For example, in response to the pick-up operation for the first prop, the terminal device controls the first virtual object to pick up the first prop from the virtual environment, and the number of the first props owned by the first virtual object increases.
[0067] Optionally, when the first virtual object has at least one first prop, the first control in the user interface is in a usable state, and when the number of first props owned by the first virtual object is zero, the first control is in an unusable state.
[0068] In some embodiments, there are at least two display levels in the user interface; wherein the at least two display levels are divided into two categories: a picture layer and a control layer. Optionally, the picture layer is used to display a display picture of the virtual environment, and the control layer is used to display at least one user interface control, and at least one user interface control's corresponding identification information, and the user interface control is used to control the behavior of the first virtual object in the virtual environment.
[0069] Optionally, the display screen of the virtual environment is located in the screen layer, the first control is located in the control layer, and at least one virtual prop owned by the first virtual object is located in the screen layer or the control layer.
[0070] In some embodiments, the at least one virtual prop owned by the first virtual object includes at least one of the following: a virtual prop being used by the first virtual object, and a virtual prop stored in a backpack list. Optionally, the virtual prop in the backpack list is displayed in the control layer, and the virtual prop being used by the first virtual object can be displayed in the control layer or in the screen layer. Optionally, the virtual prop being used by the first virtual object is called the main attack prop of the first virtual object.
[0071] For example, when the shooting angle includes a virtual prop held by the first virtual object, the virtual prop being used can be photographed by the virtual camera and thus appear in the display screen. For another example, at least one virtual prop included in the backpack list is displayed in the control layer so that the user can operate any virtual prop in the backpack list. In order to facilitate the adjustment of the properties of the virtual prop being used by the target virtual object, the virtual prop being used is also displayed in the backpack list, that is, the virtual prop being used is displayed in the control layer.
[0072] In addition to displaying the virtual props owned by the first virtual object, the user interface also displays other virtual props; wherein the other virtual props include: virtual props being used by other virtual objects, virtual props that can be picked up in the virtual environment, etc.
[0073] Figure 3 It is a schematic diagram of a user interface display effect provided by an exemplary embodiment of the present application.
[0074] like Figure 3 As shown, the user interface 300 displays a first virtual object 312, a virtual prop 314 being used by the first virtual object, and at least one virtual prop 316 in the backpack list, wherein the virtual prop 314 being used by the first virtual object is displayed in the screen layer, and the at least one virtual prop 316 in the backpack list is displayed in the control layer. The control layer also displays controls such as a first control 318 and a perspective conversion control 319. Optionally, other virtual objects 320 are also displayed in the display screen of the virtual environment. Figure 3 For the relevant introduction of each display content, please refer to the above embodiment, which will not be repeated here.
[0075] Figure 4 It is a schematic diagram of the state change of the first control provided by an exemplary embodiment of the present application.
[0076] After the game starts, the first virtual object accumulates energy. Since the accumulated energy is less than the energy threshold, the first control 410 is in an unusable state at the first moment. During the game, the accumulated energy is equal to the energy threshold, and the first control 420 is converted from an unusable state to a usable state at the second moment.
[0077] Step 220: In response to the operation on the first control, a first virtual prop in the at least one virtual prop is replaced with a second virtual prop, where the second virtual prop is a virtual prop owned by a second virtual object in the virtual environment.
[0078] In some embodiments, the operation on the first control includes but is not limited to at least one of the following: a click operation, a slide operation, a long press operation, a voice operation, a gesture operation, etc. For example, the operation on the first control is a click operation, and after receiving the operation signal of the first control sensing area, the terminal device controls the first virtual object to perform the first operation. It should be noted that the operation on the first control is set according to actual needs, and this application does not set it here.
[0079] Optionally, when the first control is in a usable state, the terminal device responds to the operation on the first control; when the first control is in an unusable state, the terminal device does not respond to the operation on the first control. For example, the operation on the first control is a sliding operation. If the first control is in a usable state and the terminal device receives a sliding signal for the first control, the terminal device controls the first virtual object to perform the first operation and obtain at least one virtual prop owned by other virtual objects.
[0080] In some embodiments, the first virtual prop refers to any one of the at least one virtual prop. For example, the first virtual prop is a virtual prop currently being used by the terminal device. For another example, each of the at least one virtual prop is a first virtual prop.
[0081] In some embodiments, the second virtual object refers to a virtual object other than the first virtual object in the virtual environment. Optionally, the first virtual object and the second virtual object are in a hostile state. For example, a game game includes x game teams, each game team includes at least one virtual object, and the first virtual object is in the first game team among the x game teams. Then, among the x game teams, the virtual objects in the x-1 game teams other than the first game team can all be used as the second virtual object, and x is a positive integer.
[0082] Optionally, the first virtual object and the second virtual object are in a collaborative state, that is, the first virtual object and the second virtual object obtain the same game result in the game, and the first virtual object and the second virtual object belong to the same team. For example, the first virtual object belongs to the first game team, and the second virtual object is also in the first game team. The first virtual object can obtain virtual props owned by the virtual object belonging to the same game team. For the specific process of determining the second virtual object from the virtual environment according to the first operation, please refer to the following embodiment.
[0083] In some embodiments, the terminal device obtains a second virtual prop owned by the second virtual object in response to an operation on the first control, and uses the obtained second virtual prop as a virtual prop owned by the first virtual object.
[0084] In some embodiments, the second virtual prop refers to any virtual prop owned by the second virtual object. Optionally, the second virtual prop refers to all virtual props owned by the second virtual object. The all virtual props include the virtual props being used by the second virtual object and the virtual props in the backpack list of the second virtual object.
[0085] Optionally, the second virtual props refer to some virtual props owned by the second virtual object. For example, the second virtual props refer to virtual props of the consumable type owned by the second virtual object. For another example, the second virtual props refer to virtual props of the non-consumable type owned by the second virtual object. For another example, the second virtual props refer to virtual props in the backpack list of the second virtual object.
[0086] In some embodiments, assuming that the second virtual object has t second virtual props, t is a positive integer, the terminal device obtains the virtual props owned by the second virtual object, including: the terminal device copies the second virtual props owned by the second virtual object, and makes the first virtual object also have the t second virtual props. In this case, the first virtual object has t second virtual props, the second virtual object also has t second virtual props, and the first virtual object uses any one of the t second virtual props, which will not affect the t second virtual objects owned by the second virtual object.
[0087] In some other implementations, assuming that the second virtual object has s second virtual props, s is a positive integer, and the terminal device obtains the virtual props owned by the second virtual object, including: the terminal device obtains the second virtual props owned by the second virtual object, so that the first virtual object and the second virtual object share the s second virtual props. In this case, the first virtual object and the second virtual object jointly use the s second virtual props. That is, the first virtual object uses any second virtual prop a among the s second virtual props, which will cause the number of second virtual props a owned by the second virtual object to decrease.
[0088] In some embodiments, the terminal device replaces a first virtual prop in at least one virtual prop with a second virtual prop in response to an operation on a first control, including: the terminal device obtains at least one second virtual prop included in a backpack list of the second virtual object; the terminal device adjusts the backpack list of the first virtual object so that the backpack list of the first virtual object includes at least one second virtual prop included in the backpack list of the second virtual object; the terminal device obtains the second virtual prop being used by the second virtual object; and the terminal device replaces the first virtual prop being used by the first virtual object with the second virtual prop being used by the second virtual object.
[0089] Optionally, the terminal device determines the first display position corresponding to at least one first virtual prop, cancels the display of at least one first virtual prop, and displays at least one second virtual prop at a different first display position. For example, for any second virtual prop a among at least one second virtual prop, the terminal device determines the first virtual prop A from at least one first virtual prop; the terminal device displays the second virtual prop a at the first display position corresponding to the first virtual prop A; wherein the first virtual prop A and the second virtual prop a have the same prop attributes.
[0090] Optionally, the prop attributes are used to characterize the role of the virtual props. For example, the first virtual prop 1 and the second virtual prop 1 are both used to increase the life value of the virtual object, which means that the prop attributes of the first virtual prop 1 and the second virtual prop 1 are the same. For another example, the first virtual prop 2 and the second virtual prop 2 are both used to throw into the virtual environment to cause an explosion, which means that the prop attributes of the first virtual prop 2 and the second virtual prop 2 are the same. For another example, the first virtual prop 3 and the second virtual prop 3 both belong to improving the attributes of their core virtual props, which means that the prop attributes of the first virtual prop 3 and the second virtual prop 3 are the same; wherein the core virtual prop refers to the attack prop used by the virtual object, and the first virtual prop 3 and the second virtual prop 3 can be combined with the core virtual prop, that is, the first virtual prop 3 and the second virtual prop 3 are accessories of the core virtual prop.
[0091] By using the above method and using prop attributes, the display position of at least one second virtual prop in the user interface is determined, so that after the first operation is performed, the at least one second virtual prop is displayed at a position familiar to the user, making it convenient for the user to determine the second virtual prop that needs to be used from the at least one second virtual prop.
[0092] Moreover, for the situation where different virtual props correspond to different display sizes (for example, different virtual props occupy different numbers of backpack grids in the backpack), the terminal device refers to the display position of at least one first virtual prop to determine the display position of at least one second virtual prop. This avoids the situation where the second virtual prop cannot be fully displayed without redesigning the display position of at least one second virtual prop in the user interface. This method simplifies the processing logic of the terminal device during the first operation.
[0093] In some embodiments, the first operation has an effective period, and the effective period is used to characterize the effective duration of the first operation. After the terminal device responds to the operation on the first control, the effective period of the first operation begins to count. During the effective period of the first operation, the terminal device displays at least one second virtual prop in the user interface, and the first virtual object has at least one second virtual prop. After the effective period of the first operation ends, the first virtual object no longer has the above-mentioned at least one second virtual prop. It should be noted that the value of the effective period is set according to actual needs and is not limited in this application. For example, the effectiveness speed of the first operation is 5 seconds after the first virtual object starts the first operation.
[0094] Optionally, during the effective period of the first operation, the terminal device displays at least one second virtual prop and cancels the display of at least one first virtual prop, thereby replacing at least one first virtual prop with the second virtual prop. That is, during the effective period of the first operation, the first virtual prop is not displayed in the user interface, and the first virtual object cannot use any of the first virtual props.
[0095] Figure 5 It is a schematic diagram of a virtual prop replacement effect provided by an exemplary embodiment of the present application.
[0096] In the user interface 500 before the first virtual object performs the first operation, the first virtual object 501 is using a virtual prop 531, the first control 520 is in an available state, and the backpack list 510 displays the first virtual prop owned by the first virtual object. Optionally, the backpack grid 513 of the backpack list 510 is blank, and the number of virtual props 515 in the backpack list 510 is 1.
[0097] After the terminal device responds to the operation on the first control, the first virtual object 501 copies the second virtual prop owned by the second virtual object 502, and the second virtual prop is displayed in the backpack list 510 of the user interface 550, such as the second virtual prop 563 in Figure 550. Optionally, the virtual prop being used by the first virtual object 501 is switched from virtual prop 531 to virtual prop 533.
[0098] Step 230 : In response to the operation of using the second virtual prop, control the first virtual object to use the second virtual prop.
[0099] In some embodiments, after the terminal device replaces at least one first virtual prop with at least one second virtual prop, the terminal device controls the second virtual object to use the second virtual prop in response to an operation of using the second virtual prop.
[0100] In some embodiments, the operation of using the second virtual props includes but is not limited to at least one of the following: a click operation, a slide operation, a long press operation, a voice operation, a gesture operation, and a combination of at least one of the above operations. It should be noted that the operation of using the second virtual props is set according to the actual operation, and this application does not limit it here.
[0101] Optionally, the user interface includes at least one usage control corresponding to each of the second virtual props, and the terminal device controls the first virtual object to use the second virtual prop in the virtual environment in response to an operation on the usage control. For example, usage control 1 corresponds to second virtual prop 1, and the terminal device controls the first virtual object to use second virtual prop 1 in the virtual environment in response to a click operation on usage control 1.
[0102] Optionally, an attack control is displayed in the user interface, and when at least one second virtual prop includes a second virtual prop being used by the second virtual object, the terminal device controls the first virtual object to use the second virtual prop to perform an attack in response to an operation on the attack control.
[0103] In some embodiments, the operation of using the second virtual prop is related to the type of the second virtual prop. For example, if the second virtual prop is a virtual prop included in a backpack list, the terminal device controls the first virtual object to use the second virtual prop in response to the operation of using the second virtual prop, including: the terminal device displays the second virtual prop included in the backpack list in response to a click operation on the backpack list; the terminal device controls the first virtual object to use the second virtual prop in response to the operation on the second virtual prop in the backpack list.
[0104] It can be seen from the above that after the terminal device controls the first virtual object to perform the first operation in response to the operation on the first control, the first virtual object has at least one second virtual prop. During the effective period of the first operation, the first virtual object can use at least one second virtual prop. Optionally, the terminal device responds to the operation of using the second virtual prop and determines whether the operation of using the second virtual prop occurs during the effective period of the first operation; if the operation of using the second virtual prop occurs during the effective period of the first operation, the terminal device controls the first virtual object to use the second virtual prop; if the operation of using the second virtual prop does not occur during the effective period of the first operation, the terminal device cannot control the first virtual object to use the second virtual prop.
[0105] In some embodiments, after the terminal device controls the first virtual object to use the second virtual prop, the number of the second virtual props owned by the second virtual object changes. For example, the number of the second virtual props owned by the second virtual object decreases.
[0106] In other embodiments, after the terminal device controls the first virtual object to use the second virtual prop, the number of second virtual props owned by the second virtual object remains unchanged, which is equivalent to the first operation causing the first virtual object to copy the second virtual props owned by the second virtual object.
[0107] In summary, the user can obtain virtual props owned by other virtual objects by controlling the virtual object to perform corresponding operations. Compared with the related art, in which the virtual object can only randomly search for new virtual props in the virtual environment, the first virtual object controlled by the user in this method can obtain virtual props used by other virtual objects from other virtual objects in a targeted manner, reducing the control of the virtual object to blindly search for virtual props in the virtual environment, and enriching the method of obtaining virtual props.
[0108] Moreover, compared with the related art, each time a virtual object picks up a virtual prop from the virtual environment, the terminal device needs to send a notification message to the server to improve the real-time performance of the pickable virtual props and avoid a virtual prop being picked up by multiple users. In this method, after the virtual object controlled by the user performs relevant operations, it can obtain multiple virtual props owned by other virtual objects at one time, that is, the user only needs to perform one operation to obtain multiple virtual props. In other words, the terminal device only needs to communicate with the server once to realize that the virtual object controlled by the user has multiple virtual props, which helps to reduce the communication pressure on the terminal device and the server.
[0109] Furthermore, the present method can be used in combination with the method of randomly generating virtual props in a virtual environment in the related art. Since the present method reduces the number of virtual props that the server needs to randomly generate, it helps to reduce the server's maintenance of virtual props in the virtual environment and reduce the server's processing overhead.
[0110] The following describes the method for selecting the second virtual object through several embodiments.
[0111] As can be seen from the above embodiments, the second virtual object can be any virtual object in the virtual environment. In a game scene, both the first virtual object and the second virtual object can move in the virtual environment, and the relative position between the first virtual object and the second virtual object is not fixed. Even at different moments in the game, the virtual objects that appear in the viewing range of the first virtual object are not exactly the same.
[0112] Since the virtual environment of the game game includes multiple virtual objects, in order to make the second virtual object determined by the first operation a virtual object for which the user expects to obtain the virtual props he owns, so as to give full play to the potential of the first operation and enrich the operation method of the virtual object, the following provides multiple examples to introduce and illustrate the method of determining the second virtual object from the virtual environment.
[0113] Method 1:
[0114] In some embodiments, the method for controlling a virtual object further includes: in response to an operation on the first control, when any virtual object in the virtual environment is attacked and hit by the first virtual object, the terminal device determines the virtual object hit by the attack as the second virtual object.
[0115] In some embodiments, the virtual object being hit by the first virtual object means that the virtual object is hit by the attack operation performed by the first virtual object. Optionally, the attack operation of the first virtual object has an attack range, and the virtual object hit by the attack is located in the attack range of the attack operation.
[0116] For example, the attack operation is that the first virtual object launches a virtual prop to a first position in the virtual environment. If a virtual object is on the movement trajectory of the virtual prop and the effective area of the virtual object overlaps with the effective area of the virtual prop, it is determined that the virtual object is hit by the attack of the first virtual object.
[0117] In order to improve the prompt effect of the first virtual object performing the first operation process, during the process of the first virtual object performing the first operation, a first operation effect is displayed in the display screen of the virtual environment, and the first operation effect is used to represent that the first virtual object is performing the first operation.
[0118] In a game scenario, the attack operation of the first virtual object refers to the first virtual object emitting a mirror light into the virtual environment. If any virtual object in the virtual environment is illuminated by the emitted mirror light, then the any virtual object is determined as a virtual object hit by the first virtual object. In this scenario, the terminal device controls the first virtual object to emit a mirror light into the virtual environment in response to an operation on the first control; if any virtual object in the virtual environment is hit by the attack of the first virtual object (irradiated by the mirror light), the virtual object hit by the attack is determined as the second virtual object.
[0119] In some embodiments, the terminal device displays an operating prop in a display screen in response to an operation on a first control; wherein the operating prop is used to select a second virtual object in a virtual environment; the terminal device controls an attack target of the operating prop in the virtual environment in response to a direction adjustment operation on the operating prop; when any virtual object in the virtual environment is attacked and hit by the first virtual object, the terminal device determines the virtual object hit by the attack as the second virtual object.
[0120] Optionally, the operating prop is displayed during the process of the first virtual object performing the first operation, and is not displayed during the process of the first virtual object performing other operations. If the first operation is the ultimate skill of the first virtual object, the operating prop is called the ultimate skill prop of the first virtual object. For example, the first virtual object uses the operating prop to send a mirror ray to the virtual environment. If any virtual object in the virtual environment is targeted by the mirror ray, then the virtual object is the second virtual object hit by the attack of the first virtual object.
[0121] In some embodiments, the mirror light emitted by the operating prop used by the first virtual object into the virtual environment has a light volume; wherein the light volume is used to characterize the physical volume of the mirror light in the virtual environment. Optionally, the radius of the mirror light is N, and the range is L, where N is a positive integer and L is a positive integer. The range refers to the distance range between the mirror light and the operating prop used by the first virtual object (where the mirror light occurs).
[0122] Optionally, after the first virtual object uses the operating prop to emit a mirror ray into the virtual environment, the terminal device determines whether there is a second virtual object in the virtual environment that is hit by the attack through ray detection. The detection radius of the ray detection is the same as the radius of the mirror ray, the detection range of the ray detection is the same as the range direction of the mirror ray, and the direction of the ray detection is the same as the emission direction of the mirror ray. For example, the detection radius of the ray detection is equal to the radius N of the mirror ray, and the detection range of the ray detection is equal to the range L of the mirror ray.
[0123] If the ray detection determines that a virtual object collides with the mirror ray, the terminal device determines the virtual object as the second virtual object; if the ray detection does not detect that a virtual object collides with the mirror ray, the terminal device continues to perform ray detection. It should be noted that the process of performing ray detection can be performed by the terminal device or by the server. For example, when the server determines the second virtual object, the terminal device generates operation information based on the mirror ray emitted by the first virtual object; wherein the operation information includes: identification information of the user using the first terminal device, the emission time of the mirror ray, the emission direction of the mirror ray, etc.; the terminal device sends the operation information to the server, and the server performs ray detection based on the operation information and the display positions of other virtual objects in the game match stored by the server in the virtual environment, and determines the second virtual object from the virtual environment. When the server detects the second virtual object, the server determines the second virtual prop owned by the second virtual object, and sends the identification information of the second virtual prop and the identification information of the second virtual object to the terminal device.
[0124] Figure 6 is a schematic diagram of a second virtual object selection process provided by an exemplary embodiment of the present application.
[0125] In the user interface 600, the first control 620 is in an available state. The terminal device responds to the operation on the first control 620, controls the first virtual object 610 to use the operating prop 625 to emit a mirror light into the virtual environment, and the second virtual object 630 is hit by the mirror light emitted by the first virtual object 610. Optionally, the display effect of the user interface at this time is as shown in 650, and the operating prop 625 emits a light 655 to copy the second virtual prop owned by the second virtual object 630.
[0126] In some embodiments, the mirror light has an effective time in the virtual environment. If the mirror light does not illuminate any virtual object during the effective time, the terminal device controls the first virtual object to stop executing the first operation, that is, the first operation fails. In this case, the terminal device displays an operation failure prompt in the user interface, and the operation failure prompt is used to prompt that the first operation fails.
[0127] Determining the second virtual object from the virtual environment through the attack operation performed by the first virtual object helps to improve the accuracy of determining the second virtual object from the virtual environment, so that the virtual object hit by the attack has the virtual props that the user expects to obtain, which helps to exert the effect of the first operation in the game to change the situation of the game, help the first virtual object win the game, thereby shortening the duration of the game and reducing the energy consumption of the terminal device in the game.
[0128] In addition, this method also helps users experience a variety of virtual props during the game, enriching the gameplay of the game.
[0129] Method 2:
[0130] In some embodiments, the method for controlling a virtual object further includes: the terminal device determines, in response to an operation on the first control, an effective area of the first operation in the virtual environment; and the terminal device determines a second virtual object from virtual objects located in the effective area.
[0131] In some embodiments, the effective area of the first operation refers to the area where the first operation is applied in the virtual environment. Optionally, the effective area of the first operation is a geometric shape, for example, the effective area of the first operation is a circular area with a radius of R, where R is a positive integer. For another example, the effective area of the first operation is a square area with a side length of N, where N is a positive integer. The shape of the effective area of the first operation is determined according to actual needs, and this application does not limit it here.
[0132] In some embodiments, the effective area of the first operation can be determined by the following methods: determining the effective area of the first operation according to the display position of the first virtual object, and determining the effective area of the first operation according to the throwing destination of the virtual prop.
[0133] Optionally, the terminal device determines the display position of the effective area of the first operation in the virtual environment according to the display position of the first virtual object in the virtual environment. For example, the terminal device uses a circular area with a radius R and the first virtual object as the effective area of the first operation.
[0134] Furthermore, the effective area of the first operation can move with the first virtual object in the virtual environment. For example, after the effective area of the first operation is displayed in the virtual environment in response to the operation on the first control; the terminal device controls the first virtual object to move in the virtual environment in response to the movement control operation on the first virtual object; the terminal device controls the effective area of the first operation to move with the first virtual object in the virtual environment; the movement trajectory of the effective area of the first operation in the virtual environment is the same as the movement trajectory of the first virtual object in the virtual environment.
[0135] By determining the display position of the first virtual object in the virtual environment, the display position of the effective area of the first operation is determined, which helps to improve the user's control over the effective area of the first operation. In addition, the user can synchronously control the display position of the effective area of the first operation while controlling the display position of the first virtual object. This method helps to simplify user operations and reduce the operation information obtained by the terminal device, so that the processing pressure of the terminal device will not be excessively increased after the first operation is introduced.
[0136] Optionally, the terminal device displays a virtual prop in a display screen of the virtual environment in response to an operation on the first control; the terminal device controls the first virtual object to throw the virtual prop into the virtual environment in response to a throwing operation on the virtual prop; the terminal device determines a throwing destination of the virtual prop in the virtual environment, and uses the throwing target as the center point of the effective area of the first control.
[0137] In this case, the first virtual object can perform a first operation through a virtual prop, and the virtual prop refers to a throwing prop used to complete the first operation. Optionally, a direction control control is displayed on the user interface, and the throwing operation on the virtual prop includes: the terminal device determines the throwing direction of the virtual prop in response to the operation on the direction control control; the terminal device controls the first virtual object to throw the virtual prop in the throwing direction in response to the disappearance of the operation signal on the direction control control.
[0138] In some embodiments, after the virtual prop contacts the throwing destination in the virtual environment, the virtual prop begins to take effect; the terminal device uses the throwing destination as the center point of the effective area of the first operation. By throwing the virtual prop, determining the effective area of the first control improves the flexibility of setting the effective area in the virtual environment.
[0139] After determining the effective area of the first control, the terminal device determines the first virtual object from the effective area of the first control.
[0140] In some embodiments, the terminal device determines the second virtual object from the virtual objects located in the effective area, including: the terminal device determines the attribute information corresponding to each virtual object located in the effective area, and determines the virtual object whose attribute information meets the first condition as the second virtual object.
[0141] In some embodiments, each virtual object located within the effective area refers to a display position of the virtual object in the virtual environment, which overlaps with a display position of the effective area in the virtual environment.
[0142] Optionally, when the effective area includes one virtual object, the terminal device uses the virtual object as the second virtual object. When the effective area includes more than one virtual object, the terminal device selects at least one second virtual object from the more than one virtual objects.
[0143] Through the above method, a second virtual object is selected from the virtual objects included in the effective area, and the accuracy requirement for the user to control the first operation is relatively low, which helps to avoid invalid release of the first operation, helps the first virtual object to successfully obtain virtual props owned by other virtual objects, and helps the first virtual object controlled by the user to gain an advantage in the game, thereby speeding up the end of the game.
[0144] In some embodiments, the attribute information corresponding to the virtual object is used to characterize the level of the virtual props possessed by the virtual object; wherein, the level of the virtual props is used to characterize the effect of the virtual props in the game, the higher the level of the virtual props, the stronger the effect of the virtual props in the game; the lower the level of the virtual props, the weaker the effect of the virtual props in the game, and the effect of the virtual props refers to the attack attributes, movement attributes, etc. of the virtual props.
[0145] Optionally, in the case where a virtual object has multiple virtual props, the attribute information of the virtual object is used to represent the highest level of the virtual props possessed by the virtual object. For example, if a virtual object has 5 virtual props, the level of virtual prop 1 is level 1, the level of virtual prop 2 is level 2, the level of virtual prop 3 is level 1, the level of virtual prop 4 is level 1, and the level of virtual prop 5 is level 3, then the attribute information of the virtual object is used to represent that the highest level of the virtual props possessed by the virtual object is level 5.
[0146] Optionally, the attribute information of the virtual object is used to represent a comprehensive level obtained by weighted summation of at least one virtual prop owned by the virtual object; wherein, at least one virtual prop has unequal corresponding weights during the weighting process.
[0147] In some embodiments, the attribute information corresponding to the virtual object is used to characterize the degree of difference between the virtual props respectively possessed by the virtual object and the first virtual object. Optionally, the attribute information is used to characterize at least one of the following: the difference in quantity between the virtual props possessed by the virtual object and the virtual props possessed by the first virtual object, and the difference in level between the virtual props possessed by the virtual object and the virtual props possessed by the first virtual object.
[0148] For example, for a certain type of virtual props A, the first virtual object has 5 virtual props A, and the virtual object has 3 virtual props A. Then, for the virtual props A, the difference between the virtual props respectively possessed by the virtual object and the first virtual object is recorded as -2.
[0149] For another example, for a certain type of virtual prop B, the level of the virtual prop B possessed by the first virtual object is level 1, and the level of the virtual prop B possessed by the virtual object is level 4. Then, for the virtual prop B, the degree of difference between the virtual props B possessed by the virtual object and the first virtual object is recorded as +3.
[0150] Optionally, for a virtual prop C that is a consumable virtual prop, the terminal device determines the degree of difference corresponding to the virtual prop C based on the quantity difference between the virtual prop C possessed by the virtual object and the virtual prop C possessed by the first virtual object; for a virtual prop D that is a non-consumable virtual prop, the terminal device determines the degree of difference corresponding to the virtual prop D based on the level difference between the virtual prop D possessed by the virtual object and the virtual prop D possessed by the first virtual object.
[0151] In some embodiments, the terminal device calculates the attribute information of the virtual object according to the difference degrees corresponding to each virtual prop of the virtual object; wherein the virtual object refers to any virtual object in the effective area of the first operation. For example, the terminal device sums the difference degrees corresponding to each virtual prop to calculate the attribute information corresponding to the virtual object.
[0152] In some embodiments, the first condition refers to determining a selection condition for the second virtual object from the virtual objects included in the effective area according to the attribute information corresponding to the virtual object. Optionally, the first condition is used to select the virtual objects with the top n levels of virtual props from the virtual objects included in the effective area as the second virtual object, where n is a positive integer.
[0153] Optionally, the first condition is used to select, from the virtual objects included in the effective area, first n virtual objects having the greatest degree of difference from the virtual props possessed by the first virtual object as the second virtual objects, where n is a positive integer.
[0154] Optionally, the process of determining the second virtual object from the effective area of the first operation according to the attribute information can be performed by the terminal device or by the server. When the server determines the second virtual object, the terminal device sends the effective range of the first operation to the server; the server determines the attribute information corresponding to the virtual objects included in the effective range; the server uses the virtual object corresponding to the attribute information that satisfies the first condition as the second virtual object; the server determines the second virtual prop owned by the second virtual object, and sends the identification information of the second virtual prop to the terminal device; the terminal device determines the second virtual prop owned by the first virtual object after the first operation is performed according to the identification information of the second virtual prop; optionally, the terminal device displays the second virtual prop in the user interface.
[0155] In the case where the effective area of the first operation includes multiple virtual objects, the terminal device automatically selects the second virtual object from the multiple virtual objects in the effective area of the first operation, which helps to improve the speed of determining the second virtual object according to the first operation, speeds up the response speed of the terminal device to the operation on the first control, simplifies the user's process operation steps in determining the second virtual object, simplifies the steps of controlling the first virtual object to perform the first operation, reduces the accuracy requirement for the first operation, and reduces the difficulty of controlling the first virtual object to perform the first operation.
[0156] Method 3:
[0157] In some embodiments, the method for controlling a virtual object further includes: the terminal device determines, in response to an operation on the first control, an effective area of the first operation in the virtual environment; and the terminal device determines a second virtual object from virtual objects located in the effective area.
[0158] For an introduction to the effects of the effective area of the effective area of the first control, please refer to the relevant introduction in "Method 2", which will not be repeated here.
[0159] In some embodiments, the terminal device determines the second virtual object from the virtual objects located in the effective area, including: the terminal device displays identification information corresponding to each virtual object located in the effective area, and in response to a selection operation on the identification information, determines the virtual object corresponding to the selected identification information as the second virtual object.
[0160] In some embodiments, the identification information is used to uniquely characterize the identity of the virtual object. Optionally, the identification information includes but is not limited to at least one of the following: the name of the virtual object, the avatar identification of the virtual object, the account identification that controls the virtual object, and the team to which the virtual object belongs in the game.
[0161] In some embodiments, the selection operation for the identification information includes but is not limited to at least one of the following: a click operation, a slide operation, a long press operation, a voice operation, a gesture operation, etc. For example, the selection operation for the identification information is a click operation, and after receiving an operation signal of the click operation for the first identification information, the terminal device determines the virtual object having the first identification information as the second virtual object.
[0162] It should be noted that the selection operation for identification information is set according to actual needs, and this application makes limitations thereon.
[0163] In this way, the user selects the second virtual object from the effective area, ensuring that the first virtual object can obtain the virtual props that the user expects to experience from the second virtual object, which helps to enrich the method of obtaining virtual props.
[0164] In some embodiments, the virtual object attacked by the first virtual object or the virtual object included in the effective area of the first operation refers to a virtual object in a selectable state. In other words, if a virtual object is in an unselectable state, the virtual object in the unselectable state cannot be determined as the second virtual object.
[0165] Optionally, virtual objects in an unselectable state during a game match include at least one of the following: a virtual object that is unable to move (such as a virtual object whose health is below a lower limit, a virtual object that is in a knocked-down state), a virtual object in a virtual vehicle (such as a virtual object driving a virtual vehicle), a virtual object in a special motion state (such as a virtual object in a swimming state, a virtual object in a climbing state), etc.
[0166] Optionally, before determining the second virtual object, the terminal device (or the server) determines whether the virtual object hit by the attack of the first virtual object or the virtual object included in the effective area of the first operation is in an unselectable state.
[0167] In some embodiments, if the virtual object hit by the first virtual object attack is in a selectable state, the terminal device uses the virtual object hit by the first virtual object attack as the second virtual object; if the virtual object hit by the first virtual object attack is in an unselectable state, the terminal device displays an invalid operation mark, and the invalid operation mark is used to prompt that the first operation is invalid and the virtual props owned by the virtual object hit by the first virtual object attack cannot be obtained.
[0168] In some embodiments, if the virtual objects included in the effective area of the first operation include a virtual object in an unselectable state, the virtual object in an unselectable state cannot be determined as the second virtual object. For example, the terminal device does not obtain the attribute information of the virtual object in an unselectable state, or the terminal device does not display the identification information of the virtual object in an unselectable state.
[0169] Excluding virtual objects that are not selectable helps avoid abnormal situations during the first operation, so that the first operation can be carried out smoothly. Since the display positions of virtual objects that are not selectable, such as virtual objects in virtual vehicles, virtual objects in climbing states, and virtual objects in swimming states, are unstable in the virtual environment, excluding such virtual objects helps reduce the amount of calculation in the process of the terminal device or server determining the second virtual object.
[0170] In some implementations, after responding to the first operation, if the terminal device successfully determines the second virtual object from the virtual environment, the terminal device displays a successful operation prompt to prompt the user that the first operation is successfully completed. Optionally, the successful operation prompt includes but is not limited to at least one of the following: a text prompt, an icon prompt, a special effect prompt, etc. For example, the text prompt is "The second virtual prop owned by the second virtual object has been successfully obtained."
[0171] Figure 7 It is a schematic diagram of a successful operation prompt provided by an exemplary embodiment of the present application.
[0172] In the user interface 700 , an operation success prompt 720 is displayed in the perspective of the first virtual object 710 .
[0173] In some embodiments, an inventory is displayed in the user interface, and at least one virtual prop owned by a first virtual object is displayed in the inventory. The terminal device determines a second virtual object from the virtual environment in response to an operation on a first control; after successfully determining the second virtual object, the terminal device replaces the virtual prop owned by the first virtual object displayed in the inventory with a second virtual prop owned by the second virtual object; the terminal device plays a replacement effect at the display position of the inventory, and the replacement effect is used to prompt that the virtual props in the inventory are being replaced or have been replaced.
[0174] Optionally, the first operation has an effective period, and the terminal device displays the effective period in the user interface, and the effective period is used to identify the duration of the first operation. For example, the effective period is displayed in the form of a time bar, and when the time bar returns to zero or the time bar is equal to the duration, the first operation is invalid, and the first virtual object no longer has at least one second virtual prop; the terminal device cancels the display of the effective period in the user interface.
[0175] In some embodiments, after responding to the first operation, if the terminal device successfully determines the second virtual object from the virtual environment, the user interface of the terminal device used to control the second virtual object displays a prop stealing prompt; wherein the prop stealing prompt is used to notify the user controlling the second virtual object that the virtual prop owned by the second virtual object is acquired by the first virtual object. The prop stealing prompt includes but is not limited to at least one of the following: a text prompt, an icon prompt, a special effect prompt, etc. For example, the text prompt is "The first virtual object acquires the virtual prop owned by the second virtual object." By displaying the prop stealing prompt on the user interface of the terminal device used to control the second virtual object, other users are prompted that the second virtual prop owned by the second virtual object is acquired by the first virtual object, so that other users can take corresponding measures in time.
[0176] Figure 8 It is a schematic diagram of a prop stealing prompt provided by an exemplary embodiment of the present application.
[0177] In the user interface 800 , a prop stealing prompt 820 is displayed in the perspective of the second virtual object 810 .
[0178] In some embodiments, if the terminal device fails to successfully determine the second virtual object from the virtual environment, the terminal device displays an operation failure prompt; wherein the operation failure prompt is used to indicate that the first operation is invalid. The first virtual object still has at least one virtual prop, that is, the virtual prop owned by the first virtual object displayed in the user interface is not replaced by the second virtual prop. If the first operation fails, the second skill is cooled down again, or the first virtual object consumes the first prop again in order to re-perform the first operation. For the relevant content of the second skill and the second prop, please refer to the above embodiment, which will not be repeated here.
[0179] The following describes several embodiments to illustrate changes in the virtual props owned by the first virtual object during the continuation of the first operation.
[0180] In some embodiments, after the terminal device replaces a first virtual prop among at least one virtual prop with a second virtual prop, the method for controlling a virtual object further includes: within the effective period of the first operation, if the second virtual object performs an interactive behavior with respect to a third virtual prop, the terminal device adjusts at least one virtual prop owned by the first virtual object according to the interactive behavior.
[0181] In some embodiments, the third virtual props include the following two categories: virtual props that can be picked up in the virtual environment, and second virtual props owned by the second virtual object. In some embodiments, the interactive behavior can change the number or type of virtual props owned by the second virtual object. For the specific content of the third virtual props and interactive behavior, please refer to the following embodiments.
[0182] In some embodiments, during the effective period of the first operation, the interaction operation performed by the second virtual object on the third virtual prop will affect the virtual prop owned by the first virtual object. That is, in this embodiment, during the effective period of the first operation, if the virtual prop owned by the second virtual object changes, the change will also be synchronized to the virtual prop owned by the first virtual object.
[0183] Optionally, since the first operation is used to obtain the second virtual props owned by the second virtual object, during the effective period of the first operation, the number and type of virtual props owned by the first virtual object and the second virtual object are the same. In other words, the virtual props owned by the first virtual object are the second virtual props.
[0184] In some embodiments, the terminal device adjusts at least one virtual prop owned by the first virtual object, including: adding a third virtual prop to the at least one virtual prop owned by the first virtual object, or reducing the number of the third virtual props in the at least one virtual prop owned by the first virtual object. For specific content of this process, please refer to the embodiments below.
[0185] In some embodiments, the terminal device adjusts at least one virtual prop owned by the first virtual object according to the interactive behavior, which is accomplished by the following steps: the terminal device used to control the second virtual object uploads behavior information of the second virtual object to the server, and the behavior information is used to characterize the interactive behavior performed by the second virtual object; the server determines whether the current moment is in the effective period of the first operation. If the current moment is in the effective period of the first operation, the server generates prop update information based on the behavior information, and the prop update information is used to indicate which virtual props owned by the first virtual object have changed; the server sends prop update information to the terminal device, and the terminal device adjusts at least one virtual prop owned by the first virtual object according to the prop update information.
[0186] Through this method, the interactive behavior of the second virtual object affects the virtual props owned by the first virtual object. Compared with the related art in which a virtual object can only affect its own virtual props through exchange behavior, this method improves the richness of virtual prop usage methods.
[0187] The interactive behaviors include the following two categories: obtaining the third virtual props and discarding the third virtual props. The following describes the impact of these two types of interactive methods on virtual props.
[0188] In some embodiments, the terminal device adjusts at least one virtual prop owned by the first virtual object according to the interactive behavior, including: when the interactive behavior is to obtain the third virtual prop, the terminal device adds the third virtual prop to the at least one virtual prop owned by the first virtual object; wherein, after the effective period ends, the first virtual object no longer owns the third virtual prop; or, when the interactive behavior is to discard the third virtual prop, the terminal device discards the third virtual prop included in the at least one virtual prop owned by the first virtual object.
[0189] In some embodiments, the interactive behavior refers to obtaining a third virtual prop from the virtual environment. Optionally, the second virtual object picks up the third virtual prop from the virtual environment to complete the interactive behavior.
[0190] In some embodiments, when the interactive behavior is to obtain a third virtual prop, the terminal device adds the third virtual prop to at least one virtual prop owned by the first virtual object, including: the terminal device determines the number p of third virtual props obtained by the second virtual object, where p is a positive integer; the terminal device adds p third virtual props to at least one virtual prop owned by the first virtual object.
[0191] For example, when the second virtual object acquires three third virtual props, the terminal device adds three third virtual props to the virtual props owned by the first virtual object.
[0192] Optionally, after the terminal device adds the third virtual prop to at least one virtual prop owned by the first virtual object, the terminal device displays a new prop mark on the user interface, and the new prop mark is used to remind the user that the first virtual object owns the third virtual prop.
[0193] Optionally, the terminal device displays the third virtual prop in the user interface. For example, if the third virtual prop belongs to a virtual prop in the inventory, the terminal device displays the third virtual prop in the inventory. For another example, if the third virtual prop belongs to a virtual prop in the backpack list, if the backpack list is in a folded state, the terminal device displays a prop addition mark around the backpack list, and the terminal device displays the third virtual prop in the backpack list in response to an expansion operation on the backpack list.
[0194] In some embodiments, when the interaction behavior is discarding the third virtual prop, the third virtual prop refers to the second virtual prop owned by the second virtual object; the terminal device discards the third virtual prop included in the at least one virtual prop owned by the first virtual object.
[0195] In some embodiments, when the interactive behavior is to discard the third virtual prop, the terminal device discards the third virtual prop included in at least one virtual prop owned by the first virtual object, including: the terminal device determines the number q of third virtual props discarded by the second virtual object, q is a positive integer; the terminal device discards q third virtual props.
[0196] Since the first virtual object can use the second virtual props after acquiring the second virtual props owned by the second virtual object, when the second virtual props are not shared between the first virtual object and the second virtual object (please refer to the above embodiment for the specific content of this part), the number of second virtual props owned by the first virtual object and the number of second virtual props owned by the second virtual object are not equal; when the interaction behavior is to discard the third virtual props (that is, the third virtual props are any type of second virtual props), if the number of third virtual props discarded by the second virtual object is greater than the number of third virtual props owned by the first virtual object, the terminal device discards all the third virtual props.
[0197] For example, when the second virtual object discards 3 third virtual props, if the first virtual object has 6 third virtual props, the terminal device discards the 3 virtual props of the first virtual object; if the first virtual object has 2 third virtual props, the terminal device discards the two third virtual props of the first virtual object.
[0198] Fig. 9 is a flowchart of a method for controlling a virtual object provided by another exemplary embodiment of the present application. For example, the execution subject of the method may be Figure 1 The terminal device 10 in the implementation environment of the solution.
[0199] like Fig. 9 As shown, the method may include the following steps (910-940):
[0200] Step 910: Displaying a display screen of the virtual environment, at least one virtual prop owned by a first virtual object in the virtual environment, and a first control for controlling the first virtual object to perform a first operation in a user interface, wherein the first operation is used to obtain virtual props owned by other virtual objects in the virtual environment.
[0201] Step 920: In response to the operation on the first control, a first virtual prop in the at least one virtual prop is replaced with a second virtual prop, where the second virtual prop is a virtual prop owned by a second virtual object in the virtual environment.
[0202] Step 930: During the effective period of the first operation, if the second virtual object performs an interactive behavior with respect to the third virtual prop, at least one virtual prop owned by the first virtual object is adjusted according to the interactive behavior.
[0203] Step 930 includes any of the following sub-steps:
[0204] Sub-step 933, when the interactive behavior is to obtain the third virtual prop, add the third virtual prop to at least one virtual prop owned by the first virtual object; wherein after the effective period ends, the first virtual object no longer owns the third virtual prop.
[0205] Sub-step 936, when the interaction behavior is discarding the third virtual prop, discarding the third virtual prop included in the at least one virtual prop owned by the first virtual object.
[0206] Step 940: In response to the operation of using the second virtual prop, control the first virtual object to use the second virtual prop.
[0207] For the detailed introduction of each step in 910-940, please refer to the above embodiment, which will not be repeated here. It should be noted that the execution order of step 930 and step 940 can be swapped. For example, in another example, step 940 is executed before step 930.
[0208] Through the above method, during the effective period of the first operation, the second virtual props owned by the first virtual object and the second virtual props owned by the second virtual object are synchronized, which helps to alleviate the disadvantaged position of the second virtual object during the effective period of the first operation and helps to maintain the fairness of the game. In addition, since the discarding operation of the virtual props by the second virtual object will affect the virtual props owned by the first virtual object, this mechanism can reduce the maintenance pressure of the virtual props on the terminal device.
[0209] The following is an example to illustrate the operation method of virtual objects.
[0210] In this example, the first operation is performed through an operating prop, and the terminal device displays the operating prop in the user interface in response to the operation on the first control. In response to the control operation on the operating prop, the terminal device controls the first virtual object to use the operating prop to emit a mirror ray. When the mirror ray hits a virtual object in the virtual environment, the terminal device uses the virtual object as the second virtual object.
[0211] Assume that before the first virtual object performs the first operation, the first virtual object has 1 first virtual prop a and 2 first virtual props b; the second virtual object has 3 second virtual props a and 1 second virtual prop c; then after the terminal device determines the second virtual object, the first virtual object has 3 second virtual props a and 1 second virtual prop c. Optionally, during the effective period of the first operation, the user interface does not display 1 first virtual prop a and 2 first virtual props b, that is, during the effective period of the first operation, the first virtual object cannot use 1 first virtual prop a and 2 first virtual props b. Optionally, the first virtual props owned by the first virtual object include the attack props that the first virtual object is using, and the second virtual props include the attack props that the second virtual object is using.
[0212] During the effective period of the first operation, the user can control the first virtual object to use any one of the three second virtual props a and the one second virtual prop c.
[0213] The triggering process of the first skill is introduced and explained through several embodiments below.
[0214] In some embodiments, the first operation is also used to acquire skills possessed by other virtual objects in the virtual environment. The method for controlling virtual objects also includes: the terminal device displays a trigger control for a first skill in a user interface in response to an operation on the first control, and the first skill is a skill possessed by the second virtual object; the terminal device controls the first virtual object to execute the first skill in response to the operation on the trigger control for the first skill.
[0215] In some embodiments, the first operation is used to copy the second virtual props owned by the second virtual object and the first skill owned by the second virtual object. For example, the first operation is used to copy all virtual props owned by the second virtual object and obtain the ultimate skill owned by the second virtual object. During the effective period of the first operation, the second virtual object has the copied second virtual props and can use the ultimate skill owned by the second virtual object.
[0216] Optionally, the first skill is any one of the skills possessed by the second virtual object. The skills possessed by the virtual object are used to control the behavior of the virtual object in the virtual environment. For example, the first skill is the ultimate skill of at least one skill possessed by the second virtual object, that is, the first virtual object can obtain the second virtual props possessed by the second virtual object and the ultimate skill of the second virtual object by performing the first operation.
[0217] The effect of the first skill is set according to the game mechanism, and this application does not limit it here. For example, during the process of the virtual object performing the first skill, the movement speed of the virtual object increases. For another example, during the process of the virtual object performing the skill, the virtual object has an attack capability different from a normal attack, etc.
[0218] In some embodiments, the terminal device displays a trigger control for a first skill in a user interface in response to an operation on a first control, including: the terminal device determines a display position of the first control; the terminal device determines a display position of the trigger control for the first skill based on the display position of the first control; the terminal device displays the trigger control for the first skill at the display position of the trigger control for the first skill.
[0219] Optionally, the terminal device determines the display position of the trigger control of the first skill based on the display position of the first control, including: the terminal device uses the display position of the first control as the display position of the trigger control of the first skill, or the terminal device uses a position point that is a first distance away from the display position of the first control as the display position of the trigger control of the first skill.
[0220] Fig.10 It is a schematic diagram of control conversion provided by an exemplary embodiment of the present application.
[0221] The first control 1010 is displayed in the user interface, and the terminal device displays a trigger control 1020 of the first skill at the display position of the first control 1010 in response to the operation on the first control 1010 .
[0222] Optionally, the trigger control of the first skill displays identification information of the first skill. The identification information of the first skill is used to characterize the skill effect of the first skill. For example, the identification information is a skill icon of the first skill.
[0223] It should be noted that the display style and display position of the trigger control of the first skill are determined according to actual needs, and this application does not limit it here.
[0224] Since no other operations are required on the first control during the effective period of the first operation, displaying the trigger control of the first skill at the display position of the first control helps reduce the occlusion of the user interface caused by displaying the trigger control of the first skill.
[0225] In some embodiments, the first skill possessed by the second virtual object has a cooling time. Optionally, during the effective period of the first operation, the first virtual object can perform the first skill for a maximum skill usage number y at most, where y is a positive integer. For example, y is equal to 1.
[0226] Optionally, when y is equal to 1, the terminal device displays the trigger control of the first skill in the user interface in response to the operation on the first control, and the trigger control of the first skill is in a usable state; the terminal device controls the first virtual object to execute the first skill in response to the operation on the trigger control of the first skill; after the first virtual object executes the first skill, the trigger control of the first skill is changed to an unusable state.
[0227] Optionally, during the effective period of the first operation, if the number of times the first virtual object performs the first skill is equal to y, the terminal device cancels displaying the trigger control of the first skill to reduce the occlusion of the user interface by the trigger control of the first skill. In this case, the terminal device can redisplay the first control to replace the trigger control of the first skill displayed in the user interface.
[0228] In some embodiments, the first skill is related to the type of chip configured for the second virtual object. Optionally, the second virtual object has a functional chip configuration slot, and before the game starts, the terminal device used to control the second virtual object configures a second chip for the second virtual object based on the chip configuration operation; wherein the second chip is used to enable the second virtual object to perform the first skill, or to enable the second virtual object to use special virtual props in the game. In this case, the terminal device obtains the second chip configured for the second virtual object in response to the operation on the first control; the terminal device configures the second chip for the first virtual object so that the first virtual object can perform the first skill.
[0229] In some embodiments, the terminal device controls the first virtual object to perform the first skill in response to the operation of the trigger control for the first skill, including: the terminal device displays skill props in the display screen in response to the operation of the trigger control for the first skill, and controls the first virtual object to use the skill props to perform the first skill.
[0230] Fig.11 It is a schematic diagram of the first skill usage process provided by an exemplary embodiment of the present application.
[0231] In response to the operation of the trigger control 1120 for the first skill, the terminal device displays the skill prop 1130 in the display screen 1100 and controls the first virtual object 1110 to perform the first skill using the skill prop 1130 .
[0232] By copying the skills of the second virtual object through the first operation, the first virtual object can execute the skills of the second virtual object, which helps to enrich the gameplay in the game and enhance the user's interest in the game.
[0233] During the effective period of the first operation, the first virtual object can use the skills possessed by the second virtual object, so that the user can experience the skills of different virtual objects in the game, making the performance of the virtual object in the game more flexible. Acquiring a variety of first skills through the first operation and combining them with the first virtual object helps to increase the diversity of the first virtual object in the game, helps to generate a variety of gameplay, maintains the user's interest in the game, and thus helps to alleviate the pressure of designing new virtual objects.
[0234] The following describes a method for quickly obtaining personalized decorations through several embodiments.
[0235] In some embodiments, the control method of a virtual object further includes: when a second virtual prop owned by a second virtual object is configured with personalized decoration, if the first virtual object does not have personalized decoration, the terminal device displays a second control for obtaining personalized decoration; the terminal device controls the first virtual object to use virtual resources to redeem personalized decoration in response to an operation on the second control.
[0236] In some embodiments, personalized decoration can be understood as a map used to decorate virtual props. Optionally, personalized decoration is used to change the texture style of virtual props. Personalized decoration can be obtained through mall redemption or through task rewards, etc. This application does not limit the source of personalized decoration.
[0237] Optionally, the user can configure personalized decorations for the virtual props used by the virtual object controlled by the user. The personalized decorations configured for different virtual props are not completely the same, and the personalized decorations owned by different users are also not completely the same.
[0238] In some embodiments, virtual resources refer to game coins in the target application, and virtual resources are obtained through game rewards, etc. The names of virtual resources and other related information are determined according to the game design, and this application does not determine them here.
[0239] In some embodiments, the second control is used to quickly obtain personalized decorations in a game. Optionally, the terminal device displays identification information of the personalized decoration and virtual resources required to redeem the personalized decoration near the display position of the second control. The identification information of the personalized decoration includes at least one of the following: an icon of the personalized decoration, a name of the personalized decoration.
[0240] In some embodiments, after determining the second virtual object, the terminal device determines whether the second virtual prop is configured with personalized decoration and whether the first virtual object has the personalized decoration; if the second virtual prop is not configured with personalized decoration, the terminal device displays the original display effect of the second virtual prop in the user interface; if the second virtual prop is configured with personalized decoration and the first virtual object has the personalized decoration, the terminal device displays the second virtual prop with personalized decoration in the user interface; if the second virtual prop is configured with personalized decoration and the first virtual object does not have the personalized decoration, the terminal device displays a second control for obtaining personalized decoration.
[0241] In some embodiments, after the terminal device controls the first virtual object to use virtual resources to redeem personalized decorations in response to an operation on the second control, the terminal device also includes: the terminal device displays a second virtual prop with personalized decorations on the user interface.
[0242] Optionally, if the terminal device fails to obtain an operation signal for the second control operation, the terminal device determines that the first virtual object cannot have the second virtual prop with personalized decoration during the validation of the first operation.
[0243] This method provides a quick way to obtain personalized decorations, reduces the complexity of the operation of the user obtaining personalized decorations, and helps to simplify the operation of obtaining personalized decorations. Compared with the related art, users can only redeem personalized decorations from the virtual mall before or after the game starts. This method allows users to quickly obtain personalized decorations during the game, and users do not need to search for personalized decorations from the massive decorations in the virtual mall, which helps users quickly obtain their favorite personalized decorations, thereby reducing the interaction between users and the virtual mall, and helping to reduce the maintenance pressure of the server on the virtual mall.
[0244] Next, other functions of the first operation are introduced and explained through several embodiments.
[0245] In some embodiments, the control method of the virtual object also includes: within the effective period of the first operation, if the second virtual object uses a fourth virtual prop for the first virtual object, the terminal device adds the fourth virtual prop to at least one virtual prop owned by the first virtual object; wherein, after the effective period ends, the first virtual object continues to have the fourth virtual prop.
[0246] In some embodiments, the fourth virtual prop belongs to the second virtual prop owned by the second virtual object. Optionally, the second virtual object using the fourth virtual prop against the first virtual object means that the second virtual object uses the fourth virtual prop to attack the first virtual object. For example, the fourth virtual object is a throwing object. During the effective period of the first operation, the second virtual object throws the throwing object to the location of the first virtual object. If the throwing object passes through the sensing area of the first virtual object, the terminal device increases the number of such throwing objects owned by the first virtual object by one.
[0247] After the validity period of the first operation ends, the first virtual object can still use the fourth virtual item.
[0248] Through this mechanism, the first virtual object can gain props advantage when attacked during the effective period, which helps to reduce the number of virtual props used by the second virtual object on the first virtual object during the first operation, thereby reducing the damage to the first virtual object and helping to alleviate the processing pressure on the terminal device and the server.
[0249] In some embodiments, the terminal device replaces a first virtual prop in at least one virtual prop with a second virtual prop, including: the terminal device determines prop attributes corresponding to multiple virtual props owned by the second virtual object; the terminal device determines a second virtual prop from multiple virtual props based on the prop attributes of the first virtual prop and the prop attributes corresponding to the multiple virtual props; the terminal device replaces the first virtual prop with the second virtual prop.
[0250] In some embodiments, prop attributes are used to characterize the performance of virtual props. Optionally, the terminal device selects a virtual prop with better prop attributes from the first virtual prop and the virtual props owned by the second virtual object. If the prop attribute of the first virtual prop is better than the prop attribute of the same type of virtual prop owned by the second virtual object, the terminal device does not use the virtual prop owned by the second virtual object to replace the first virtual prop; if the prop attribute of the first virtual prop is worse than the prop attribute of the same type of virtual prop owned by the second virtual object; the terminal device does not use the virtual prop owned by the second virtual object to replace the first virtual prop.
[0251] In this way, it helps to reduce the number of first virtual props that need to be replaced during the first operation, helps to reduce the display pressure of the terminal device in the process of displaying the newly replaced second virtual props in the user interface, and avoids the first operation causing the terminal device to freeze.
[0252] Fig.12 It is a schematic diagram of a method for controlling a virtual object provided by an exemplary embodiment of the present application.
[0253] After the game starts, the terminal device displays a user interface and accumulates energy according to the behavior of the first virtual object. When the accumulated capacity is equal to the energy threshold, the terminal device determines that the first control is in a usable state.
[0254] In response to the operation on the first control, the terminal device controls the first virtual object to perform the first operation so as to obtain virtual props owned by other virtual objects in the virtual environment.
[0255] The terminal device controls the first virtual object to use the operating prop to generate a mirror ray to the virtual environment. If there is a virtual object hit by the mirror ray in the virtual environment, the virtual object is determined as the second virtual object.
[0256] The terminal device controls the first virtual object to possess the second virtual prop owned by the second virtual object.
[0257] In response to the operation of using the second virtual prop, the terminal device controls the first virtual object to use the second virtual prop. For the detailed introduction of each step of the above content, please refer to the above embodiment, which will not be repeated here.
[0258] Fig.13 It is a schematic diagram of the interaction between a terminal device and a server provided by an exemplary embodiment of the present application.
[0259] The virtual object control method provided in this application is executed by the server assisting the client in the terminal device, such as Fig.13 As shown, the process may include the following steps.
[0260] The client requests the server to control the first virtual object to perform a first operation.
[0261] Specifically, the client generates request information in response to the operation on the first control, and the request information includes: account information for controlling the first virtual object (i.e., identification information of the user using the terminal device), role information of the first virtual object, and information of the first operation (such as accumulated energy, cooling time of the first control). The client sends the request information to the server in the form of a data packet.
[0262] After receiving the request information, the server verifies through the role information of the first virtual object and the information of the first operation, etc., to determine whether it is legal for the first virtual object to perform the first operation. If the first operation is legal, the server sends reply data to the client, and the reply data is used to determine that the first virtual object can perform the first operation. Optionally, the server sends the request information to the client in the form of a data packet. If the first operation is illegal, the server sends reply data to the client, and the reply data is used to notify the first virtual object that it cannot currently perform the first operation.
[0263] Subsequently, the server continues to send operation details information to the client, wherein the operation details information includes: account information of the first virtual object, operation prop information, etc., so that the client can render and display the operation prop according to the operation information.
[0264] The client loads the operation prop model according to the operation detail information, loads the action file of the first operation, and displays the operation prop in the user interface.
[0265] The client sends object selection information to the server, and the object selection information is used to characterize the behavior of the first virtual object using the operating prop. For example, the object selection information includes the emission time of the mirror light, the emission direction of the mirror light, etc.
[0266] The server determines whether the first operation can successfully determine the second virtual object based on the object selection information and the display positions of other virtual objects stored in the server. If the first operation has a second virtual object, the server determines a second virtual item owned by the second virtual object.
[0267] The server notifies the client of the hit second virtual object, determines a second virtual prop owned by the second virtual object, and sends identification information of the second virtual prop owned by the second virtual object to the client.
[0268] The client displays the second virtual prop according to the notification of the server. Optionally, a special effect prompt is displayed in the inventory to prompt the user that the virtual prop owned by the first virtual object has been replaced.
[0269] The server counts the effective time period of the first operation.
[0270] After the validity period of the first operation ends, the server notifies the client that the validity period of the first operation ends and the first operation becomes invalid.
[0271] Through the above method, users can experience a variety of virtual props in the game, enriching the methods of obtaining virtual props.
[0272] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0273] Fig.14 A block diagram of a virtual object control device provided by an exemplary embodiment of the present application is shown. The device can be implemented as all or part of a terminal device through software, hardware, or a combination of both. The device 1400 may include: an interface display module 1410, a replacement display module 1420, and a prop use module 1430.
[0274] The interface display module 1410 is used to display a display screen of the virtual environment, at least one virtual prop owned by a first virtual object in the virtual environment, and a first control for controlling the first virtual object to perform a first operation, wherein the first operation is used to obtain virtual props owned by other virtual objects in the virtual environment.
[0275] The replacement display module 1420 is used to replace a first virtual prop in the at least one virtual prop with a second virtual prop in response to an operation on the first control, where the second virtual prop is a virtual prop owned by a second virtual object in the virtual environment.
[0276] The prop using module 1430 is used to control the first virtual object to use the second virtual prop in response to the operation of using the second virtual prop.
[0277] In some embodiments, the device 1400 further includes: an attack hit module, which is used to, in response to an operation on the first control, determine the virtual object hit by the attack as the second virtual object when any virtual object in the virtual environment is hit by the first virtual object.
[0278] In some embodiments, the device 1400 further includes: an area determination module, configured to determine, in response to an operation on the first control, an effective area of the first operation in the virtual environment; and to determine the second virtual object from virtual objects located in the effective area.
[0279] In some embodiments, the area determination module is used to determine the attribute information corresponding to each of the virtual objects located in the effective area, and determine the virtual object whose attribute information satisfies the first condition as the second virtual object; or, display the identification information corresponding to each of the virtual objects located in the effective area, and in response to a selection operation on the identification information, determine the virtual object corresponding to the selected identification information as the second virtual object.
[0280] In some embodiments, the device 1400 further includes: a prop adjustment module, configured to adjust at least one virtual prop owned by the first virtual object according to the interactive behavior if the second virtual object performs an interactive behavior with respect to a third virtual prop during the effective period of the first operation.
[0281] In some embodiments, the prop adjustment module is used to add the third virtual prop to at least one virtual prop owned by the first virtual object when the interactive behavior is to obtain the third virtual prop; wherein, after the effective period ends, the first virtual object no longer owns the third virtual prop; or, when the interactive behavior is to discard the third virtual prop, discard the third virtual prop included in at least one virtual prop owned by the first virtual object.
[0282] In some embodiments, the device 1400 also includes: a skill trigger module, which is used to display a trigger control of a first skill in the user interface in response to an operation on the first control, and the first skill is a skill possessed by the second virtual object; in response to the operation on the trigger control of the first skill, control the first virtual object to execute the first skill.
[0283] In some embodiments, the device 1400 also includes: a decoration acquisition module, which is used to display a second control for acquiring the personalized decoration when the second virtual prop owned by the second virtual object is configured with personalized decoration, if the first virtual object does not have the personalized decoration; and in response to the operation on the second control, control the first virtual object to use virtual resources to exchange the personalized decoration.
[0284] In some embodiments, the device 1400 also includes: a prop adding module, which is used to add the fourth virtual prop to at least one virtual prop owned by the first virtual object if the second virtual object uses a fourth virtual prop for the first virtual object during the effective period of the first operation; wherein, after the effective period ends, the first virtual object continues to own the fourth virtual prop.
[0285] In some embodiments, the replacement display module 1420 is used to determine prop attributes corresponding to multiple virtual props owned by the second virtual object; determine the second virtual prop from the multiple virtual props according to the prop attributes of the first virtual prop and the prop attributes corresponding to the multiple virtual props; and replace the first virtual prop with the second virtual prop.
[0286] It should be noted that the device provided in the above embodiment, when realizing its function, only uses the division of the above functional modules as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiment belongs to the same concept as the method embodiment. The specific implementation process is detailed in the method embodiment, which will not be repeated here. Please refer to the description of the method side embodiment for the beneficial effects of the device provided in the above embodiment, which will not be repeated here.
[0287] Fig.15 A structural block diagram of a terminal device provided by an exemplary embodiment of the present application is shown.
[0288] The terminal device 1500 may be an electronic device such as a mobile phone, a tablet computer, a game console, an e-book reader, a multimedia player, a wearable device, a PC, etc. The terminal device is used to implement the control method of the virtual object provided in the above embodiment. The terminal device may be Figure 1 The terminal device 10 is shown. Specifically:
[0289] Typically, the terminal device 1500 includes: a processor 1501 and a memory 1502 .
[0290] The processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0291] The memory 1502 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1502 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1502 stores a computer program, which is loaded and executed by the processor 1501 to implement the control method of the virtual object provided by the above-mentioned method embodiments.
[0292] In some embodiments, the terminal device 1500 may further optionally include: a peripheral device interface 1503 and at least one peripheral device. The processor 1501, the memory 1502 and the peripheral device interface 1503 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1503 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1504, a display screen 1505, an audio circuit 1506 and a power supply 1507.
[0293] Those skilled in the art will understand that Fig.15 The structure shown in the figure does not constitute a limitation on the terminal 1500, and the terminal 1500 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0294] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the virtual object control method provided by the above-mentioned method embodiments.
[0295] The computer readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer readable instructions, data structures, program modules or other data. Computer storage media include RAM (Random Access Memory), ROM (Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other solid-state storage technology, DVD (Digital Video Disc) or other optical storage, cassettes, magnetic tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will know that the computer storage medium is not limited to the above-mentioned ones.
[0296] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. A processor reads and executes the computer program from the computer-readable storage medium to implement the control method for manipulating a virtual object provided in the above-mentioned method embodiments.
[0297] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0298] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent switching, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for controlling a virtual object, characterized in that: The method comprises: Displaying in a user interface a display screen of a virtual environment, at least one virtual prop owned by a first virtual object in the virtual environment, and a first control for controlling the first virtual object to perform a first operation, wherein the first operation is used to obtain virtual props owned by other virtual objects in the virtual environment; In response to an operation on the first control, replacing a first virtual prop in the at least one virtual prop with a second virtual prop, where the second virtual prop is a virtual prop owned by a second virtual object in the virtual environment; In response to the operation of using the second virtual prop, the first virtual object is controlled to use the second virtual prop.
2. The method according to claim 1, characterized in that The method further comprises: In response to an operation on the first control, when any virtual object in the virtual environment is attacked and hit by the first virtual object, the virtual object hit by the attack is determined as the second virtual object.
3. The method according to claim 1, characterized in that The method further comprises: In response to an operation on the first control, determining, in the virtual environment, a valid area of the first operation; The second virtual object is determined from virtual objects located in the effective area.
4. The method according to claim 3, characterized in that: The step of determining the second virtual object from the virtual objects located in the effective area includes: Determine the attribute information corresponding to each of the virtual objects located in the effective area, and determine the virtual object whose attribute information satisfies the first condition as the second virtual object; or, The identification information corresponding to each of the virtual objects located in the effective area is displayed, and in response to a selection operation on the identification information, the virtual object corresponding to the selected identification information is determined as the second virtual object.
5. The method according to claim 1, characterized in that: After replacing the first virtual prop in the at least one virtual prop with the second virtual prop, the method further includes: During the effective period of the first operation, if the second virtual object performs an interactive behavior on a third virtual prop, at least one virtual prop owned by the first virtual object is adjusted according to the interactive behavior.
6. The method according to claim 5, characterized in that The adjusting at least one virtual prop owned by the first virtual object according to the interactive behavior includes: In the case where the interactive behavior is to obtain the third virtual prop, adding the third virtual prop to at least one virtual prop owned by the first virtual object; wherein after the effective period ends, the first virtual object no longer owns the third virtual prop; or, In a case where the interactive behavior is discarding the third virtual prop, the third virtual prop included in the at least one virtual prop owned by the first virtual object is discarded.
7. The method according to claim 1, characterized in that The first operation is also used to obtain skills possessed by other virtual objects in the virtual environment. The method further includes: In response to an operation on the first control, displaying a trigger control of a first skill in the user interface, where the first skill is a skill possessed by the second virtual object; In response to an operation of a trigger control for the first skill, the first virtual object is controlled to perform the first skill.
8. The method according to claim 1, characterized in that The method further comprises: In the case where the second virtual prop owned by the second virtual object is configured with personalized decoration, if the first virtual object does not have the personalized decoration, displaying a second control for obtaining the personalized decoration; In response to an operation on the second control, the first virtual object is controlled to exchange the personalized decoration with virtual resources.
9. The method according to claim 1, characterized in that: The method further comprises: During the effective period of the first operation, if the second virtual object uses a fourth virtual prop for the first virtual object, the fourth virtual prop is added to at least one virtual prop owned by the first virtual object; wherein, after the effective period ends, the first virtual object continues to own the fourth virtual prop.
10. The method according to claim 1, characterized in that The replacing the first virtual prop in the at least one virtual prop with the second virtual prop comprises: Determining prop attributes corresponding to the plurality of virtual props owned by the second virtual object; Determining the second virtual prop from the multiple virtual props according to the prop attribute of the first virtual prop and the prop attributes respectively corresponding to the multiple virtual props; The first virtual prop is replaced by the second virtual prop.
11. A control device for a virtual object, characterized in that: The device comprises: An interface display module, configured to display in a user interface a display screen of a virtual environment, at least one virtual prop owned by a first virtual object in the virtual environment, and a first control for controlling the first virtual object to perform a first operation, wherein the first operation is used to obtain virtual props owned by other virtual objects in the virtual environment; a replacement display module, configured to replace a first virtual prop in the at least one virtual prop with a second virtual prop in response to an operation on the first control, wherein the second virtual prop is a virtual prop owned by a second virtual object in the virtual environment; The prop using module is used to control the first virtual object to use the second virtual prop in response to the operation of using the second virtual prop.
12. A terminal device, characterized in that: The terminal device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the control method of the virtual object according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, which is loaded and executed by a processor to implement the method for controlling a virtual object according to any one of claims 1 to 10.
14. A computer program product, characterized in that The computer program product comprises a computer program, the computer program is stored in a computer-readable storage medium, and a processor reads and executes the computer program from the computer-readable storage medium to implement the method for controlling a virtual object according to any one of claims 1 to 10.
