Virtual object control method and device, equipment, storage medium and program product

By allowing virtual objects to switch camps in the virtual scene and continue to participate in interactive games, the problems of low interaction flexibility and low efficiency in the existing technology are solved, and more efficient resource utilization and user experience are achieved.

CN118615710APending Publication Date: 2024-09-10TENCENT TECH SHANGHAI
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310215799.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing technology, the alignment of virtual objects in the virtual scene is fixed, resulting in low interaction flexibility, and changing alignment requires multiple human-computer interaction operations, which is inefficient and wastes equipment resources.

Method used

In interactive scenarios that support multiple virtual camps, virtual objects can switch camps and achieve camp changes through resource collection operations, allowing virtual objects to belong to multiple camps and switch camps when specific conditions are met to continue participating in interactive games.

Benefits of technology

It improves the interactive flexibility and experience of virtual scenes, reduces human-computer interaction, and improves the utilization of device processing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118615710A
    Figure CN118615710A
Patent Text Reader

Abstract

The invention provides a virtual object control method and device, equipment, a storage medium and a program product. The method comprises the steps that in a virtual scene supporting a plurality of virtual camps to conduct interactive game, a first virtual object participating in the interactive game and multiple types of virtual resources to be collected are displayed, and the first virtual object belongs to a first virtual camp; in response to a resource collection instruction aiming at the first virtual object, controlling the first virtual object to execute resource collection operation aiming at various types of virtual resources; based on the virtual resources collected by the resource collection operation, when the first virtual object has a second type of virtual resources, and the camp affiliation condition of a second virtual camp corresponding to the second type is met, controlling the first virtual object to be switched from the first virtual camp to the second virtual camp; according to the invention, the interaction flexibility of the virtual scene can be improved, and the man-machine interaction efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of virtualization and human-computer interaction, and in particular to a control method, device, equipment, storage medium and program product of a virtual object. Background Art

[0002] Display technology based on graphics processing hardware has expanded the channels for perceiving the environment and obtaining information, especially multimedia technology for virtual scenes. With the help of human-computer interaction engine technology, it can realize diversified interactions between virtual objects controlled by users or artificial intelligence according to actual application needs. It has various typical application scenarios. For example, in game scenarios, it can simulate the real interaction process between virtual objects.

[0003] In the related art, for the virtual camp to which the virtual object in the virtual scene belongs, once the interactive game of the virtual scene begins, the virtual camp to which the virtual object belongs is fixed, resulting in low interactive flexibility of the virtual scene; and if the virtual camp to which the virtual object belongs is changed, it is necessary to exit the current interactive game, and then perform multiple human-computer interaction operations such as selecting and setting the belonging camp to be changed, resulting in low human-computer interaction efficiency and waste of device processing resources. Summary of the invention

[0004] The embodiments of the present application provide a control method, device, electronic device, computer-readable storage medium and computer program product for a virtual object, which 1) can increase the interactive flexibility of a virtual scene, improve the experience of participants in the virtual scene and stimulate the participants' sense of strategy; and 2) can improve the efficiency of human-computer interaction and the utilization rate of device processing resources.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] The present application provides a method for controlling a virtual object, including:

[0007] In a virtual scene supporting multiple virtual camps to play interactive games, displaying a first virtual object participating in the interactive game and multiple types of virtual resources to be collected;

[0008] Each of the virtual camps corresponds to a type of the virtual resource, and the first virtual object belongs to a first virtual camp corresponding to the first type among the multiple virtual camps;

[0009] In response to a resource collection instruction for the first virtual object, controlling the first virtual object to perform a resource collection operation for the multiple types of virtual resources;

[0010] Based on the virtual resources collected by the resource collection operation, when the second type of virtual resources owned by the first virtual object satisfies the camp belonging condition of the second virtual camp corresponding to the second type,

[0011] The first virtual object is controlled to switch from belonging to the first virtual camp to belonging to the second virtual camp, and the first virtual object belonging to the second virtual camp is controlled to continue to participate in the interactive game.

[0012] The present application also provides a virtual object control device, including:

[0013] A display module, for displaying, in a virtual scene supporting multiple virtual camps to perform interactive games, a first virtual object participating in the interactive game and multiple types of virtual resources to be collected;

[0014] Each of the virtual camps corresponds to a type of the virtual resource, and the first virtual object belongs to a first virtual camp corresponding to the first type among the multiple virtual camps;

[0015] A first control module, configured to control the first virtual object to perform a resource collection operation on the multiple types of virtual resources in response to a resource collection instruction on the first virtual object;

[0016] A second control module is used to control the first virtual object to switch from belonging to the first virtual camp to belonging to the second virtual camp based on the virtual resources collected by the resource collection operation, when the second type of virtual resources owned by the first virtual object satisfies the camp belonging condition of the second virtual camp corresponding to the second type, and control the first virtual object belonging to the second virtual camp to continue to participate in the interactive game.

[0017] In the above scheme, the virtual scene includes multiple participating first virtual objects, and the multiple participating first virtual objects include the first virtual object. The display module is also used to display the duration of the interactive game; when the duration of the game does not reach the duration threshold, the resource amount of virtual resources owned by each of the participating virtual objects is detected; when there is a target participating virtual object among the multiple participating virtual objects and the resource amount of virtual resources owned by it reaches the resource amount threshold, the interactive game is ended and the interaction result of the interactive game is displayed, and the interaction result is used to indicate the ownership status of each of the participating first virtual objects of the virtual resources.

[0018] In the above scheme, the display module is also used to display the maintenance time of the state in which the resource amount reaches the resource amount threshold when the resource amount of a target participating virtual object among the multiple participating virtual objects reaches the resource amount threshold; when the maintenance time reaches the maintenance time threshold, end the interactive game.

[0019] In the above scheme, the display module is also used to display a first notification message and display a countdown starting from the maintenance duration threshold to represent the remaining duration of the interactive game; wherein, when the maintenance duration reaches the maintenance duration threshold, the remaining duration is reset to zero; wherein, the first notification message is used to notify the target participating virtual object that the amount of virtual resources owned by the virtual object has reached the resource amount threshold.

[0020] In the above scheme, when the resource amount of virtual resources owned by the first virtual object reaches the resource amount threshold, the first virtual object wins the interactive game; the display module is also used to display the resource amount of virtual resources owned by the first virtual object; when the resource amount reaches the stage resource amount threshold, a second notification message is broadcast in the virtual scene; wherein the second notification message is used to notify that the resource amount of virtual resources owned by the first virtual object has reached the stage resource amount threshold, the first virtual object is about to win the interactive game, and the stage resource amount threshold is lower than the resource amount threshold.

[0021] In the above scheme, when the first virtual object has multiple types of virtual resources, the display module is also used to display the type resource quantity of the virtual resource of each type owned by the first virtual object through the resource quantity display style corresponding to the type.

[0022] In the above scheme, the display module is also used to display the first virtual object participating in the interactive game, and for each of the multiple types, use the resource display style corresponding to the type to display the virtual resources of the type.

[0023] In the above scheme, the second control module is also used to control the first virtual object belonging to the second virtual camp to interact with the second virtual object in the target virtual camp, the target virtual camp is a virtual camp different from the second virtual camp among the multiple virtual camps, and the target virtual camp and the second virtual camp are in confrontation with each other; when the interaction between the first virtual object and the second virtual object reduces the life attribute value of the first virtual object, and the life attribute value of the first virtual object is lower than the attribute value threshold or is zero, the second control module is also used to select virtual resources of the target amount from the virtual resources owned by the first virtual object and put them back into the virtual scene.

[0024] In the above scheme, the second control module is also used to determine the first resource amount of the second type of virtual resources owned by the first virtual object; when the first resource amount reaches the target resource amount, the virtual resources of the target resource amount are selected from the second type of virtual resources owned by the first virtual object and put back into the virtual scene; when the first resource amount does not reach the target resource amount, the second type of virtual resources owned by the first virtual object are put back into the virtual scene, and the virtual resources of the second resource amount are selected from the non-second type of virtual resources owned by the first virtual object and put back into the virtual scene, and the sum of the second resource amount and the first resource amount is equal to the target resource amount.

[0025] In the above scheme, the display module is also used to cancel the display of the first virtual object after selecting virtual resources of a target amount from the virtual resources owned by the first virtual object and putting them back into the virtual scene, when the amount of virtual resources owned by the first virtual object is lower than a resource amount threshold or returns to zero; the display module is also used to display a regenerated new first virtual object, and the new first virtual object and the first virtual object correspond to the same account added to the virtual scene.

[0026] In the above scheme, when the interaction between the first virtual object and the second virtual object reduces the life attribute value of the second virtual object, and the life attribute value of the second virtual object is lower than the attribute value threshold or returns to zero, the second control module is also used to control the first virtual object to collect target virtual resources from the virtual resources owned by the second virtual object and put them back into the virtual scene.

[0027] In the above solution, when the life attribute value of the first virtual object does not reach the life attribute value threshold, the second control module is further used to control the life attribute value of the first virtual object to increase to a target life attribute value.

[0028] In the above scheme, the display module is also used to respond to an entry instruction for the virtual scene, randomly determine an object type from M object types of virtual objects as the target object type, and M is an integer greater than 1; in a virtual scene that supports multiple virtual camps to conduct interactive games, display a first virtual object of the target object type participating in the interactive game.

[0029] In the above scheme, when there are N candidate object types among the M object types that have not been used by the first virtual object in historical interactive games, N is less than M, and N is an integer greater than 1; the display module is also used to randomly determine a candidate object type from the N candidate object types as the target object type.

[0030] In the above scheme, the display module is also used to display the first virtual object participating in the interactive game and the multiple types of virtual resources of the target resource quantity; the display module is also used to update the resource quantity of the virtual resources to be collected in the virtual scene according to the preset update cycle and the resource update quantity of each preset update cycle.

[0031] In the above scheme, the second control module is also used to determine the second type of virtual resources owned by the first virtual object when the resource attribute value of the second type of virtual resources owned by the first virtual object is higher than the resource attribute value of each non-second type virtual resource owned by the first virtual object, so that the camp affiliation condition of the second virtual camp corresponding to the second type is met.

[0032] The present application also provides an electronic device, including:

[0033] A memory for storing computer executable instructions;

[0034] The processor is used to implement the virtual object control method provided in the embodiment of the present application when executing the computer executable instructions stored in the memory.

[0035] The embodiment of the present application also provides a computer-readable storage medium storing computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the virtual object control method provided in the embodiment of the present application is implemented.

[0036] The embodiment of the present application also provides a computer program product, including computer executable instructions or a computer program, which, when executed by a processor, implements the virtual object control method provided in the embodiment of the present application.

[0037] The embodiments of the present application have the following beneficial effects:

[0038] By using the above embodiment of the present application, in a virtual scene supporting multiple virtual camps to perform interactive games, a first virtual object participating in the interactive game and multiple types of virtual resources to be collected are displayed, and the first virtual object belongs to the first virtual camp corresponding to the first type in the multiple virtual camps; when a resource collection instruction for the first virtual object is received, the first virtual object is controlled to perform a resource collection operation for multiple types of virtual resources; based on the virtual resources collected by the resource collection operation, when the second type of virtual resources owned by the first virtual object satisfies the camp belonging condition of the second virtual camp corresponding to the second type, the first virtual object is controlled to switch from belonging to the first virtual camp to belonging to the second virtual camp, and the first virtual object belonging to the second virtual camp is controlled to continue to participate in the interactive game. In this way, by collecting multiple types of virtual resources provided in the virtual scene, the switching of the virtual camp to which the first virtual object belongs can be realized in the process of the interactive game of multiple virtual camps, which increases the interactive flexibility of the virtual scene, thereby improving the experience of the participants of the virtual scene for the virtual scene and stimulating the strategic sense of the participants; at the same time, it can be achieved only by executing the resource collection operation, reducing human-computer interaction operations, improving human-computer interaction efficiency and the utilization rate of device processing resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1A is a schematic diagram of an application mode of a virtual object control method provided in an embodiment of the present application;

[0040] Figure 1B is a schematic diagram of an application mode of a virtual object control method provided in an embodiment of the present application;

[0041] Figure 2 is a structural diagram of an electronic device 500 for implementing a virtual object control method provided in an embodiment of the present application;

[0042] Figure 3 is a flowchart of a method for controlling a virtual object provided in an embodiment of the present application;

[0043] Figure 4 is a display schematic diagram of a virtual scene provided in an embodiment of the present application;

[0044] Figure 5 is a schematic diagram of entering a virtual scene provided in an embodiment of the present application;

[0045] Figure 6 is a schematic diagram of switching the virtual camp to which the first virtual object belongs provided in an embodiment of the present application;

[0046] Figure 7 is a schematic diagram of displaying a second notification message provided in an embodiment of the present application;

[0047] Figure 8 This is a schematic diagram showing the display of the first notification message and the remaining duration provided in an embodiment of the present application;

[0048] Fig. 9 is a display schematic diagram of the interaction end interface provided in an embodiment of the present application;

[0049] Figure 10A-10E It is a configuration diagram of a virtual object control method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0051] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0052] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0054] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0055] 1) Client: an application running in the terminal to provide various services, such as a client that supports virtual scenes (such as a game client).

[0056] 2) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order of execution of the multiple operations executed.

[0057] 3) Virtual scene is a virtual scene displayed (or provided) when the application is running on the terminal. The virtual scene can be a simulation of the real world, a semi-simulation and semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene can be any of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene.

[0058] For example, the virtual scene may include the sky, land, ocean, etc., and the land may include environmental elements such as deserts and cities. The user may control the virtual object to perform activities in the virtual scene, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing. The virtual scene may be displayed from a first-person perspective (for example, the user plays the role of a virtual object in the game from his own perspective); it may also be displayed from a third-person perspective (for example, the user chases the virtual object in the game to play the game); it may also be displayed from a bird's-eye view perspective, and the above perspectives may be switched arbitrarily.

[0059] 4) Virtual objects, images of various people and objects that can interact in a virtual scene, or movable objects in a virtual scene. The movable objects can be virtual characters, virtual animals, cartoon characters, etc., such as people, animals, plants, oil drums, walls, stones, etc. displayed in a virtual scene. The virtual object can be a virtual image in the virtual scene that represents the user. A virtual scene can include multiple virtual objects, each of which has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene.

[0060] For example, the virtual object may be a user character controlled by an operation on the client, an artificial intelligence (AI) trained to fight in a virtual scene, or a non-player character (NPC) set in an interactive virtual scene. The number of virtual objects participating in the interaction in the virtual scene may be preset or dynamically determined according to the number of clients participating in the interaction.

[0061] 5) Scene data, which represents the characteristic data of the virtual scene, for example, the position of the virtual object in the virtual scene, the position of the virtual building in the virtual scene, and the area occupied by the virtual building, etc. Of course, different types of characteristic data may be included according to the type of virtual scene; for example, in the virtual scene of the game, the scene data may include the waiting time required for various functions configured in the game (depending on the number of times the same function can be used within a specific time), and may also represent the attribute values ​​of various states of the game character, for example, health value (also called red volume), magic value (also called blue volume), status value, blood volume, etc.

[0062] 6) Virtual resources: various real or fictional objects in virtual scenes that can be collected by users (such as players) by controlling virtual objects, such as virtual gold coins, virtual plants (such as flowers, grass, mushrooms), virtual fruits (such as apples, oranges), etc.

[0063] The embodiments of the present application provide a control method, device, electronic device, computer-readable storage medium and computer program product for a virtual object, which 1) can increase the interactive flexibility of a virtual scene, improve the experience of participants in the virtual scene and stimulate their sense of strategy; 2) can improve the efficiency of human-computer interaction and the utilization rate of device processing resources. The following will explain them separately.

[0064] It should be noted that when the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0065] To facilitate easier understanding of the virtual object control method provided in the embodiments of the present application, an exemplary implementation scenario of the virtual object control method provided in the embodiments of the present application is described below. The virtual scene in the virtual object control method provided in the embodiments of the present application can be completely based on the terminal device output, or based on the collaborative output of the terminal device and the server.

[0066] In some embodiments, the virtual scene can be an environment for game characters to interact. For example, it can be an environment for game characters to fight in the virtual scene. By controlling the actions of virtual objects, both parties can interact in the virtual scene, allowing users to experience the virtual scene in the game.

[0067] In one implementation scenario, see Figure 1A , Figure 1AIt is a schematic diagram of the application mode of the control method of the virtual object provided in the embodiment of the present application, which is applicable to some application modes that completely rely on the computing power of the terminal 400 to complete the relevant data calculation of the virtual scene 100, such as stand-alone / offline mode games, and the output of the virtual scene is completed through the terminal 400 such as a smart phone, a tablet computer and a virtual reality / augmented reality device. When forming the visual perception of the virtual scene 100, the terminal 400 calculates the data required for display through the graphics computing hardware, and completes the loading, parsing and rendering of the display data, and the graphics output hardware outputs the video frame that can form the visual perception of the virtual scene, for example, presenting a two-dimensional video frame on the display screen of a smart phone, or projecting a video frame on the lenses of augmented reality / virtual reality glasses to achieve a three-dimensional display effect; in addition, in order to enrich the perception effect, the device can also use different hardware to form one or more of auditory perception, tactile perception, motion perception and taste perception.

[0068] As an example, the terminal 400 runs a client (e.g., a stand-alone game client), and during the operation of the client, a virtual scene is output based on scene data of the virtual scene, where the virtual scene is an environment for game characters to interact, such as a plain, street, valley, etc. for game characters to fight against each other; after outputting a virtual scene that supports multiple virtual camps to conduct interactive games, a first virtual object participating in the interactive game and multiple types of virtual resources to be collected can also be displayed in the virtual scene, where the first virtual object belongs to a first virtual camp corresponding to a first type among multiple virtual camps; when the terminal 400 receives a resource collection instruction for the first virtual object, in response to the resource collection instruction, the first virtual object is controlled to perform a resource collection operation for multiple types of virtual resources; based on the virtual resources collected by the resource collection operation, when the second type of virtual resources owned by the first virtual object satisfies the camp affiliation condition of the second virtual camp corresponding to the second type, the first virtual object is controlled to switch from belonging to the first virtual camp to belonging to the second virtual camp, and the first virtual object belonging to the second virtual camp is controlled to continue to participate in the interactive game.

[0069] In another implementation scenario, see Figure 1B , Figure 1B1 is a schematic diagram of an application mode of a control method for a virtual object provided in an embodiment of the present application, which is applied to a terminal 400 and a server 200. Generally, it is applicable to an application mode that relies on the computing power of the server 200 to complete the calculation of a virtual scene and outputs the virtual scene at the terminal 400. Taking the visual perception of a virtual scene 100 as an example, the server 200 calculates the display data related to the virtual scene and sends it to the terminal 400. The terminal 400 relies on the graphics computing hardware to complete the loading, parsing and rendering of the display data, and relies on the graphics output hardware to output the virtual scene to form a visual perception. For example, a two-dimensional video frame can be presented on the display screen of a smartphone, or a video frame that realizes a three-dimensional display effect can be projected on the lenses of augmented reality / virtual reality glasses. For the perception of the form of the virtual scene, it can be understood that the corresponding hardware output of the terminal can be used, such as using a microphone output to form an auditory perception, using a vibrator output to form a tactile perception, and so on.

[0070] As an example, the terminal 400 runs a client (e.g., a network version of a game client), obtains scene data of a virtual scene by connecting to a game server (i.e., server 200), and outputs a virtual scene based on the obtained scene data, so as to interact with other users in the virtual scene. After outputting a virtual scene that supports multiple virtual camps for interactive games, the terminal 400 can also display a first virtual object participating in the interactive game and multiple types of virtual resources to be collected in the virtual scene, wherein the first virtual object belongs to a first virtual camp corresponding to the first type among multiple virtual camps; when the terminal 400 receives a resource collection instruction for the first virtual object, in response to the resource collection instruction, the first virtual object is controlled to perform a resource collection operation for multiple types of virtual resources; based on the virtual resources collected by the resource collection operation, when the second type of virtual resources owned by the first virtual object satisfies the camp belonging condition of the second virtual camp corresponding to the second type, the first virtual object is controlled to switch from belonging to the first virtual camp to belonging to the second virtual camp, and the first virtual object belonging to the second virtual camp is controlled to continue to participate in the interactive game.

[0071] In some embodiments, the terminal 400 or the server 200 can implement the control method of the virtual object provided in the embodiment of the present application by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a native application (Application, APP), that is, a program that needs to be installed in the operating system to run (such as a game client); it can also be a small program, that is, a program that can be run only by downloading it to a browser environment; it can also be a small program that can be embedded in any APP (such as a game small program). In short, the above-mentioned computer program can be an application, module or plug-in in any form.

[0072] The embodiments of the present application can be implemented with the help of cloud technology, which refers to a hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or a local area network to realize data calculation, storage, processing, and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. It can form a resource pool that can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources.

[0073] As an example, a server (such as server 200) can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The terminal (such as terminal 400) can be a smart phone, a tablet computer, a laptop computer, a desktop computer, an intelligent voice interaction device (such as a smart speaker), a smart home appliance (such as a smart TV), a smart watch, a car terminal, a wearable device, a virtual reality (VR) device, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and the embodiments of the present application are not limited to this.

[0074] In some embodiments, multiple servers may form a blockchain, and the servers are nodes on the blockchain. Information connections may exist between each node in the blockchain, and information may be transmitted between nodes through information connections. Among them, data related to the control method of the virtual object provided in the embodiment of the present application (such as scene data of the virtual scene) may be stored on the blockchain.

[0075] The following describes an electronic device for implementing a virtual object control method provided by an embodiment of the present application. Figure 2 , Figure 2: is a structural diagram of an electronic device 500 for implementing a method for controlling a virtual object provided in an embodiment of the present application. The electronic device 500 provided in an embodiment of the present application may be a terminal or a server. The electronic device 500 provided in an embodiment of the present application includes: at least one processor 510, a memory 550, at least one network interface 520 and a user interface 530. The various components in the electronic device 500 are coupled together through a bus system 540. It can be understood that the bus system 540 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Figure 2 Various buses are labeled as bus system 540 .

[0076] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0077] The user interface 530 includes one or more output devices 531 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0078] The memory 550 may be removable, non-removable, or a combination thereof. The memory 550 may include one or more storage devices physically located away from the processor 510. The memory 550 includes a volatile memory or a non-volatile memory, and may also include both a volatile memory and a non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 550 described in the embodiments of the present application is intended to include any suitable type of memory.

[0079] In some embodiments, the memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0080] Operating system 551, including system programs for processing various basic system services and performing hardware-related tasks, such as framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0081] A network communication module 552, used to reach other electronic devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.;

[0082] a presentation module 553 for enabling presentation of information via one or more output devices 531 (e.g., display screen, speaker, etc.) associated with the user interface 530 (e.g., a user interface for operating peripherals and displaying content and information);

[0083] The input processing module 554 is used to detect one or more user inputs or interactions from one of the one or more input devices 532 and translate the detected inputs or interactions.

[0084] In some embodiments, the control device of the virtual object provided in the embodiments of the present application can be implemented in a software manner. Figure 2 A control device 555 for a virtual object stored in a memory 550 is shown, which may be software in the form of a program or plug-in, and includes the following software modules: a display module 5551, a first control module 5552, and a second control module 5553. These modules are logical, and therefore may be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.

[0085] The following describes the control method of the virtual object provided by the embodiment of the present application. In some embodiments, the control method of the virtual object provided by the embodiment of the present application can be implemented by various electronic devices, for example, it can be implemented by a terminal alone, it can also be implemented by a server alone, or it can be implemented by a terminal and a server in collaboration. Figure 3 , Figure 3 : is a flow chart of a method for controlling a virtual object provided in an embodiment of the present application. The method for controlling a virtual object provided in an embodiment of the present application includes:

[0086] Step 101: In a virtual scene supporting multiple virtual camps to play interactive games, the terminal displays a first virtual object participating in the interactive game and multiple types of virtual resources to be collected.

[0087] Each virtual camp corresponds to a type of virtual resources, and the first virtual object belongs to a first virtual camp corresponding to the first type among the multiple virtual camps.

[0088] In step 101, the terminal may run a client (such as a game client) that supports a virtual scene, and the terminal outputs a virtual scene during the operation of the client. For example, the terminal may obtain scene data of a virtual scene from a server, and then render the scene data to output a virtual scene. Here, the virtual scene may support multiple virtual camps to interact with each other, and the multiple virtual camps are in a mutually confrontational relationship, and each virtual camp may include at least one participating virtual object. The controller of each participating virtual object (such as a player user) can control the participating virtual object in a certain virtual camp, and interact with the participating virtual objects of other virtual camps in the virtual scene. The interactive game may be to complete a preset game task, such as collecting a preset number of virtual resources, defeating virtual task objects, etc. during the interactive game.

[0089] In step 101, the terminal displays the virtual scene and the first virtual object participating in the interactive game. The first virtual object can be a virtual character corresponding to the user account logged in to the client. Of course, other participating virtual objects participating in the interactive game in the virtual scene can also be displayed. In the embodiment of the present application, in the process of the interactive game, multiple types of virtual resources provided in the virtual scene can also be collected. It should be noted that each virtual camp corresponds to a type of virtual resource, that is, how many types of virtual resources are provided in the virtual scene, then the virtual scene supports interactive games of how many virtual camps. Here, the first virtual object belongs to the first virtual camp corresponding to the first type in multiple virtual camps. In actual applications, the virtual camp to which the first virtual object belongs is related to the type of virtual resources owned by the first virtual object, that is, when the first type of virtual resources owned by the first virtual object can satisfy the camp belonging conditions of the virtual camp corresponding to the first type, the first virtual object belongs to the first virtual camp corresponding to the first type. For example, the virtual camp to which the first virtual object belongs corresponds to the type of virtual resources with the maximum amount of resources owned by the first virtual object. For example, the first virtual object has a virtual resource "gold coins", of which there are 4 red type "gold coins", 2 yellow type "gold coins", and 1 blue type "gold coin", then the first virtual object belongs to the virtual camp corresponding to the "red type".

[0090] In actual applications, the type of the virtual resource can be set according to different dimensions. For example, when the dimension is color, the multiple types may include red, yellow, and blue; when the dimension is material, the multiple types may include gold, silver, and copper; when the dimension is category, the multiple types may include fruit, vegetables, and milk, etc. In the embodiments of the present application, there is no limitation on the virtual resources and the types of virtual resources.

[0091] As an example, see Figure 4 , Figure 4 : is a display schematic diagram of a virtual scene provided by an embodiment of the present application. Here, the virtual scene supports interactive games of three virtual camps, namely, a blue virtual camp, a yellow virtual camp, and a red virtual camp; a first virtual object and multiple types of virtual resources to be collected are displayed in the virtual scene, namely, virtual gold coins of blue type (corresponding to the blue virtual camp), virtual gold coins of yellow type (corresponding to the yellow virtual camp), and virtual gold coins of red type (corresponding to the red virtual camp).

[0092] As an example, see Figure 5 , Figure 5 Schematic diagram of entering a virtual scene provided by an embodiment of the present application. Here, taking a multiplayer game scene as an example, before entering the virtual scene, a player needs to match other players online to match with players who are participating in the interactive game in the virtual scene, such as Figure 5 As shown in (1), it is a player matching interface, which provides a player matching control "start matching". Player matching can be performed through the player matching control; when the matching of players is completed, a game entry interface will be displayed, and the game entry interface provides a game entry control "enter game", such as Figure 5 As shown in (2); when a trigger operation for entering the game control is received, the virtual scene is entered, such as Figure 5 As shown in (3), this is a game preparation interface for a game scene. In actual implementation, you can familiarize yourself with various controls, skills, props, interactive tasks, etc. in the game on the game preparation interface. For example, in the embodiment of the present application, the interactive task can be a virtual resource of a target resource amount, so the collection target of the virtual resource can be displayed in the preparation interface. After the game preparation interface ends, you can enter the above Figure 4 The virtual scene shown can be used for players to interact, such as interacting with players from other virtual camps, collecting virtual resources, etc.

[0093] In actual applications, virtual objects have M different object types, and the M different object types can be divided according to the dimensions of the virtual object's abilities, skills, props, etc. In some embodiments, when entering a virtual scene, the user can choose the object type they need according to the actual situation. Of course, in other embodiments, in order to simplify user operations, object types can also be automatically assigned to users, for example, they can be automatically assigned based on historical data of the object types used by the user, or they can be automatically randomly assigned. Among them, when the object type is automatically randomly assigned to the user, it can be achieved in the following way: in response to an entry instruction for a virtual scene, an object type is randomly determined as the target object type from the M object types of the virtual object, and M is an integer greater than 1; in a virtual scene that supports multiple virtual camps for interactive games, a first virtual object of the target object type participating in the interactive game is displayed.

[0094] Here, when the user triggers an entry instruction for a virtual scene, M object types of virtual objects are obtained, and then an object type is randomly selected from the M object types through a random algorithm, and the selected object type is used as the target object type of the first virtual object, so that the first virtual object of the target object type is displayed in the virtual scene. In actual applications, in order to enable users to quickly become familiar with each object type, it can be determined from the M object types whether there is an object type that has not been used by the first virtual object in historical interactive games. If there are N candidate object types among the M object types that have not been used by the first virtual object in historical interactive games, then a candidate object type can be randomly determined from the N candidate object types as the target object type.

[0095] In this way, each time a user opens a virtual scene, he or she can be assigned a first virtual object of a different object type, thereby increasing the user's interest in participating in the virtual scene, and helping the user quickly become familiar with each object type (such as skills, external performance, and operating skills), thereby improving the user's experience in the virtual scene. In addition, by randomly assigning the object type of a virtual object to the user, and switching the virtual camp where the virtual object is located by collecting virtual resources, the user can be provided with more experience methods or gameplay in the virtual scene, thereby improving the strategic experience and competitive fun in the virtual scene.

[0096] In actual applications, in order to maintain fairness for every user participating in the virtual scene, the virtual objects of each object type can be maintained at a pre-set fair value in terms of attributes such as ability, skills, and props. When different users enter the virtual scene, this fair value is used to ensure the user's interactive experience in the virtual scene.

[0097] In some embodiments, the terminal can display the first virtual object participating in the interactive game and multiple types of virtual resources to be collected in the following manner: display the first virtual object participating in the interactive game and multiple types of virtual resources with target resource quantities; accordingly, the terminal can also perform the following processing: in the virtual scene, update the resource quantity of the virtual resources to be collected according to the preset update cycle and the resource update amount of each preset update cycle.

[0098] Here, when displaying a virtual scene, the terminal can display the first virtual object participating in the interactive game, and multiple types of virtual resources of the target resource amount. Of course, for each type, the virtual resources of the sub-resource amount of that type can also be displayed. The target resource amount can be preset. In order to maintain the fun of virtual objects collecting virtual resources during the interactive game, the resource amount of virtual resources collected in the virtual scene can be updated according to the preset update cycle and the resource update amount of each preset update cycle. In actual applications, each time the resource amount is updated, it can be each update cycle, and the resource update amount is reduced from the existing resource amount to schedule the user's enthusiasm for collecting virtual resources and improve the immersion of the virtual scene; of course, each time the resource amount is updated, it can be each update cycle, and the resource update amount is increased from the existing resource amount, so that the user has enough virtual resources to collect during the interactive game, thereby improving the interactive experience.

[0099] In addition, in the embodiment of the present application, the user can switch the virtual camp to which they belong by collecting virtual resources in the virtual scene. Therefore, by continuously updating the amount of virtual resources to be collected in the virtual scene, the user can control the switching of their virtual objects to their virtual camps, thereby increasing the strategic gameplay in the virtual scene and improving the user's interactive experience in the virtual scene.

[0100] Step 102: In response to a resource collection instruction for a first virtual object, control the first virtual object to perform a resource collection operation for multiple types of virtual resources.

[0101] In step 102, the user can control the first virtual object to collect virtual resources in the virtual scene. In practical applications, a collection control for virtual resources can be provided. When the first virtual object is controlled to be in the sensing range of the virtual resources, the virtual resources can be collected through the collection control; of course, the collection control may not be required, that is, when the first virtual object is controlled to be in the sensing range of the virtual resources, the virtual resources can be automatically collected. Based on this, the resource collection instruction can be actively triggered by the collection control, or it can be passively triggered when the first virtual object is controlled to be in the sensing range of the virtual resources. When the terminal receives a resource collection instruction for the first virtual object, it responds to the resource collection instruction and controls the first virtual object to perform resource collection operations for multiple types of virtual resources, that is, from multiple types of virtual resources, according to the resource collection instruction, collect the virtual resources indicated by the resource collection instruction. It can be understood that the virtual resources collected by the first virtual object can become the virtual resources owned by the first virtual object.

[0102] Step 103: Based on the virtual resources collected by the resource collection operation, when the second type of virtual resources owned by the first virtual object satisfies the camp belonging condition of the second virtual camp corresponding to the second type, the first virtual object is controlled to switch from belonging to the first virtual camp to belonging to the second virtual camp, and the first virtual object belonging to the second virtual camp is controlled to continue to participate in the interactive game.

[0103] In step 103, virtual resources can be collected based on the resource collection operation in step 102, so that the virtual resources owned by the first virtual object are updated, that is, the virtual resources owned by the first virtual object are increased by the virtual resources collected by the resource collection operation. In the process of controlling the first virtual object to perform the resource collection operation, when the second type of virtual resources owned by the first virtual object can satisfy the camp belonging condition of the second virtual camp corresponding to the second type, the first virtual object is controlled to switch from belonging to the first virtual camp to belonging to the second virtual camp. In this way, by collecting multiple types of virtual resources provided in the virtual scene, the switching of the virtual camp to which the first virtual object belongs can be realized during the interactive game of multiple virtual camps, enriching the scene experience of the virtual scene, thereby improving the user's sense of fun in experiencing the virtual scene and stimulating the user's strategy design. After controlling the first virtual object to switch to belonging to the second virtual camp, the first virtual object belonging to the second virtual camp can also be controlled to continue to participate in the interactive game.

[0104] For example, see Figure 6 , Figure 6 is a schematic diagram of switching the virtual camp to which the first virtual object belongs provided by the embodiment of the present application. Figure 6As shown in (1), the first virtual object has virtual resources "gold coins", among which there are 4 red type "gold coins", 2 yellow type "gold coins", and 1 blue type "gold coin". At this time, the first virtual object belongs to the red virtual camp corresponding to the "red type". By collecting virtual resources, the first virtual object has 4 red type "gold coins", 8 yellow type "gold coins", and 3 blue type "gold coins". At this time, the first virtual object belongs to the yellow virtual camp corresponding to the "yellow type". Figure 6 As shown in (2).

[0105] In some embodiments, the terminal can determine whether the camp belonging condition of the second virtual camp is satisfied in the following manner: when the resource attribute value of the second type of virtual resources owned by the first virtual object is higher than the resource attribute value of each non-second type virtual resource owned by the first virtual object, determine the second type of virtual resources owned by the first virtual object so that the camp belonging condition of the second virtual camp corresponding to the second type is satisfied. In actual applications, the virtual camp to which the first virtual object belongs is related to the type of virtual resources owned by the first virtual object, that is, when the second type of virtual resources owned by the first virtual object can satisfy the camp belonging condition of the virtual camp corresponding to the second type, the first virtual object belongs to the first virtual camp corresponding to the second type.

[0106] Here, the resource attribute value is a numerical value representing a resource attribute of the virtual resource, and the resource attribute value may include at least one of the following: resource quantity, resource level value, camp belonging priority, etc. When the resource attributes (or resource attribute values) of the second type of virtual resources owned by the first virtual object are better than (or higher than) the resource attributes (or resource attribute values) of each non-second type of virtual resources owned by the first virtual object, it is determined that the second type of virtual resources owned by the first virtual object can satisfy the camp belonging condition of the second virtual camp corresponding to the second type. For example, the resource attribute value (such as resource quantity) of which type of virtual resources owned by the first virtual object is the highest, then the first virtual object belongs to the virtual camp corresponding to which type. In this way, the virtual camp to which the first virtual object belongs can be determined by the resource attribute value of the virtual resources owned by the first virtual object, and the user can change the resource attribute value of a certain type of virtual resources (such as increasing the resource quantity and resource level of the virtual resources by collecting virtual resources) by controlling the first virtual object to collect virtual resources, thereby realizing the switching of the virtual camp to which the first virtual object belongs in the process of interactive games between multiple virtual camps.

[0107] In some embodiments, the terminal can control the first virtual object belonging to the second virtual camp to continue to participate in the interactive game in the following manner: control the first virtual object belonging to the second virtual camp to interact with the second virtual object in the target virtual camp, where the target virtual camp is a virtual camp different from the second virtual camp among multiple virtual camps, and the target virtual camp and the second virtual camp are in confrontation with each other.

[0108] In some embodiments, when the interaction between the first virtual object and the second virtual object reduces the life attribute value of the first virtual object, and the life attribute value of the first virtual object is lower than the attribute value threshold or returns to zero, the terminal may also perform the following processing: select virtual resources of the target amount from the virtual resources owned by the first virtual object and put them back into the virtual scene.

[0109] Here, if the first virtual object interacts with the second virtual object, and the first virtual object is reduced by the second virtual object, so that the life attribute value of the first virtual object is lower than the attribute value threshold or zero, then the first virtual object is considered to be defeated by the second virtual object during the interaction. At this time, the virtual resources of the target resource amount can be selected from the virtual resources owned by the first virtual object and put back into the virtual scene. Similarly, when the interaction between the first virtual object and the second virtual object reduces the life attribute value of the second virtual object, and the life attribute value of the second virtual object is lower than the attribute value threshold or zero, it can also be considered that the second virtual object is defeated by the first virtual object during the interaction, and the virtual resources of the target resource amount can also be selected from the virtual resources owned by the second virtual object and put back into the virtual scene. In this way, the playability in the interaction process can be increased. When the life attribute value of the first virtual object of the player is insufficient, it is necessary to drop part of the collected virtual resources in the virtual scene. In practical applications, the virtual resources put back in the virtual scene can also be collected by other virtual objects.

[0110] In some embodiments, the terminal can select virtual resources of a target amount from the virtual resources owned by the first virtual object and put them back into the virtual scene in the following manner: determine the first resource amount of the second type of virtual resources owned by the first virtual object; when the first resource amount reaches the target resource amount, select virtual resources of the target amount from the second type of virtual resources owned by the first virtual object and put them back into the virtual scene; when the first resource amount does not reach the target resource amount, put the second type of virtual resources owned by the first virtual object back into the virtual scene, and select virtual resources of the second amount from the non-second type virtual resources owned by the first virtual object and put them back into the virtual scene, and the sum of the second resource amount and the first resource amount is equal to the target resource amount.

[0111] In actual applications, after selecting the target amount of virtual resources from the virtual resources owned by the first virtual object and putting them back into the virtual scene, since the second type of virtual resources are put back first, it is necessary to determine again which virtual camp the first virtual object should belong to based on the type of virtual resources owned by the first virtual object. That is, from the types of virtual resources owned by the first virtual object, determine the target type of virtual resources with the highest (or optimal) resource attribute value, and determine that the first virtual object belongs to the target virtual camp corresponding to the target type. In this way, the user's enthusiasm for collecting specific virtual resources can be stimulated, and the strategy and competitiveness in the virtual scene can be improved.

[0112] In some embodiments, after the terminal selects the target amount of virtual resources from the virtual resources owned by the first virtual object and puts them back into the virtual scene, the following processing can also be performed: when the amount of virtual resources owned by the first virtual object is lower than the resource amount threshold or returns to zero, the first virtual object is canceled; correspondingly, the terminal can also display the newly generated first virtual object, and the new first virtual object and the first virtual object correspond to the same account added to the virtual scene. Here, if the virtual resources owned by the first virtual object are selected from the virtual resources owned by the first virtual object and put back into the virtual scene, the amount of virtual resources owned by the first virtual object is lower than the resource amount threshold or returns to zero, then the first virtual object is canceled. Of course, the rebirth mechanism of the first virtual object can also be set, such as setting a rebirth condition. When the rebirth condition is met (such as rebirth after a preset time), the new first virtual object is regenerated, and the new first virtual object and the first virtual object correspond to the same account added to the virtual scene. In this way, the playability of the user in the virtual scene can be improved.

[0113] In some embodiments, when the interaction between the first virtual object and the second virtual object reduces the life attribute value of the second virtual object, and the life attribute value of the second virtual object is lower than the attribute value threshold or returns to zero, the terminal may also perform the following processing: control the first virtual object, collect the target virtual resources from the virtual resources owned by the second virtual object and put them back into the virtual scene.

[0114] Here, when the interaction between the first virtual object and the second virtual object reduces the life attribute value of the second virtual object, and the life attribute value of the second virtual object is lower than the attribute value threshold or returns to zero, it can be considered that the second virtual object is defeated by the first virtual object during the interaction, or the target amount of virtual resources can be selected from the virtual resources owned by the second virtual object and put back into the virtual scene. The virtual resources put back into the virtual scene can also be collected by the first virtual object, or the virtual resources put back into the virtual scene directly belong to the first virtual object. In this way, the enthusiasm of users in the virtual scene to control virtual objects to participate in interactive games with other virtual objects can be increased.

[0115] In some embodiments, when the life attribute value of the first virtual object does not reach the life attribute value threshold, the terminal may also perform the following processing: control the life attribute value of the first virtual object to increase the target life attribute value. Here, if the interaction between the first virtual object and the second virtual object reduces the life attribute value of the second virtual object, and the life attribute value of the second virtual object is lower than the attribute value threshold or returns to zero, it can be considered that the second virtual object is defeated by the first virtual object during the interaction. At this time, if the life attribute value of the first virtual object does not reach the life attribute value threshold, the life attribute value of the first virtual object can be increased by the target life attribute value. The target life attribute value can be pre-set (such as 80% of the original life attribute value) or randomly generated. In this way, the enthusiasm of users in the virtual scene to control virtual objects to participate in interactive games with other virtual objects can be improved.

[0116] In some embodiments, when the amount of virtual resources owned by the first virtual object reaches the resource amount threshold, the first virtual object wins the interactive game; based on this, the terminal can perform the following processing: display the amount of virtual resources owned by the first virtual object; when the amount of resources reaches the stage resource amount threshold, broadcast a second notification message in the virtual scene; wherein the second notification message is used to notify that the amount of virtual resources owned by the first virtual object has reached the stage resource amount threshold, and the first virtual object is about to win the interactive game, and the stage resource amount threshold is lower than the resource amount threshold. Here, when the amount of virtual resources owned by the first virtual object has reached the stage resource amount threshold, the second notification message can be broadcast in the virtual scene, thereby prompting each participating first virtual object in the virtual scene that the first virtual object is about to win the interactive game. In this way, through this notification message, the user's enthusiasm for collecting virtual resources can be improved, and the collection enthusiasm of other users can also be improved, while promoting the interaction enthusiasm of other users with the user.

[0117] As an example, see Figure 7 , Figure 7This is a display diagram of the second notification message provided by an embodiment of the present application. Here, in the virtual scene, the resource amount "25" of the virtual resource "virtual gold coins" owned by the first virtual object is displayed, and the resource amount threshold "30" of the virtual resource for winning is also displayed. At this time, the resource amount "25" reaches the stage resource amount threshold "25", then the second notification message "Virtual object 1 has obtained 25 virtual gold coins, victory is in sight!" can be displayed.

[0118] In some embodiments, when the first virtual object has multiple types of virtual resources, the terminal can display the resource amount of the virtual resources owned by the first virtual object in the following manner: for each type of virtual resource owned by the first virtual object, the resource amount of the type of virtual resource can be displayed using the resource amount display style corresponding to the type. Here, different types of virtual resources can use different resource amount display styles corresponding to the type to display the type of virtual resource. For example, Figure 7 As shown, the red type "gold coin" displays the type resource quantity "4" through the circular floating area, the yellow type "gold coin" displays the type resource quantity "2" through the square floating area, and the blue type "gold coin" displays the type resource quantity "1" through the elliptical floating area.

[0119] In some embodiments, when the terminal displays the virtual resources to be collected in the virtual scene, different types of virtual resources may also be displayed in different resource display styles. For example, different types of virtual resources may be displayed in different colors, sizes, and transparencies. In this way, it is convenient for users to distinguish the collected virtual resources, so as to facilitate users to switch virtual camps by collecting virtual resources.

[0120] In some embodiments, the virtual scene includes multiple participating first virtual objects, and the multiple participating first virtual objects include the first virtual object. The terminal can perform the following processing: when the end condition of the interactive game is met, the interactive game is ended, and the interactive result of the interactive game is displayed, and the interactive result is used to indicate the ownership of virtual resources by each participating first virtual object. Here, the interactive result may include at least one of the following: the resource amount of each type of virtual resources owned by each participating first virtual object, the total resource amount of virtual resources owned by each participating first virtual object, the ranking sorted by the total resource amount (such as ascending order or descending order), the winning virtual camp, etc.

[0121] In some embodiments, the terminal can determine whether the termination condition of the interactive game is met by: displaying the duration of the interactive game; when the duration of the game reaches the duration threshold, determining that the termination condition of the interactive game is met. Here, a duration threshold of the duration of the game can be set for the interactive game, so when the duration of the game reaches the duration threshold, the termination condition of the interactive game is met, and at this time, the interactive game is ended. In this way, the duration of the interactive game in the virtual scene can be controlled to give the user a suitable game duration experience.

[0122] In some embodiments, the terminal can determine whether the end condition of the interactive game is met by the following method: detecting the amount of virtual resources owned by each participating first virtual object; when the amount of virtual resources owned by a target participating first virtual object among multiple participating first virtual objects reaches the resource amount threshold, it is determined that the end condition of the interactive game is met. Here, the end condition of the interactive game can be triggered by the participating first virtual object, that is, when the amount of virtual resources owned by a target participating first virtual object among multiple participating first virtual objects reaches the resource amount threshold, the end condition of the interactive game is met, and at this time, the interactive game is ended. If the amount of virtual resources owned by a target participating first virtual object does not reach the resource amount threshold until the duration of the game reaches the duration threshold, then the end condition of the interactive game is triggered according to the duration of the game reaching the duration threshold. In this way, the duration of the interactive game in the virtual scene can be controlled to improve the utilization of hardware resources.

[0123] In some embodiments, when there is a target participating first virtual object among multiple participating first virtual objects whose resource amount of virtual resources reaches a resource amount threshold, the terminal can determine whether the end condition of the interactive game is met by the following method: the maintenance time of the state showing that the resource amount reaches the resource amount threshold; when the maintenance time reaches the maintenance time threshold, it is determined that the end condition of the interactive game is met.

[0124] Here, when the end condition of the interactive game is triggered by whether the virtual resources owned by the participating first virtual object have reached the resource amount threshold, a maintenance time threshold can also be set for the state where the resource amount has reached the resource amount threshold. At this time, when there is a target participating first virtual object among multiple participating first virtual objects whose resource amount of virtual resources has reached the resource amount threshold, the maintenance time of the state where the resource amount has reached the resource amount threshold is displayed, so that when the maintenance time reaches the maintenance time threshold, it is determined that the end condition of the interactive game is met. If the maintenance time does not reach the maintenance time threshold, then the target participating first virtual object whose resource amount of virtual resources has reached the resource amount threshold is re-detected, and it is detected whether the maintenance time of the state where the resource amount of virtual resources owned by the target participating first virtual object has reached the resource amount threshold reaches the maintenance time threshold. If it reaches, it is determined that the end condition of the interactive game is met. And so on, until the end condition of the interactive game is met. Of course, if until the game duration reaches the duration threshold, no target participating in the first virtual object maintains the duration reaching the maintenance duration threshold, then the end condition of the interactive game is triggered according to the game duration reaching the duration threshold.

[0125] In some embodiments, the terminal may also display a first notification message and a countdown starting from the maintenance duration threshold to characterize the remaining duration of the interactive game; wherein, when the maintenance duration reaches the maintenance duration threshold, the remaining duration returns to zero; wherein, the first notification message is used to notify the target that the amount of virtual resources owned by the first virtual object participating in the game has reached the resource amount threshold. When the amount of virtual resources owned by the target participating in the game of the first virtual object reaches the resource amount threshold, it means that the interactive game is about to end. Since the maintenance duration of the state in which the amount of resources reaches the resource amount threshold must reach the maintenance duration threshold to trigger the end condition of the interactive game, a countdown may be started from the maintenance duration threshold, and the countdown characterizes the remaining duration of the interactive game. In this way, through the notification message, the user's enthusiasm for continuing to collect virtual resources can be stimulated to improve the strategy and competitiveness within the virtual scene.

[0126] See also Figure 8 , Figure 8 This is a schematic diagram of the display of the first notification message and the remaining duration provided by the embodiment of the present application. Here, in the virtual scene, the resource threshold "30" of the virtual resources for winning is displayed, and the first notification message "The number of gold coins of virtual object 1 has exceeded 30" is displayed; at the same time, the remaining duration "The interactive game will end early: 8 seconds", "The interactive game will end early: 7 seconds", etc. are displayed.

[0127] By using the above embodiment of the present application, in a virtual scene supporting multiple virtual camps to perform interactive games, a first virtual object participating in the interactive game and multiple types of virtual resources to be collected are displayed, and the first virtual object belongs to the first virtual camp corresponding to the first type in the multiple virtual camps; when a resource collection instruction for the first virtual object is received, the first virtual object is controlled to perform a resource collection operation for multiple types of virtual resources; based on the virtual resources collected by the resource collection operation, when the second type of virtual resources owned by the first virtual object satisfies the camp belonging condition of the second virtual camp corresponding to the second type, the first virtual object is controlled to switch from belonging to the first virtual camp to belonging to the second virtual camp, and the first virtual object belonging to the second virtual camp is controlled to continue to participate in the interactive game. In this way, by collecting multiple types of virtual resources provided in the virtual scene, the switching of the virtual camp to which the first virtual object belongs can be realized in the process of the interactive game of multiple virtual camps, which increases the interactive flexibility of the virtual scene, thereby improving the experience of the participants of the virtual scene for the virtual scene and stimulating the strategic sense of the participants; at the same time, it can be achieved only by executing the resource collection operation, reducing human-computer interaction operations, improving human-computer interaction efficiency and the utilization rate of device processing resources.

[0128] The following will use a virtual scene as a game scene to illustrate an exemplary application of the embodiment of the present application in an actual application scenario. First, the nouns involved in the embodiment of the present application are explained, including:

[0129] 1) Massive (or Massively) Multiplayer Online Role-Playing Game (MMORPG): Players need to play a game character (i.e., a virtual object) and control many activities of the game character. For example, the game scene can be an MMORPG game scene.

[0130] 2) Instance Zones: A gameplay mode of the game scene, which mainly brings equipment, props, game resources, etc. to players to satisfy the player's game progress and can be considered as an instance of the map.

[0131] 3) Role type of game characters: a classification method of game characters in the game scene. The role type determines the game character's fighting method, applicable equipment, appearance, combat skills, etc.

[0132] 4) Virtual camp: The attributes of common game characters in game scenes, mainly the identifier for grouping players in multiplayer games.

[0133] In an embodiment of the present application, a Player VS Player (PVP) copy gameplay is provided, which randomly selects any character type with fair values ​​(such as ability value, skill value, attack value) in a single game, collects virtual resources, interacts with other game characters, switches the virtual camp in which the player is located, etc., and finally obtains a specified amount of virtual resources (such as virtual gold coins) within a limited time to win a personal victory ranking, which can bring fresh, exciting, and strategic fun game experience to the players. The following is a detailed description.

[0134] like Figure 5 As shown, for each interactive game, a target number of players (e.g., 10) can be set to participate in the match, and enter the virtual scene through a "single player match". In each interactive game, a game character of a character type with a fair value is randomly assigned to the player, and different interactive games can randomly assign game characters of different character types. For example, the random character types may include: virtual warrior, virtual magician, virtual pharmacist, etc.

[0135] After the interactive game of this bureau begins, initially, multiple types of virtual resources of the target resource amount (such as 10) can be randomly refreshed in the virtual scene, and the target resource amount is subsequently updated every other update cycle, such as adding 1 (random type) virtual resource each time. In the implementation of this application, the virtual resources are virtual gold coins, and the types are exemplified by the colors "red", "yellow" and "blue". In actual applications, the belonging camp can be judged based on the virtual gold coins with the largest amount of resources owned by the player's game character, and different virtual camps can confront each other, and the same virtual camps can cooperate with each other. For example, different virtual camps can be distinguished by the color of the flag held by their game characters. Between different virtual camps, the battle mode is a mutual attack mode, and skills can be cast to confront each other. The same virtual camps have the same flag color, and the battle mode is a friendly mode, that is, it is impossible to cast confrontation skills on each other.

[0136] During the interactive game between game characters, when the player's game character is defeated, a certain number of virtual gold coins (such as 10, the color corresponding to the virtual camp that is preferentially owned) will be put back into the virtual scene from the existing virtual gold coins, and then reborn. The player's game character will restore its own life attribute value (for example, restore 80% of its own life attribute value) every time it defeats a game character.

[0137] When putting virtual gold coins back from the virtual gold coins already owned by the game character into the virtual scene, if the virtual gold coins of the color corresponding to the virtual camp to which the character belongs are insufficient, the virtual gold coins of the other two colors can be randomly deducted. After the player is reborn, the camp affiliation is re-determined based on the number of virtual gold coins of each color owned. During the interactive game, the player can control the game character to change the number of virtual gold coins of each color owned by the character by collecting virtual gold coins. The camp to which the character belongs is determined by the color of the largest number of coins owned. For example, if the initial virtual gold coins owned are "red 1, yellow 0, blue 0", the character belongs to the red camp; after collecting, the virtual gold coins owned are "red 1, yellow 1, blue 1", and the character still belongs to the red camp; after collecting, the virtual gold coins owned are "red 1, yellow 2, blue 1", and the character belongs to the yellow camp.

[0138] During the interactive game between game characters, when the total number of virtual gold coins owned by the game characters reaches a threshold (for example, 30), a countdown of a preset duration (for example, 10 seconds) begins, and settlement is started after the countdown ends. Within the preset duration, the game character must maintain the total number of virtual gold coins it owns at the threshold, and the game character wins when the countdown ends. Then, the game characters of each player in the virtual scene are ranked according to the number of virtual gold coins they own (if the numbers are the same, the game character that reaches the number first ranks higher) to obtain the interactive result. In actual implementation, a duration threshold for a single interactive game can be set (for example, 10 minutes). If the timeout expires and the total number of virtual gold coins owned by the game characters reaches the threshold, the game characters are sorted according to the number of virtual gold coins they currently own after the final 10-second countdown ends. See . Fig. 9 , Fig. 9 1 is a display diagram of the interaction ending interface provided in the embodiment of the present application. Here, what is displayed is the game reward obtained by the game character from the virtual scene after the interactive game ends.

[0139] Next, the embodiment of the present application is described from the technical side. Fig. 10A , Fig. 10A This is a configuration diagram of the control method of the virtual object provided by the embodiment of the present application. Here, it is a configuration diagram of the game configuration stage, through which the client can set the copy countdown, the timestamp of the end of the initial stage of the copy, the announcement of the defeat of the game character, the announcement of the player's game character's upcoming victory, the player's victory announcement, and the role type of the game character of a single player, the number of gold coins dropped by the player, etc.

[0140] See also Fig. 10B , Fig. 10B1 is a flow chart of a control method for a virtual object provided by an embodiment of the present application. Here, it is a configuration diagram of the initial stage, through which a player can access a game character of a character type with a random fair value, obtain a game character's game serial number, set a random birth point for the player's game character, etc.

[0141] See also Fig. 10C , Fig. 10C : It is a configuration diagram of the control method of the virtual object provided by the embodiment of the present application. Here, it is a configuration diagram of the interactive game stage. Through this interactive game stage, the game character can collect virtual resources through resource collection and processing to change the number of gold coins and increase the virtual gold coin inventory owned by the individual. The camp affiliation is determined according to the color of the maximum number of gold coins currently owned by the game character. At the same time, the number of gold coins held by the player is determined. When the number of gold coins reaches the first number (such as 25), the announcement that the player is about to win is played. When the number of gold coins reaches the second number (such as 30), the countdown to the end of the copy is triggered. At the same time, the ranking of the game character can also be refreshed (for example, ranking according to the number of gold coins owned).

[0142] See also Fig. 10D , Fig. 10D It is a configuration diagram of the control method of the virtual object provided by the embodiment of the present application. Here, it is a configuration diagram of the interactive game stage, that is, the processing stage of the defeated character and the winning character. In the interactive game stage, the player's game character will restore its own life attribute value (i.e., the percentage restores the life value of the player character, such as restoring 80% of its own life attribute value) for each game character defeated by the player, and the defeated game character drops virtual gold coins according to the rules, such as giving priority to dropping the gold coins of the color with the largest number on the body, and the number of gold coins dropped by the defeated can be set. When the total number of gold coins carried by the player's game character itself (i.e., the total number of gold coins of the character) exceeds the drop threshold (i.e., the maximum number of gold coins dropped, such as 10), the gold coins of the drop threshold can be dropped at most. When the total number of gold coins carried by the player's game character itself is less than the drop threshold (e.g., 10), all gold coins will be dropped and the birth point will be re-randomized.

[0143] See also Fig.10E , Fig.10E: It is a configuration diagram of the control method of the virtual object provided by the embodiment of the present application. Here, it is a configuration diagram of the settlement phase. In the settlement phase, the current timestamp is obtained. If a player's game character collects a second number of gold coins (such as 30) and maintains a certain duration (such as 10 seconds) during the interactive game, the settlement phase is performed in advance and the settlement phase time is obtained. If the duration of the interactive game reaches the duration threshold, and no player's game character collects gold coins to reach the second number, the interactive game is ended according to the duration threshold and the settlement phase is entered. The settlement phase ends according to the copy settlement phase end timestamp, and the game character can leave the copy.

[0144] By applying the above-mentioned embodiments of the present application, in order to provide players with an interesting gameplay of fair competition, a combination of character types with random fair values ​​and switching virtual camps is adopted. On the one hand, players can experience and understand the characteristics of game characters of various character types in the game scene, including skills, external performance, operating skills, etc. On the other hand, by collecting virtual resources of different types (taking the colors "red", "yellow" and "blue" as an example in the embodiments of the present application), defeating the game characters of the game, and switching the camp affiliation of one's own virtual camp, the strategic gameplay and competitive fun in the copy are improved.

[0145] The following is a description of an exemplary structure of a virtual object control device 555 provided in an embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the virtual object control device 555 of the memory 550 may include:

[0146] A display module 5551 is used to display a first virtual object participating in an interactive game and multiple types of virtual resources to be collected in a virtual scene that supports multiple virtual camps to conduct interactive games; wherein each of the virtual camps corresponds to a type of the virtual resources, and the first virtual object belongs to a first virtual camp corresponding to the first type among the multiple virtual camps; a first control module 5552 is used to control the first virtual object to perform a resource collection operation on the multiple types of virtual resources in response to a resource collection instruction for the first virtual object; a second control module 5553 is used to control the first virtual object to switch from belonging to the first virtual camp to belonging to the second virtual camp when the second type of virtual resources owned by the first virtual object satisfies the camp belonging condition of the second virtual camp corresponding to the second type, and to control the first virtual object belonging to the second virtual camp to continue to participate in the interactive game.

[0147] In some embodiments, the virtual scene includes multiple participating first virtual objects, and the multiple participating first virtual objects include the first virtual object. The display module 5551 is also used to display the duration of the interactive game; when the duration of the game does not reach the duration threshold, the resource amount of virtual resources owned by each of the participating virtual objects is detected; when there is a target participating virtual object among the multiple participating virtual objects and the resource amount of virtual resources owned by it reaches the resource amount threshold, the interactive game is ended and the interaction result of the interactive game is displayed, and the interaction result is used to indicate the ownership status of each of the participating first virtual objects of the virtual resources.

[0148] In some embodiments, the display module 5551 is also used to display the maintenance time of the state in which the resource amount reaches the resource amount threshold when the resource amount of a target participating virtual object among the multiple participating virtual objects reaches the resource amount threshold; when the maintenance time reaches the maintenance time threshold, it is determined that the end condition of the interactive game is met.

[0149] In some embodiments, the display module 5551 is also used to display a first notification message and display a countdown starting from the maintenance duration threshold to represent the remaining duration of the interactive game; wherein, when the maintenance duration reaches the maintenance duration threshold, the remaining duration is reset to zero; wherein, the first notification message is used to notify the target participating virtual object that the amount of virtual resources owned by the virtual object has reached the resource amount threshold.

[0150] In some embodiments, when the amount of virtual resources owned by the first virtual object reaches a resource amount threshold, the first virtual object wins the interactive game; the display module 5551 is also used to display the amount of virtual resources owned by the first virtual object; when the amount of resources reaches a stage resource amount threshold, a second notification message is broadcast in the virtual scene; wherein the second notification message is used to notify that the amount of virtual resources owned by the first virtual object has reached the stage resource amount threshold, the first virtual object is about to win the interactive game, and the stage resource amount threshold is lower than the resource amount threshold.

[0151] In some embodiments, when the first virtual object possesses multiple types of virtual resources, the display module 5551 is further used to display the type resource quantity of the virtual resource of the type owned by the first virtual object through the resource quantity display style corresponding to the type.

[0152] In some embodiments, the display module 5551 is further used to display a first virtual object participating in the interactive game, and for each of the multiple types, use a resource display style corresponding to the type to display virtual resources of the type.

[0153] In some embodiments, the second control module 5553 is also used to control the first virtual object belonging to the second virtual camp to interact with the second virtual object in the target virtual camp, the target virtual camp is a virtual camp different from the second virtual camp among the multiple virtual camps, and the target virtual camp and the second virtual camp are in confrontation with each other; when the interaction between the first virtual object and the second virtual object reduces the life attribute value of the first virtual object, and the life attribute value of the first virtual object is lower than the attribute value threshold or is zero, the second control module 5553 is also used to select virtual resources of the target amount from the virtual resources owned by the first virtual object and put them back into the virtual scene.

[0154] In some embodiments, the second control module 5553 is also used to determine the first resource amount of the second type of virtual resources owned by the first virtual object; when the first resource amount reaches the target resource amount, the virtual resources of the target resource amount are selected from the second type of virtual resources owned by the first virtual object and put back into the virtual scene; when the first resource amount does not reach the target resource amount, the second type of virtual resources owned by the first virtual object are put back into the virtual scene, and the virtual resources of the second resource amount are selected from the non-second type of virtual resources owned by the first virtual object and put back into the virtual scene, and the sum of the second resource amount and the first resource amount is equal to the target resource amount.

[0155] In some embodiments, the display module 5551 is also used to cancel the display of the first virtual object after selecting a target amount of virtual resources from the virtual resources owned by the first virtual object and putting them back into the virtual scene, when the amount of virtual resources owned by the first virtual object is lower than a resource amount threshold or returns to zero; the display module 5551 is also used to display a regenerated new first virtual object, and the new first virtual object and the first virtual object correspond to the same account added to the virtual scene.

[0156] In some embodiments, when the interaction between the first virtual object and the second virtual object reduces the life attribute value of the second virtual object, and the life attribute value of the second virtual object is lower than the attribute value threshold or returns to zero, the second control module 5553 is also used to control the first virtual object to collect target virtual resources from the virtual resources owned by the second virtual object and put them back into the virtual scene.

[0157] In some embodiments, when the life attribute value of the first virtual object does not reach the life attribute value threshold, the second control module 5553 is further used to control the life attribute value of the first virtual object to increase to a target life attribute value.

[0158] In some embodiments, the display module 5551 is also used to respond to an entry instruction for the virtual scene, randomly determine an object type from M object types of virtual objects as a target object type, where M is an integer greater than 1; and in a virtual scene that supports multiple virtual camps to conduct interactive games, display a first virtual object of the target object type that participates in the interactive game.

[0159] In some embodiments, when there are N candidate object types among the M object types that have not been used by the first virtual object in historical interactive games, N is less than M, and N is an integer greater than 1; the display module 5551 is also used to randomly determine a candidate object type from the N candidate object types as the target object type.

[0160] In some embodiments, the display module 5551 is also used to display the first virtual object participating in the interactive game and the multiple types of virtual resources with the target resource quantity; the display module 5551 is also used to update the resource quantity of the virtual resources to be collected in the virtual scene according to the preset update cycle and the resource update quantity of each preset update cycle.

[0161] In some embodiments, the second control module 5553 is also used to determine the second type of virtual resources owned by the first virtual object when the resource attribute value of the second type of virtual resources owned by the first virtual object is higher than the resource attribute value of each non-second type virtual resource owned by the first virtual object, so that the camp affiliation condition of the second virtual camp corresponding to the second type is met.

[0162] By using the above embodiment of the present application, in a virtual scene supporting multiple virtual camps to perform interactive games, a first virtual object participating in the interactive game and multiple types of virtual resources to be collected are displayed, and the first virtual object belongs to the first virtual camp corresponding to the first type in the multiple virtual camps; when a resource collection instruction for the first virtual object is received, the first virtual object is controlled to perform a resource collection operation for multiple types of virtual resources; based on the virtual resources collected by the resource collection operation, when the second type of virtual resources owned by the first virtual object satisfies the camp belonging condition of the second virtual camp corresponding to the second type, the first virtual object is controlled to switch from belonging to the first virtual camp to belonging to the second virtual camp, and the first virtual object belonging to the second virtual camp is controlled to continue to participate in the interactive game. In this way, by collecting multiple types of virtual resources provided in the virtual scene, the switching of the virtual camp to which the first virtual object belongs can be realized in the process of the interactive game of multiple virtual camps, which increases the interactive flexibility of the virtual scene, thereby improving the experience of the participants of the virtual scene for the virtual scene and stimulating the strategic sense of the participants; at the same time, it can be achieved only by executing the resource collection operation, reducing human-computer interaction operations, improving human-computer interaction efficiency and the utilization rate of device processing resources.

[0163] The embodiment of the present application also provides a computer program product, which includes computer executable instructions or computer programs, and the computer executable instructions or computer programs are stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instructions or computer programs from the computer-readable storage medium, and the processor executes the computer executable instructions or computer programs, so that the electronic device executes the control method of the virtual object provided in the embodiment of the present application.

[0164] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the processor will execute the virtual object control method provided in the embodiment of the present application.

[0165] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.

[0166] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0167] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0168] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0169] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A method for controlling a virtual object, characterized in that: The method comprises: In a virtual scene supporting multiple virtual camps to play interactive games, displaying a first virtual object participating in the interactive game and multiple types of virtual resources to be collected; Each of the virtual camps corresponds to a type of the virtual resource, and the first virtual object belongs to a first virtual camp corresponding to the first type among the multiple virtual camps; In response to a resource collection instruction for the first virtual object, controlling the first virtual object to perform a resource collection operation for the multiple types of virtual resources; Based on the virtual resources collected by the resource collection operation, when the second type of virtual resources owned by the first virtual object satisfies the camp belonging condition of the second virtual camp corresponding to the second type, the first virtual object is controlled to switch from belonging to the first virtual camp to belonging to the second virtual camp, and The first virtual object belonging to the second virtual camp is controlled to continue to participate in the interactive game.

2. The method according to claim 1, characterized in that The virtual scene includes a plurality of participating virtual objects, the plurality of participating virtual objects include the first virtual object, and the method further includes: Displaying the duration of the interactive game; When the duration of the game does not reach the duration threshold, detecting the amount of virtual resources owned by each of the participating virtual objects; When the amount of virtual resources owned by a target participating virtual object among the multiple participating virtual objects reaches the resource amount threshold, the interactive game is ended, and The interaction result of the interactive game is displayed, wherein the interaction result is used to indicate the ownership status of each of the participating virtual objects with respect to the virtual resource.

3. The method according to claim 2, characterized in that When the amount of virtual resources owned by a target participating virtual object among the multiple participating virtual objects reaches a resource amount threshold, ending the interactive game comprises: When the amount of virtual resources owned by a target participating virtual object among the multiple participating virtual objects reaches a resource amount threshold, displaying the duration of the state in which the resource amount reaches the resource amount threshold; When the maintenance time reaches the maintenance time threshold, the interactive game ends.

4. The method according to claim 3, characterized in that The method further comprises: Displaying a first notification message and displaying a countdown starting from the maintenance duration threshold to indicate the remaining duration of the interactive game; When the maintenance duration reaches the maintenance duration threshold, the remaining duration is reset to zero; The first notification message is used to notify the target participating virtual object that the amount of virtual resources owned by the target participating virtual object has reached a resource amount threshold.

5. The method according to claim 1, characterized in that When the amount of virtual resources owned by the first virtual object reaches a resource amount threshold, the first virtual object wins the interactive game; the method further includes: Displaying the resource amount of the virtual resources owned by the first virtual object; When the resource amount reaches a stage resource amount threshold, broadcasting a second notification message in the virtual scene; The second notification message is used to notify that the amount of virtual resources owned by the first virtual object has reached the stage resource amount threshold, the first virtual object is about to win the interactive game, and the stage resource amount threshold is lower than the resource amount threshold.

6. The method according to claim 5, characterized in that When the first virtual object has multiple types of virtual resources, the displaying the resource amount of the virtual resources owned by the first virtual object includes: For each type of virtual resource owned by the first virtual object, the type resource quantity of the virtual resource of the type is displayed using a resource quantity display style corresponding to the type.

7. The method according to claim 1, characterized in that The display of the first virtual object participating in the interactive game and the multiple types of virtual resources to be collected includes: displaying a first virtual object participating in the interactive game, and For each of the multiple types, a resource display style corresponding to the type is used to display virtual resources of the type.

8. The method according to claim 1, characterized in that The controlling the first virtual object belonging to the second virtual camp to continue to participate in the interactive game includes: controlling a first virtual object belonging to the second virtual camp to interact with a second virtual object in a target virtual camp, wherein the target virtual camp is a virtual camp different from the second virtual camp among the multiple virtual camps, and the target virtual camp and the second virtual camp are in confrontation with each other; When the interaction between the first virtual object and the second virtual object reduces the life attribute value of the first virtual object, and the life attribute value of the first virtual object is lower than an attribute value threshold or returns to zero, the method further includes: From the virtual resources owned by the first virtual object, virtual resources of a target amount are selected and put back into the virtual scene.

9. The method according to claim 8, characterized in that The step of selecting a target amount of virtual resources from the virtual resources owned by the first virtual object and placing the virtual resources back into the virtual scene includes: determining a first resource amount of a second type of virtual resource owned by the first virtual object; When the first resource amount reaches the target resource amount, selecting virtual resources of the target resource amount from the second type of virtual resources owned by the first virtual object and putting them back into the virtual scene; When the first resource amount does not reach the target resource amount, the second type of virtual resource owned by the first virtual object is placed back into the virtual scene, and From the non-second type virtual resources owned by the first virtual object, virtual resources of a second resource amount are selected and put back into the virtual scene, and the sum of the second resource amount and the first resource amount is equal to the target resource amount.

10. The method according to claim 8, characterized in that After selecting a target amount of virtual resources from the virtual resources owned by the first virtual object and placing them back into the virtual scene, the method further includes: When the amount of virtual resources owned by the first virtual object is lower than a resource amount threshold or returns to zero, canceling the display of the first virtual object; The method further comprises: The regenerated new first virtual object is displayed, and the new first virtual object and the first virtual object correspond to the same account added to the virtual scene.

11. The method according to claim 8, characterized in that When the interaction between the first virtual object and the second virtual object reduces the life attribute value of the second virtual object, and the life attribute value of the second virtual object is lower than the attribute value threshold or returns to zero, the method further includes: The first virtual object is controlled to collect target virtual resources from the virtual resources owned by the second virtual object and put them back into the virtual scene.

12. The method according to claim 11, characterized in that When the life attribute value of the first virtual object does not reach the life attribute value threshold, the method further includes: Control the life attribute value of the first virtual object to increase by a target life attribute value.

13. The method according to claim 1, characterized in that The step of displaying, in a virtual scene supporting multiple virtual camps to perform interactive games, a first virtual object participating in the interactive game comprises: In response to an entry instruction for the virtual scene, randomly determining an object type from M object types of virtual objects as a target object type, where M is an integer greater than 1; In a virtual scene supporting multiple virtual camps to engage in interactive games, a first virtual object of the target object type participating in the interactive game is displayed.

14. The method according to claim 13, characterized in that When, among the M object types, there are N candidate object types that have not been used by the first virtual object in historical interactive games, the N is less than the M, and the N is an integer greater than 1; The step of randomly determining an object type as a target object type from the M object types of the virtual object includes: From the N candidate object types, a candidate object type is randomly determined as the target object type.

15. The method according to claim 1, wherein: The display of the first virtual object participating in the interactive game and the multiple types of virtual resources to be collected includes: Displaying a first virtual object participating in the interactive game and target resource amounts of the multiple types of virtual resources; The method further comprises: In the virtual scene, the resource amount of the virtual resources to be collected is updated according to a preset update cycle and a resource update amount in each preset update cycle.

16. The method according to claim 1, wherein: The method further comprises: When the resource attribute value of the second type of virtual resource owned by the first virtual object is higher than the resource attribute value of each non-second type virtual resource owned by the first virtual object, The second type of virtual resources owned by the first virtual object is determined so that a camp affiliation condition of a second virtual camp corresponding to the second type is satisfied.

17. A control device for a virtual object, characterized in that: The device comprises: A display module, for displaying, in a virtual scene supporting multiple virtual camps to perform interactive games, a first virtual object participating in the interactive game and multiple types of virtual resources to be collected; Each of the virtual camps corresponds to a type of the virtual resource, and the first virtual object belongs to a first virtual camp corresponding to the first type among the multiple virtual camps; A first control module, configured to control the first virtual object to perform a resource collection operation on the multiple types of virtual resources in response to a resource collection instruction on the first virtual object; A second control module is used to control the first virtual object to switch from belonging to the first virtual camp to belonging to the second virtual camp based on the virtual resources collected by the resource collection operation, when the second type of virtual resources owned by the first virtual object satisfies the camp belonging condition of the second virtual camp corresponding to the second type, and control the first virtual object belonging to the second virtual camp to continue to participate in the interactive game.

18. An electronic device, characterized in that: The electronic device comprises: A memory for storing computer executable instructions; A processor, configured to implement the method for controlling a virtual object according to any one of claims 1 to 16 when executing the computer executable instructions stored in the memory.

19. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that: When the computer executable instructions or computer programs are executed by a processor, the method for controlling a virtual object according to any one of claims 1 to 16 is implemented.

20. A computer program product comprising computer executable instructions or a computer program, characterized in that When the computer executable instructions or computer programs are executed by a processor, the method for controlling a virtual object according to any one of claims 1 to 16 is implemented.

Citation Information

Cited By

  • Interaction method and device in game and electronic equipment

    CN119680194A