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

By integrating item switching and skill release functions into a single skill control within a virtual scene, the problems of excessive control area size and low human-computer interaction efficiency are solved, thereby improving display resources and human-computer interaction efficiency.

CN121846677APending Publication Date: 2026-04-14TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

In existing technologies, the control area in virtual scenes occupies too large a proportion, resulting in low display resource utilization and requiring more human-computer interaction operations, leading to low human-computer interaction efficiency and low device processing resource utilization.

Method used

By displaying the first skill control of the first virtual item in the virtual scene, and responding to the trigger operation, the second virtual item equipped by the virtual object is switched to the first virtual item, and the item skill is released, thus integrating the item switching and skill release functions into one control.

Benefits of technology

The number of controls has been reduced, display resource utilization has been improved, and two functions can be controlled through a single control, thereby improving human-computer interaction efficiency and device processing resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121846677A_ABST
    Figure CN121846677A_ABST
Patent Text Reader

Abstract

The invention provides a virtual item control method and device, equipment, a storage medium and a program product. The method comprises the steps that a first skill control of a first virtual item in a virtual scene is displayed, the virtual scene comprises a virtual object assembled with a second virtual item, and the first virtual item has a first item skill; and in response to a first trigger operation for the first skill control, switching a second virtual item assembled by the virtual object to the first virtual item, and controlling the virtual object to use the first virtual item to release the first item skill. Through the application, the utilization rate of display resources can be improved, and the man-machine interaction efficiency and the utilization rate of equipment processing resources can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of virtualization and human-computer interaction technology, and in particular to a method, apparatus, device, storage medium and program product for controlling virtual props. Background Technology

[0002] With the development of computer technology, electronic devices can realize richer and more vivid virtual scenes. A virtual scene refers to a digital scene outlined by a computer through digital communication technology. Users can obtain a fully virtualized experience (such as virtual reality) or a partially virtualized experience (such as augmented reality) in the virtual scene, and can also interact with various objects in the virtual scene through virtual props, or control the interaction between various objects in the virtual scene to obtain feedback.

[0003] In related technologies, a single control is often used to implement an independent function in a virtual scene (such as controlling a virtual object to release skills, controlling a virtual object to use virtual items, etc.). This leads to the following problems: 1) The control area occupies too large a proportion of the screen space, resulting in low utilization of display resources; 2) More human-computer interaction operations are required to achieve the interaction purpose, resulting in low efficiency of human-computer interaction and low utilization of device processing resources. Summary of the Invention

[0004] This application provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for controlling virtual props, which can improve the utilization rate of display resources, human-computer interaction efficiency, and device processing resource utilization.

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

[0006] This application provides a method for controlling virtual props, including:

[0007] Displays a first skill control for a first virtual item in a virtual scene, wherein the virtual scene includes a virtual object equipped with a second virtual item, and the first virtual item has a first item skill;

[0008] In response to a first trigger operation on the first skill control, the second virtual item equipped on the virtual object is switched to the first virtual item, and the virtual object is controlled to use the first virtual item to release the first item skill.

[0009] This application embodiment also provides a control device for virtual props, including:

[0010] The display module is used to display the first skill control of the first virtual prop in the virtual scene. The virtual scene includes a virtual object equipped with a second virtual prop, and the first virtual prop has a first prop skill.

[0011] The control module is configured to, in response to a first trigger operation on the first skill control, switch the second virtual item equipped on the virtual object to the first virtual item, and control the virtual object to use the first virtual item to release the first item skill.

[0012] In the above scheme, the first triggering operation includes a drag operation. The control module is also used to respond to the drag operation on the first skill control. If the drag operation is released and the drag parameters of the drag operation meet the skill release conditions, the second virtual item equipped on the virtual object is switched to the first virtual item.

[0013] In the above scheme, the control module is further configured to determine that the dragging parameter satisfies the skill release condition when at least one of the following conditions is met: the dragging distance of the dragging operation is greater than the dragging distance threshold, the dragging trajectory of the dragging operation matches the target dragging trajectory, and the release position of the dragging operation is in the target area.

[0014] In the above scheme, the first skill control includes a fixed part and a movable part. The drag operation of the first skill control is a drag operation of the movable part of the first skill control. The display module is also used to perform at least one of the following operations: during the process of dragging the movable part based on the drag operation, control the fixed part to remain fixed; during the process of dragging the movable part based on the drag operation, display the progress of the skill release condition being met in the fixed part.

[0015] In the above scheme, the display module is also used to display the process of the movable part returning to the fixed part in response to the release of the drag operation.

[0016] In the above scheme, the first triggering operation includes a pressing operation. The control module is also used to respond to the pressing operation on the first skill control. If the pressing operation is released and the pressing parameters of the pressing operation meet the skill release conditions, the second virtual item equipped on the virtual object is switched to the first virtual item.

[0017] In the above scheme, the control module is further configured to determine that the pressing parameter satisfies the skill release condition when at least one of the following conditions is met: the pressing duration of the pressing operation is greater than the pressing duration threshold, the pressing force of the pressing operation is greater than the pressing force threshold, and the pressing area of ​​the pressing operation is greater than the pressing area threshold.

[0018] In the above scheme, the display module is further configured to display the second skill control of the second virtual item; the control module is further configured to, in response to a second trigger operation on the second skill control, switch the first virtual item equipped on the virtual object to the second virtual item after the second virtual item equipped on the virtual object is switched to the first virtual item.

[0019] In the above scheme, the display module is further configured to display a first object control of the target virtual object, the target virtual object having target object skills; the control module is further configured to, in response to a third trigger operation on the first object control, switch the virtual object to the target virtual object, and control the target virtual object to release the target object skills.

[0020] In the above scheme, the display module is further configured to display a second object control of the virtual object; the control module is further configured to, after the virtual object is switched to the target virtual object, switch the target virtual object to the virtual object in response to a fourth trigger operation on the second object control.

[0021] In the above scheme, the display module is further configured to acquire interaction data of the virtual object interacting with other virtual objects in the virtual scene; based on the interaction data, call a machine learning model to select the first virtual prop from multiple candidate virtual props; and display the first skill control of the first virtual prop.

[0022] In the above scheme, the control module is further configured to respond to a first trigger operation on the first skill control, and if the first skill control is in an active state, switch the second virtual item equipped on the virtual object to the first virtual item; the display module is further configured to display the energy storage progress prompt information of the first skill control during the energy storage process; and when the energy storage progress prompt information indicates that the first skill control has completed energy storage, control the first skill control to be in the active state.

[0023] In the above scheme, the control module is further configured to display an item restoration control after the virtual object uses the first virtual item to release the first item skill; and in response to a trigger operation on the item restoration control, restore the first virtual item equipped by the virtual object to the second virtual item.

[0024] In the above scheme, the control module is further configured to, in response to the operation cancellation instruction, cancel the execution of the target operation during the execution of the first trigger operation. The target operation is to switch the second virtual item equipped on the virtual object to the first virtual item, and control the virtual object to use the first virtual item to release the first item skill.

[0025] In the above scheme, the first triggering operation includes a drag operation, and the control module is further configured to perform one of the following operations: if the drag operation is released and the drag parameters of the drag operation do not meet the skill release conditions, determine that the operation cancellation instruction has been received; if the release position of the drag operation is at the operation cancellation control, determine that the operation cancellation instruction has been received.

[0026] In the above scheme, the display module is further configured to display the first skill control of the first virtual prop in the virtual scene when it is in an available state; the display module is further configured to control the first skill control to switch from the available state to the unavailable state and cancel the display of the first skill control after the virtual object is controlled to use the first virtual prop to release the first prop skill; and to display the first skill control in response to the end of the unavailable state.

[0027] In the above scheme, the control module is further configured to acquire the operation parameters of the first triggering operation; determine the skill strength of the first item skill based on the operation parameters; and control the virtual object to use the first virtual item to release the first item skill with the skill strength.

[0028] This application also provides an electronic device, including:

[0029] Memory is used to store executable instructions for a computer;

[0030] The processor, when executing computer-executable instructions stored in the memory, implements the virtual prop control method provided in the embodiments of this application.

[0031] This application also provides a computer-readable storage medium storing computer-executable instructions or computer programs, which, when executed by a processor, implement the virtual item control method provided in this application.

[0032] This application also provides a computer program product, including computer-executable instructions or a computer program, which, when executed by a processor, implements the virtual item control method provided in this application.

[0033] The embodiments of this application have the following beneficial effects:

[0034] Applying the above embodiments of this application, a first skill control for a first virtual item in a virtual scene is displayed. When a first trigger operation is received for the first skill control, in response to the first trigger operation, the second virtual item equipped on the virtual object is switched to the first virtual item, and the virtual object is controlled to use the first virtual item to release the first item skill of the first virtual item. Here, the switching control function of the virtual item and the release control function of the item skill of the virtual item are integrated into a single skill control. Thus, 1) the number of displayed controls is reduced, improving the utilization rate of display resources; 2) two functions are controlled through a single skill control, reducing the human-computer interaction operations to achieve the interaction purpose, and improving the efficiency of human-computer interaction and the utilization rate of device processing resources. Attached Figure Description

[0035] Figure 1A This is a schematic diagram of the first application mode of the virtual prop control method provided in the embodiments of this application;

[0036] Figure 1B This is a schematic diagram of the second application mode of the virtual prop control method provided in the embodiments of this application;

[0037] Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;

[0038] Figure 3 This is a flowchart illustrating the method for controlling virtual props provided in an embodiment of this application;

[0039] Figure 4 This is a first display schematic diagram of the first skill control provided in the embodiments of this application;

[0040] Figure 5 This is a second display schematic diagram of the first skill control provided in the embodiments of this application;

[0041] Figure 6 This is a schematic diagram of the first control flow of virtual props provided in the embodiments of this application;

[0042] Figure 7 This is a schematic diagram of the second control flow for virtual props provided in the embodiments of this application;

[0043] Figure 8A This is a schematic diagram of the first triggering process of the operation cancellation instruction provided in the embodiments of this application;

[0044] Figure 8B This is a schematic diagram of the second triggering process of the operation cancellation instruction provided in the embodiments of this application;

[0045] Figure 9 This is a schematic diagram showing the first object control provided in an embodiment of this application;

[0046] Figure 10 This is a schematic diagram of a method for controlling virtual props provided in related technologies;

[0047] Figure 11 This is a schematic diagram showing the skill controls provided in an embodiment of this application.

[0048] It should be noted that the terms "first" and "second" mentioned above are only used to distinguish between different options and do not represent the degree of superiority or inferiority of the options or their priority in the implementation process. Detailed Implementation

[0049] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0050] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is 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.

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

[0052] In this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of a larger module or unit that includes the functionality of the module or unit.

[0053] Unless otherwise defined, all technical and scientific terms used in the embodiments of this application have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the embodiments of this application is for the purpose of describing the embodiments of this application only and is not intended to limit this application.

[0054] In the implementation of this application, the collection and processing of relevant data should strictly comply with the requirements of relevant laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.

[0055] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.

[0056] 1) Client: An application running on an electronic device that provides various services, such as a client that supports virtual scenes (like game scenes).

[0057] 2) Responding to: used to indicate the conditions or states on which the operation is performed. When the conditions or states on which the operation is performed are met, one or more operations may be performed in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations are performed.

[0058] 3) A virtual scene is a virtual scene displayed (or provided) by an application while it is running on a terminal. This virtual scene can be a simulation of the real world, a semi-simulated / semi-fictional virtual environment, or a purely fictional virtual environment. A virtual scene can be any of the following: two-dimensional, 2.5-dimensional, or three-dimensional. For example, a virtual scene can include the sky, land, ocean, etc., and the land can include environmental elements such as deserts and cities. Users can control virtual objects to perform activities within this virtual scene, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing at least one of these activities. The virtual scene can be displayed from a first-person perspective (e.g., the user plays as a virtual object in the game from their own perspective); it can also be displayed from a third-person perspective (e.g., the user chases after a virtual object in the game); or it can be displayed from a bird's-eye view. These perspectives can be switched arbitrarily.

[0059] 4) Scene data represents the characteristic data of a virtual scene. For example, it could be the location of a virtual object within the scene, the location of a virtual building, or the area occupied by the building. Of course, different types of characteristic data can be included depending on the type of virtual scene. For example, in a game's virtual scene, scene data could 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 timeframe), and it could also represent the attribute values ​​of various states of game characters, such as health points (also known as red points), mana points (also known as blue points), status values, and health.

[0060] 5) Virtual objects: These are interactive representations of people and objects within a virtual scene, or movable objects within the virtual scene. These movable objects can be virtual characters, animals, cartoon characters, etc., such as people, animals, plants, oil drums, walls, and stones displayed in the virtual scene. A virtual object can be a virtual avatar representing the user within the virtual scene. A virtual scene can include multiple virtual objects, each with its own shape and volume, occupying a portion of the space within the virtual scene.

[0061] 6) Virtual props, which allow users to control their virtual objects in a virtual scene and interact with other virtual objects through virtual props. For example, the virtual props can be throwable virtual props such as grenades, cluster grenades, sticky grenades, physical balls, and composite balls; they can also be shooting virtual props such as bows and arrows, machine guns, pistols, and rifles; or they can be virtual props such as swords, knives, and clubs.

[0062] This application provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for controlling virtual props, which can improve the utilization rate of display resources and enhance human-computer interaction efficiency and device processing resource utilization. The following is a detailed description of the embodiments of this application based on the above explanation of the terms and concepts used.

[0063] To facilitate a clearer understanding of the virtual prop control method provided in this application, exemplary implementation scenarios of the virtual prop control method provided in this application are described below. The virtual scene in the virtual prop control method provided in this application can be entirely based on the output of the terminal device, or based on the collaborative output of the terminal device and the server.

[0064] In some embodiments, the virtual scene can be an environment for game characters to interact, such as a virtual scene for game characters to fight each other. By controlling the actions of virtual objects, two parties can interact in the virtual scene, thereby enabling users to experience the virtual scene in the game.

[0065] In one implementation scenario, see Figure 1A , Figure 1A This is a schematic diagram of the first application mode of the virtual prop control method provided in this application embodiment. It is applicable to some application modes that can complete the relevant data calculation of the virtual scene 100 entirely by relying on the computing power of the terminal 400, such as stand-alone / offline games, where the output of the virtual scene is completed by the terminal 400, such as smartphones, tablets, and virtual reality / augmented reality devices. When visual perception of the virtual scene 100 is formed, the terminal 400 calculates the data required for display through graphics computing hardware, and completes the loading, parsing, and rendering of the display data. The graphics output hardware outputs video frames that can form visual perception of the virtual scene. For example, two-dimensional video frames are presented on the display screen of a smartphone, or video frames that achieve a three-dimensional display effect are projected onto the lenses of augmented reality / virtual reality glasses. 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.

[0066] As an example, terminal 400 runs a client (e.g., a standalone game client). During client operation, it outputs a virtual scene based on scene data. The virtual scene is an environment for game characters to interact with, such as plains, streets, valleys, etc., for game characters to fight. After outputting the virtual scene, it can also display the first skill control of the first virtual item in the virtual scene. The virtual scene includes a virtual object equipped with a second virtual item, and the first virtual item has a first item skill. In response to a first trigger operation on the first skill control, the second virtual item equipped on the virtual object is switched to the first virtual item, and the virtual object is controlled to use the first virtual item to release the first item skill. Here, the virtual item switching control function and the virtual item skill release control function are integrated into a single skill control. Thus, 1) the number of displayed controls is reduced, improving display resource utilization; 2) two functions are controlled through a single skill control, reducing human-computer interaction operations to achieve the interaction purpose, improving human-computer interaction efficiency and device processing resource utilization.

[0067] In another implementation scenario, see Figure 1B , Figure 1BThis is a schematic diagram of the second application mode of the virtual prop control method provided in this application embodiment, applied to terminal 400 and server 200. Generally, it is suitable for application modes that rely on the computing power of server 200 to complete virtual scene calculation and output the virtual scene on terminal 400. Taking the visual perception of forming virtual scene 100 as an example, server 200 calculates the display data related to virtual scene and sends it to terminal 400. Terminal 400 relies on graphics computing hardware to complete the loading, parsing and rendering of the calculated display data, and relies on graphics output hardware to output the virtual scene to form visual perception. For example, two-dimensional video frames can be presented on the display screen of a smartphone, or video frames that achieve three-dimensional display effects can be projected onto the lenses of augmented reality / virtual reality glasses. As for the perception of the form of the virtual scene, it can be understood that it can be achieved by means of the corresponding hardware output of the terminal, such as using microphone output to form auditory perception, using vibrator output to form tactile perception, etc.

[0068] As an example, terminal 400 runs a client (e.g., a network-based 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 to allow users to interact with each other in the virtual scene. After outputting the virtual scene, terminal 400 can also display a first skill control for a first virtual item in the virtual scene. The virtual scene includes a virtual object equipped with a second virtual item, and the first virtual item has a first item skill. In response to a first trigger operation on the first skill control, the second virtual item equipped on the virtual object is switched to the first virtual item, and the virtual object is controlled to use the first virtual item to release the first item skill. Here, the switching control function of the virtual item and the release control function of the virtual item's item skill are integrated into a single skill control. This reduces the number of displayed controls and improves the utilization of display resources; it also enables the control of two functions through a single skill control, reducing human-computer interaction operations to achieve the interactive purpose and improving human-computer interaction efficiency and device processing resource utilization.

[0069] In some embodiments, the electronic device implementing the virtual prop control method provided in this application can be various types of terminals or servers. The server (e.g., server 200) can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal (e.g., terminal 400) can be a laptop, tablet, desktop computer, smartphone, smart voice interaction device (e.g., smart speaker), smart home appliance (e.g., smart TV), smartwatch, in-vehicle terminal, wearable device, virtual reality (VR) device, aircraft, etc., but is not limited thereto. The terminal and server can be directly or indirectly connected via wired or wireless communication, and this application does not impose any limitations on this.

[0070] In some embodiments, the terminal or server can implement the virtual item control method provided in this application embodiment by running various computer-executable instructions or computer programs. For example, computer-executable instructions can be microprogram-level commands, machine instructions, or software instructions. Computer programs can be native programs or software modules in an operating system; they can be native applications (APPs), i.e., programs that need to be installed in the operating system to run, such as game APPs; or they can be applets that can be embedded in any APP, i.e., programs that only need to be downloaded to a browser environment to run. In summary, the aforementioned computer-executable instructions can be any form of instruction, and the aforementioned computer programs can be any form of application, module, or plugin.

[0071] The following describes an electronic device for implementing a control method for virtual props, as provided in an embodiment of this application. See also: Figure 2 , Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 500 provided in this embodiment can be a terminal or a server. Figure 2 As shown, electronic device 500 includes at least one processor 510, memory 550, at least one network interface 520, and user interface 530. The various components in electronic device 500 are coupled together via a bus system 540. It is understood that the bus system 540 is used to implement communication between these components. In addition to a data bus, the bus system 540 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in… Figure 2The general labeled all buses as Bus System 540.

[0072] 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. The general-purpose processor can be a microprocessor or any conventional processor, etc.

[0073] User interface 530 includes one or more output devices 531 that enable the presentation of media content, including one or more speakers and / or one or more visual displays. 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.

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

[0075] In some embodiments, memory 550 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.

[0076] Operating system 551 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks;

[0077] The network communication module 552 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 including: Bluetooth, WiFi, and Universal Serial Bus (USB), etc.

[0078] Presentation module 553 is configured to enable the presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 531 (e.g., a display screen, a speaker, etc.) associated with user interface 530;

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

[0080] In some embodiments, the control device for the virtual props provided in this application can be implemented in software. Figure 2 A control device 555 for a virtual prop stored in memory 550 is shown. It can be software in the form of programs and plug-ins, including the following software modules: display module 5551 and control module 5552. These modules are logical and can therefore be arbitrarily combined or further split according to the functions they implement. The functions of each module will be described below.

[0081] The following describes the control method for virtual items provided in the embodiments of this application. As mentioned above, the control method for virtual items provided in the embodiments of this application is implemented by an electronic device, such as a server or terminal alone, or a server and terminal working together. Therefore, the executing entity of each step will not be described again below. See Figure 3 , Figure 3 This is a flowchart illustrating the virtual item control method provided in this application embodiment. The virtual item control method provided in this application embodiment includes:

[0082] Step 101: Display the first skill control of the first virtual prop in the virtual scene.

[0083] The virtual scene includes a virtual object equipped with a second virtual prop, and the first virtual prop has a first prop skill.

[0084] Here, the electronic device (such as a terminal) can run a client that supports virtual scenes (such as a game client). During the operation of the client, the terminal outputs virtual scenes (such as shooting game scenes, role-playing game scenes, etc.). For example, the electronic device can obtain scene data of the virtual scene from a server, and then render the scene data to output the virtual scene. In the embodiments of this application, the output virtual scene also includes a virtual object, which can be a virtual character controlled by the user entering the virtual scene. The virtual object is equipped with a second virtual prop. In practical applications, the second virtual prop can be owned by the virtual object itself, or it can be obtained by completing a target task (such as reaching a score threshold, defeating virtual monsters, collecting virtual resources, etc.), and is not limited here.

[0085] The virtual scene also includes a first virtual item, which differs from the second virtual item. Similarly, this first virtual item can be inherent to the virtual object itself, or it can be obtained by completing target tasks (such as achieving a score threshold through interaction, defeating virtual monsters, collecting virtual resources, etc.), without limitation here. It should be noted that each virtual item (including but not limited to the first and second virtual items) has a corresponding item skill, and each virtual item also has a corresponding skill control for that skill. This skill control is used to trigger the release of the item skill of the corresponding virtual item. Therefore, the first skill control of the first virtual item can be displayed. For an example, see... Figure 4 , Figure 4 This is a first display diagram of the first skill control provided in the embodiment of this application. Here, there are a total of 3 virtual props, each virtual prop has a corresponding skill control, and the prop icon (i.e. the prop pattern of the virtual prop) of the corresponding virtual prop is displayed on the skill control, such as the prop pattern of the virtual shooting prop is displayed on the first skill control of the first virtual prop.

[0086] In some embodiments, the first skill control of a first virtual prop in a virtual scene can be displayed by performing the following steps: obtaining interaction data of the virtual object interacting with other virtual objects in the virtual scene; based on the interaction data, calling a machine learning model to select the first virtual prop from multiple candidate virtual props; and displaying the first skill control of the first virtual prop.

[0087] Here, based on the interaction data of the virtual object interacting with other virtual objects in the virtual scene, the system can automatically select the first virtual prop to be displayed from multiple candidate virtual props for the user. For example, firstly, the system acquires the interaction data of the virtual object interacting with other virtual objects in the virtual scene. This interaction data can include: usage data of the virtual prop during the interaction (such as usage frequency, prop attack effects, etc.), scene data of the interaction, object data of other virtual objects (such as the virtual props used, virtual skills possessed, health points, defense points, attack points, etc.), and object data of the virtual object itself (such as the virtual props used, virtual skills possessed, health points, defense points, attack points, etc.). Then, a pre-trained machine learning model is acquired. This machine learning model can be built based on neural networks (such as convolutional neural networks, deep neural networks, recurrent neural networks), and trained on an initial machine learning model using interaction data samples and virtual prop labels. The interaction data is then input into the machine learning model, which predicts whether each candidate prop is the first virtual prop. Based on the prediction results, the first virtual prop is selected from multiple candidate virtual props, and then the first skill control of the first virtual prop is displayed. In this way, the first virtual item to be displayed can be automatically determined based on the user's interaction data, and then the first skill control of the first virtual item can be displayed for the user to use the first virtual item. This makes the displayed skill control more in line with the user's needs and improves the interactive experience and immersion of the virtual scene.

[0088] Step 102: In response to the first trigger operation on the first skill control, switch the second virtual item equipped on the virtual object to the first virtual item, and control the virtual object to use the first virtual item to release the first item skill.

[0089] Here, the first skill control integrates the switching control function for virtual props and the release control function for the prop skills of virtual props. When a first trigger operation is received for the first skill control, in response to the first trigger operation, the second virtual prop equipped on the virtual object is switched to the first virtual prop, and the virtual object is controlled to use the first virtual prop to release the first prop skill. In this way, 1) the number of displayed controls is reduced, improving the utilization rate of display resources; 2) two functions are controlled through a single skill control, reducing the human-computer interaction operations to achieve the interaction purpose, improving human-computer interaction efficiency and device processing resource utilization. It should be noted that the first trigger operation can include, but is not limited to, drag operations, press operations, double-click operations, single-click operations, etc., and is not limited here.

[0090] In some embodiments, in response to a first trigger operation on a first skill control, the second virtual item equipped on a virtual object can be switched to the first virtual item by performing the following steps: In response to the first trigger operation on the first skill control, if the first skill control is in an active state, the second virtual item equipped on the virtual object is switched to the first virtual item. Based on this, the following steps can also be performed: Displaying energy storage progress information for the first skill control during the energy storage process; when the energy storage progress information indicates that the first skill control has completed energy storage, controlling the first skill control to be in an active state.

[0091] Here, the first skill control is in an active state. It is activated by charging up energy. For example, a charging progress indicator can be displayed to show the charging progress. When the charging progress indicator indicates that the first skill control has completed charging, it is then activated. At this time, with the first skill control active, in response to a first trigger operation on the first skill control, the second virtual item equipped on the virtual object is switched to the first virtual item. See also... Figure 4 ,like Figure 4 As shown in (1), the first skill control is in an uncharged state, and its progress can be understood as 0. Figure 4 As shown in (2), the first skill control is in a charging state with a progress of 90%, as shown in (2). Figure 4 As shown in (3), the first skill control is in a fully charged (completed) state with a progress of 100%. At this time, the first skill control is in an active state. Figure 4 As shown in (1)-(3), the energy storage progress prompt information is displayed in the form of a progress bar. In practical applications, the energy storage progress prompt information can be any form of information, including but not displayed text, animations, images, videos, and sounds. After energy storage is complete, the energy storage progress prompt information can be distinguished from the energy storage progress prompt information when energy storage is not complete. For example, the energy storage progress prompt information after energy storage is complete can be animation information, such as displaying an animation effect of emitting light. In this way, the display effect of the virtual scene can be improved, thereby enhancing the user's immersion and interactive experience in the virtual scene.

[0092] In some embodiments, after switching the second virtual item equipped with the virtual object to the first virtual item, the first skill control can be controlled to switch from an active state to an inactive state, and then recharge in the inactive state until the charging process is completed again, at which point the first skill control is reactivated, making it active again. This enhances the interactive strategy of the virtual scene, thereby improving the user's immersion and interactive experience.

[0093] In some embodiments, in response to a first trigger operation on a first skill control, if the first trigger operation satisfies the skill release condition, the second virtual item equipped on the virtual object is switched to the first virtual item, and the virtual object is controlled to use the first virtual item to release the first item skill.

[0094] Here, the skill release conditions can be pre-set. Different first trigger operations result in different skill release conditions, and the same first trigger operation can correspond to one or more skill release conditions. When determining whether the first trigger operation satisfies the skill release conditions, the trigger operation parameters of the first trigger operation can be obtained. Then, the skill release conditions can be determined based on the trigger operation parameters. The following section provides a detailed explanation of the first trigger operation, its corresponding trigger operation parameters, and the skill release conditions.

[0095] In some embodiments, the first triggering operation includes a dragging operation. In response to the first triggering operation for the first skill control, the second virtual item equipped on the virtual object can be switched to the first virtual item by performing the following steps: In response to the dragging operation for the first skill control, if the dragging operation is released and the dragging parameters of the dragging operation meet the skill release conditions, the second virtual item equipped on the virtual object is switched to the first virtual item.

[0096] Here, the first triggering operation includes a drag operation. The user can trigger the switching control of virtual items and the release control of virtual item skills by dragging the first skill control. In response to a drag operation on the first skill control, if the drag operation is released, the drag parameters of the drag operation are obtained. If the drag parameters satisfy the skill release condition, the second virtual item equipped on the virtual object is switched to the first virtual item. In some embodiments, the drag parameters are determined to satisfy the skill release condition when at least one of the following conditions is met: the drag distance of the drag operation is greater than a drag distance threshold, the drag trajectory of the drag operation matches the target drag trajectory, and the release position of the drag operation is within the target area.

[0097] It should be noted that the drag distance is the straight-line distance between the starting position and the release position of the drag operation. This drag distance threshold can be set in advance based on experience. To determine whether the drag trajectory and the target drag trajectory match, the similarity between the two can be calculated (e.g., cosine similarity). When the similarity reaches the similarity threshold, the drag trajectory and the target drag trajectory are considered to match; when the similarity does not reach the similarity threshold, the drag trajectory and the target drag trajectory are considered to not match. This similarity threshold can be set in advance based on experience. The target drag trajectory can be manually set or generated based on artificial intelligence. The target area can be a region different from the control-associated area. The control-associated area can be a region with a target shape centered on the first skill control. This target shape includes, but is not limited to, circles, squares, triangles, rectangles, etc. For example, the control-associated area can be a circular region centered on the first skill control with a radius of a first length.

[0098] In this way, the switching and skill release of virtual props can be controlled by dragging, which is simple and smooth, improves the efficiency of human-computer interaction and the utilization of device resources, thereby enhancing the interactive experience and immersion of the virtual scene.

[0099] In some embodiments, the first skill control includes a fixed portion and a movable portion, and the drag operation on the first skill control is a drag operation on the movable portion of the first skill control; based on this, the following steps may also be performed: at least one of the following operations: during the process of dragging the movable portion based on the drag operation, the fixed portion is kept stationary; during the process of dragging the movable portion based on the drag operation, the progress of the skill release condition being met is displayed in the fixed portion.

[0100] Here, the first skill control includes a fixed part and a movable part. The drag operation described above refers to the drag operation of the movable part of the first skill control. See [link to relevant documentation]. Figure 5 , Figure 5 This is a second display schematic diagram of the first skill control provided in an embodiment of this application. For example... Figure 5 As shown in Figure (1), the first skill control includes a fixed part and a movable part, wherein the movable part is located on the upper layer of the fixed part.

[0101] During the dragging of a movable part, the fixed part remains stationary. Additionally, while dragging the movable part, the fixed part can display the progress of the skill release condition being met. This progress can be indicated by progress indicators, which can be of any form, including but not shown text, animations, images, etc. Feedback information, such as sound or vibration, can also be output simultaneously. It's important to note that the method for determining progress differs depending on the skill release condition. For example, if the skill release condition is that the dragging distance is greater than a threshold, the progress is determined by the difference between the threshold and the dragging distance; the smaller the difference, the greater the progress. If the skill release condition is that the dragging trajectory matches the target dragging trajectory, the progress is determined by the degree of matching between the two trajectories; the higher the degree of matching, the greater the progress. If the skill release condition is that the release position of the dragging operation is within the target area, the progress is determined by the distance between the action position of the dragging operation and the target area; the smaller the distance, the greater the progress. See also... Figure 5 ,like Figure 5 As shown in (2)-(4), the movable part moves downward according to the drag operation, while the fixed part remains stationary. At the same time, the fixed part displays a progress prompt message in the form of an animation. Here, the skill release condition is that the release position of the drag operation is in the target area (i.e., an area different from the circular area). As the distance between the action position of the drag operation and the target area becomes smaller and smaller, the progress increases and the animation effect of the progress prompt message becomes stronger and stronger.

[0102] Continuing, in response to the release of the drag operation, the process of the movable part returning to the fixed part is displayed. Here, when the drag operation is released, the movable part returns to the fixed part; see further... Figure 5 ,like Figure 5 As shown in (5), after the drag operation is released, the movable part returns to the fixed part. In this way, the feedback of interactive operations is enriched, and the interactive experience and immersion of the virtual scene are improved.

[0103] For example, see Figure 6 and Figure 7 , Figure 6 This is a schematic diagram of the first control flow for virtual props in an embodiment of this application. Figure 7 This is a schematic diagram of the second control flow for virtual props in an embodiment of this application. For example... Figure 6 As shown in (1), the first skill control is in an active state; as Figure 6 (2) and (3) and Figure 7As shown in (1), the movable part of the first skill control moves downwards according to the drag operation, while the fixed part remains stationary. Simultaneously, a progress indicator in the form of an animation is displayed on the fixed part. In this example, the skill release condition is that the release position of the drag operation is within the target area. As the distance between the drag operation's effective position and the target area decreases, the progress increases, and the animation effect of the progress indicator becomes stronger. Figure 7 As shown in (1), when the drag operation is applied to the target area and the drag operation is released, as follows: Figure 7 As shown in (2), after the drag operation is released, the movable part returns to the fixed part; since the release position of the drag operation is in the target area, the skill release condition is met. At this time, the second virtual prop equipped by the virtual object is switched to the first virtual prop, and the virtual object is controlled to use the first virtual prop to release the first prop skill.

[0104] In some embodiments, the first triggering operation includes a pressing operation. In response to the first triggering operation for the first skill control, the second virtual item equipped on the virtual object can be switched to the first virtual item by performing the following steps: In response to the pressing operation for the first skill control, if the pressing operation is released and the pressing parameters of the pressing operation meet the skill release conditions, the second virtual item equipped on the virtual object is switched to the first virtual item.

[0105] Here, the first triggering operation includes a pressing operation. The user can trigger the switching control of virtual items and the release control of virtual item skills by performing a pressing operation on the first skill control. In response to a pressing operation on the first skill control, if the pressing operation is released, the drag parameters of the pressing operation are obtained. If the pressing parameters satisfy the skill release condition, the second virtual item equipped on the virtual object is switched to the first virtual item. In some embodiments, the pressing parameters are determined to satisfy the skill release condition when at least one of the following conditions is met: the pressing duration of the pressing operation is greater than a pressing duration threshold, the pressing pressure of the pressing operation is greater than a pressing pressure threshold, and the pressing area of ​​the pressing operation is greater than a pressing area threshold.

[0106] It should be noted that the pressing duration threshold can be set in advance based on experience; the pressing force threshold can also be set in advance based on experience; and the pressing area threshold can also be set in advance based on experience.

[0107] In this way, the switching and skill release of virtual props can be controlled by pressing, which is simple and smooth, improving the efficiency of human-computer interaction and the utilization of device resources, thereby enhancing the interactive experience and immersion of the virtual scene.

[0108] In some embodiments, during the execution of the first triggering operation, in response to an operation cancellation instruction, the execution of the target operation is cancelled. The target operation is to switch the second virtual item equipped on the virtual object to the first virtual item, and control the virtual object to use the first virtual item to release the first item skill.

[0109] Here, during the execution of the first trigger operation, the user can also cancel the switching of virtual items and the release of virtual item skills by triggering a cancellation command. This means canceling the execution of the target operation, which refers to switching the second virtual item equipped on the virtual object to the first virtual item and controlling the virtual object to use the first virtual item to release its skill. Thus, during the execution of the first trigger operation, the switching of virtual items and the release of virtual item skills can be canceled by triggering a cancellation command, thereby improving the flexibility of interactive operations and ultimately enhancing the interactive experience of the virtual scene.

[0110] In some embodiments, the following steps may also be performed: the first triggering operation includes a drag operation, and an operation cancellation instruction may be received by performing the following steps: performing one of the following operations: if the drag operation is released and the drag parameters of the drag operation do not meet the skill release conditions, it is determined that an operation cancellation instruction has been received; if the release position of the drag operation is at the operation cancellation control, it is determined that an operation cancellation instruction has been received.

[0111] Here, the first triggering action includes a drag operation, so the action cancellation command can be triggered by doing one of the following:

[0112] 1) If, after a drag operation is released, it is determined that the drag parameters of the drag operation do not meet the skill release conditions, then an operation cancellation command is received. The drag parameters are considered not to meet the skill release conditions if any of the following conditions are not met: the drag distance is less than or equal to a drag distance threshold; the drag trajectory does not match the target drag trajectory; or the release position of the drag operation is not within the target area. In practical applications, during the execution of a drag operation, if the drag parameters meet the skill release conditions, and you wish to cancel the execution of the target operation, you can continue executing the drag operation until the current drag parameters no longer meet the skill release conditions before releasing the drag operation. For example, if the drag operation causes the drag distance to be greater than the drag distance threshold, you can continue executing the drag operation until the drag distance is less than or equal to the drag distance threshold; if the drag operation's effective position is within the target area, you can continue executing the drag operation until the effective position is not within the target area, and then release the drag operation, resulting in the release position not being within the target area; or if the drag trajectory matches the target drag trajectory, you can continue executing the drag operation until the drag trajectory does not match the target drag trajectory. 2) An operation cancellation control can also be provided. If the drag operation is released and the release position is at the operation cancellation control, then the operation cancellation command has been received. In this way, the switching of virtual props and the execution and cancellation of virtual prop skill releases can be realized through drag operations, which improves the flexibility of interactive operations and thus enhances the interactive experience of virtual scenes.

[0113] For example, see Figure 8A , Figure 8A This is a schematic diagram of the first triggering process of the operation cancellation instruction provided in the embodiments of this application. Figure 8B This is a schematic diagram of the second triggering process of the operation cancellation instruction provided in an embodiment of this application. Here, as... Figure 8A As shown in (1)-(2), after the drag operation is applied to the target area (a region different from the circular area), the drag operation can continue to be executed so that the applied area of ​​the drag operation is no longer in the target area (a region different from the circular area). At this time, releasing the drag operation will trigger the operation cancellation command. Figure 8B As shown in (1)-(2), when the drag parameters of the drag operation meet the skill release conditions, the drag operation continues to be executed so that the position of the drag operation is at the operation cancellation control. At this time, the drag operation is released, and the operation cancellation command is triggered.

[0114] In some embodiments, the following steps may also be performed: displaying a second skill control for the second virtual item; based on this, after switching the second virtual item equipped on the virtual object to the first virtual item, the following steps may also be performed: in response to a second trigger operation on the second skill control, switching the first virtual item equipped on the virtual object to the second virtual item.

[0115] Here, the second skill control of the second virtual item can be displayed. After the second virtual item equipped with the virtual object is switched to the first virtual item, in response to the second trigger operation (which is different from the first trigger operation) on the second skill control, the first virtual item equipped with the virtual object is switched to the second virtual item.

[0116] It should be noted that if it is not necessary to control the release of the first virtual item's skill, a sixth trigger operation can be triggered for the first skill control. This sixth trigger operation differs from the first trigger operation. In response to the sixth trigger operation for the first skill control, it only switches the second virtual item equipped on the virtual object to the first virtual item, without controlling the virtual object to use the first virtual item to release the first item's skill. In this way, through different trigger operations of the first skill control, more functional controls are achieved through a single control, further improving the utilization of display resources, human-computer interaction efficiency, and device processing resource utilization.

[0117] In some embodiments, the following steps may also be performed: Step 201, displaying a first object control of the target virtual object, the target virtual object having target object skills; Step 202, in response to a third trigger operation on the first object control, switching the virtual object to the target virtual object, and controlling the target virtual object to release the target object skills.

[0118] It should be noted that each virtual object (including but not limited to the virtual object and the target virtual object) has a corresponding object skill, and each virtual object also has an object control with the corresponding object skill. This object control is used to trigger the release of the corresponding virtual object's object skill. Therefore, the first object control of the target virtual object can be displayed. For an example, see [link to example]. Figure 9 , Figure 9 This is a schematic diagram of the display of the first object control provided in the embodiment of this application. Here, there are a total of 3 virtual objects, each virtual object has a corresponding object control, and the object identifier (i.e., the pattern of the virtual object) of the corresponding virtual object is displayed on the object control, such as the object pattern of the target virtual object being displayed on the first object control of the target virtual object.

[0119] Continuing, in response to the third trigger operation targeting the first object control, the virtual object is switched to the target virtual object, and the target virtual object is controlled to release the target object's skill. The first object control integrates the virtual object switching control function and the virtual object's skill release control function. When a third trigger operation is received targeting the first object control, in response to the third trigger operation, the virtual object is switched to the target virtual object, and the target virtual object is controlled to release the first object's skill. Thus, 1) the number of displayed controls is reduced, improving display resource utilization; 2) two functions are controlled through a single skill control, reducing human-computer interaction operations to achieve the interactive purpose, improving human-computer interaction efficiency and device processing resource utilization. It should be noted that the third trigger operation can include, but is not limited to, drag operations, press operations, double-click operations, single-click operations, etc., and is not limited here.

[0120] It should be noted that if it is not necessary to control the target virtual object to release the first object's skill, then a fifth trigger operation can be triggered for the first object control. This fifth trigger operation differs from the third trigger operation. In response to the fifth trigger operation for the first object control, it only switches the virtual object to the target virtual object, without controlling the target virtual object to release the target object's skill. Thus, through different trigger operations for the first object control, more functional controls are achieved through a single control, further improving display resource utilization, human-computer interaction efficiency, and device processing resource utilization.

[0121] It should be noted that the specific implementation method of step 201 above is the same as that of step 101 above, and will not be repeated here; the specific implementation method of step 202 above is the same as that of step 102 above, and will not be repeated here.

[0122] In some embodiments, the following steps may also be performed: displaying a second object control of the virtual object; based on this, after switching the virtual object to the target virtual object, the following steps may also be performed: switching the target virtual object to the virtual object in response to a fourth triggering operation on the second object control.

[0123] Here, a second object control can be displayed for the virtual object. After the virtual object is switched to the target virtual object, in response to a fourth trigger operation for the second object control (this fourth trigger operation is different from the third trigger operation), the target virtual object is switched to the virtual object.

[0124] In some embodiments, after controlling the virtual object to release the first item skill using the first virtual item, the following steps may also be performed: displaying an item restoration control; in response to a trigger operation on the item restoration control, restoring the first virtual item equipped by the virtual object to a second virtual item.

[0125] Here, the second virtual prop can be a specific virtual prop, such as the virtual prop most frequently used by the virtual object, the virtual prop most compatible with the virtual scene, or the default virtual prop used in the virtual scene. In this case, after controlling the virtual object to use the first virtual prop to release the first prop skill, a prop restoration control can be provided. When a trigger operation is received for this prop restoration control, the first virtual prop equipped by the virtual object can be switched to the second virtual prop. In this way, the rapid restoration of the second virtual prop is achieved. No matter which virtual prop is switched to, it can be quickly switched back to the second virtual prop, improving human-computer interaction efficiency and device resource utilization.

[0126] In some embodiments, the first skill control of a first virtual item in a virtual scene can be displayed by performing the following steps: displaying the first skill control of a first virtual item in a virtual scene that is in an available state; based on this, after controlling the virtual object to use the first virtual item to release the first item skill, the following steps can also be performed: controlling the first skill control to switch from an available state to an unavailable state and canceling the display of the first skill control; in response to the end of the unavailable state, displaying the first skill control.

[0127] Here, when displaying the first skill control of the first virtual item, the display can be based on whether the first skill control is in an available state. That is, if the first skill control is in an available state, it is displayed; if the first skill control is in an unavailable state, it is dedisplayed. This reduces the obstruction of the virtual scene by controls in the interface, improves the utilization of device display resources, and thus enhances the interactive experience of the virtual scene. Based on this, after controlling the virtual object to use the first virtual item to release the first item skill, the first skill control can be switched from an available state to an unavailable state, and its display can be dedisplayed. When the unavailable state of the first skill control ends, it is switched from an unavailable state to an available state and displayed. It should be noted that the unavailable state of the first skill control ends when at least one of the following termination conditions is met: the duration of the unavailable state reaches a duration threshold, or the interaction result data of the virtual object in the virtual scene (such as the number of defeated opponent virtual objects reaching a quantity threshold, the number of defeated specific virtual objects reaching a quantity threshold, etc.) indicates the end of the unavailable state.

[0128] In some embodiments, while displaying the first skill control in an available state, a control tooltip may also be displayed. This tooltip indicates that the first skill control is available, prompting the user to use it. The tooltip may be text, animation, video, sound, vibration, etc., and is not limited thereto.

[0129] In some embodiments, the virtual object can be controlled to release a first item skill using a first virtual item by performing the following steps: obtaining operation parameters of a first triggering operation; determining the skill strength of the first item skill based on the operation parameters; and controlling the virtual object to release a first item skill with skill strength using the first virtual item.

[0130] Here, the skill strength of the first item skill can change according to the actual operation of the first triggering operation. The skill strength of the first item skill indicates the effect produced by the first item skill during the interaction, such as the attack and control ability on the interactive object, the protection ability of the user, the duration of the skill, the cooldown time of the skill, the size of the skill's range, and the ability to cooperate with other skills, etc.

[0131] Therefore, when controlling a virtual object to release a first item skill using a first virtual item, the operation parameters of the first triggering operation can be obtained first. For example, when the first triggering operation is a drag operation, the operation parameters can include at least one of the following: drag distance, the matching degree between the drag trajectory and the target drag trajectory, and the region score of the sub-region where the release position of the drag operation is located in the target area. It should be noted that the matching degree between the drag trajectory and the target drag trajectory can be calculated based on similarity, such as cosine similarity; the target area can be pre-divided into multiple sub-regions, each with a corresponding region score. For example, when the first triggering operation is a press operation, the operation parameters can include at least one of the following: press duration, press pressure, and press area.

[0132] After obtaining the operation parameters for the first trigger operation, the skill strength of the first item skill is determined based on these parameters. For example, a mapping relationship between operation parameters and skill strength can be obtained, and then the skill strength of the first item skill can be determined based on this relationship. Alternatively, a machine learning model for predicting skill strength can be obtained and invoked to predict the skill strength of the first item skill based on the operation parameters. This machine learning model can be built based on neural networks (such as convolutional neural networks, deep neural networks, recurrent neural networks, etc.) and can be pre-trained, for example, by training an initial machine learning model based on operation parameter samples and skill strength labels. Finally, the virtual object can be controlled to use the first virtual item, releasing the first item skill with its assigned skill strength. In this way, users can control the skill strength of the released first item skill by triggering different first-trigger operation parameters, increasing the strategic depth, interactive diversity, and playability of the virtual scene, thereby enhancing immersion and user engagement.

[0133] Applying the above embodiments of this application, a first skill control for a first virtual item in a virtual scene is displayed. When a first trigger operation is received for the first skill control, in response to the first trigger operation, the second virtual item equipped on the virtual object is switched to the first virtual item, and the virtual object is controlled to use the first virtual item to release the first item skill of the first virtual item. Here, the switching control function of the virtual item and the release control function of the item skill of the virtual item are integrated into a single skill control. Thus, 1) the number of displayed controls is reduced, improving the utilization rate of display resources; 2) two functions are controlled through a single skill control, reducing the human-computer interaction operations to achieve the interaction purpose, and improving the efficiency of human-computer interaction and the utilization rate of device processing resources.

[0134] The following uses a virtual scene as an example to illustrate an exemplary application of the embodiments of this application in a real-world application scenario.

[0135] See Figure 10 , Figure 10 This is a schematic diagram of a virtual item control method provided in related technologies. Here, two controls are provided to implement two independent functions: a character switching control to control the switching of virtual characters, and a skill control to control the release of skills by the virtual character. When controlling the virtual character to switch characters and release skills, the virtual character is first switched using the character switching control, and then the skill control is used to release the skill; that is, switching virtual characters and using virtual character skills are independent of each other. Therefore, the related technologies have the following problems: 1) Although the interaction purpose is achieved, the control area occupies too large a proportion of the screen space (e.g., ...). Figure 10 As shown, a total of 6 controls are needed to switch between 3 virtual characters and release corresponding skills, and this cannot be further compressed, resulting in low utilization of display resources. When the basic operation area of ​​the game becomes more complex and requires more space, the relevant technology cannot adapt to more complex game functions. 2) Because the character switching control and skill control need to perform interactive operations separately, more human-computer interaction operations are required to achieve the interaction purpose, resulting in low human-computer interaction efficiency and low utilization of device resources.

[0136] Based on this, this application provides a method for controlling virtual items to at least solve the aforementioned problems. Specifically, it integrates the switching control of virtual items (or virtual characters) and the skill release control of virtual items (or virtual characters) into a single interactive control. The interaction process will be explained below using virtual items as an example. Since the switching control of virtual items and the skill release control of virtual items are integrated into a single skill control, therefore...

[0137] (1) When the virtual object holds virtual item 1, in response to the pressing operation of the skill control for virtual item 2, the skill control is controlled to be in a pressed state; a drag operation is received for the skill control in the pressed state; when the drag distance of the skill control reaches a specific threshold, in response to the release of the drag operation, the virtual object's held item is controlled to switch from virtual item 1 to virtual item 2, and the virtual object is controlled to use virtual item 2 to release the item skill.

[0138] (2) When the virtual object holds virtual item 1, in response to the trigger operation (such as click operation, double-click operation) of the skill control for virtual item 2, control the virtual object to switch from holding virtual item 1 to holding virtual item 2.

[0139] (3) When the virtual object holds the virtual item 1, in response to the pressing operation of the skill control for the virtual item 1, the skill control is controlled to be in a pressed state; a drag operation is received for the skill control in the pressed state; when the drag distance of the skill control reaches a specific threshold, in response to the release of the drag operation, the virtual object is controlled to use the virtual item 1 to release the item skill.

[0140] Through the embodiments of this application, the above-mentioned... Figure 10 While fulfilling all existing functional requirements, only 3 response areas are needed to achieve the functions that originally required 6 click response areas through different interaction methods (click + drag). That is, the embodiments of this application have the following technical effects: (1) It can reduce the number of functional controls and hot zones, greatly reducing the screen space ratio of functional areas, providing more screen space for complex games, and enhancing adaptability; (2) The addition of the "drag operation" interaction method changes and innovates the interaction method when players participate in the game, and enhances the richness of the game interaction experience.

[0141] The control method for virtual props provided in the embodiments of this application will be described in detail below.

[0142] Taking three virtual props (defined from left to right in the human-computer interaction interface as the skill controls for virtual props 1, 2, and 3, respectively) as an example, each virtual prop has a corresponding skill. In this embodiment, it is necessary to implement the switching of virtual props and the release of the virtual prop's skill, and the two are independent. That is, switching virtual props does not result in the release of the skill; when the skill needs to be released, the purpose of switching virtual props and releasing the skill is achieved through a single interaction (drag) interface. The following is a detailed explanation. It should be noted that the movement distance mentioned below refers to the straight-line distance, that is, the straight-line distance between the original position of the skill control and the current position of the skill control (i.e., the position after being dragged).

[0143] (1) See Figure 4 In (2), virtual prop 1 (i.e. the first virtual prop mentioned above) is accumulating energy, virtual prop 2 is in use (in the selected state, i.e., the virtual object holds virtual prop 2), and virtual prop 3 is in the default state.

[0144] (2) See Figure 4 In the middle (3), when virtual item 1 has finished charging, that is, when the item skill of virtual item meets the conditions for use, the item skill can be released. At this time, the item skill of virtual item 1 can be indicated by the animation.

[0145] (3) See Figure 6 In step (1), the player presses and drags the skill control of virtual item 1 to release the item's skill. Specifically, the skill control of virtual item 1 can be dragged in any direction. See [link to documentation]. Figure 6 In steps (2)-(3), drag the skill control of virtual item 1 downwards, and display the prompt animation of item skill 1 at the original position. As the skill control is dragged, the further the skill control is from the original position, the stronger the prompt animation of item skill 1 becomes, until the movement distance of the skill control exceeds the distance threshold (i.e., the skill release condition is met), at which point the prompt animation reaches its maximum (see [link]). Figure 7 (1) See also Figure 7 In step (2), after the skill control moves more than the distance threshold, the drag operation is released. At this time, the virtual object is switched from holding virtual item 2 to holding virtual item 1, and the item skill of virtual item 1 is released simultaneously. In addition, the skill control of virtual item 1 can also bounce back to its original position. When the player wants to cancel the release of the item skill, he can drag the skill control of virtual item 1 before releasing the drag operation so that the movement distance of the skill control does not exceed the distance threshold. Then, when the drag operation is released, the skill control of virtual item 1 bounces back to its original position, and the item skill is not released.

[0146] (4) See Figure 11 The item skills of multiple virtual items (i.e., virtual items 1-3) are in a releaseable state (i.e., the item skills meet the item usage conditions), meaning all three skill controls are active. At this time, regardless of which virtual item is selected, simply drag the skill control of the virtual item whose item skill you want to release, and drag the skill control beyond the distance threshold, to switch to the corresponding virtual item and release the corresponding item skill.

[0147] In summary, the key technical indicators in the embodiments of this application include:

[0148] (1) Split the interaction method. The function that originally required two clicks on two controls can be replaced by clicking and dragging the same control, thus reducing one control.

[0149] (2) The distance threshold for dragging operations is configurable. When the movement distance of the skill control of the virtual item exceeds the distance threshold, the dragging operation is released and the item skill is released; when the movement distance of the skill control of the virtual item does not exceed the distance threshold, the dragging operation is released and the item skill is not released, thus canceling the release of the skill.

[0150] (3) Enhance the prompt "whether the distance threshold has been reached" through underlying animation effects. For example, the animation effect is: as the skill control is dragged, the drawer gradually opens (i.e., the item layer of the skill control is moved away, and the skill layer covered by the item layer is displayed) and a light is displayed. At the same time, as the drawer is opened to a larger size, the light becomes stronger until the drawer is fully opened. Then, the drag operation is released, and the item skill is released at the same time as the light explodes. The skill control is controlled to bounce back to its original position.

[0151] See Figure 4 During the charging process of a virtual item's skill, a charging indicator message can be displayed. This message indicates the charging progress, such as "Not charging (normal state)" - "Charging" - "Charging complete". Clicking the skill control of a virtual item allows you to switch the virtual object's held item to that virtual item; dragging the skill control controls allows you to control the release of the virtual item's skill.

[0152] See Figure 5 In section (1), the skill controls for virtual items are divided into an item layer (the movable part) and a skill layer (the fixed part). The item layer covers the skill layer. After the virtual item is fully charged, the item layer can be dragged, while the skill layer remains stationary. Specifically, dragging the skill control beyond the "absorption threshold (i.e., the aforementioned distance threshold)" and releasing the drag operation will release the item skill; dragging the skill control before it reaches the "absorption threshold" and releasing the drag operation will not release the item skill, and the item layer will bounce back to its original position. Here, the "absorption threshold" and the operation feedback of the drag operation (such as vibration, sound, etc.) can be set according to requirements.

[0153] See Figure 5 The animation effects indicate whether the skill release condition has been met. As the skill control is dragged, the animation effects of the skill layer intensify until the "attraction threshold" is reached, at which point the animation reaches its maximum. Releasing the drag at this point causes the animation to explode. Here, removing the item layer reveals more of the skill layer's content. In implementation, the animation effects should be designed with the goal of clearly indicating whether the skill release condition has been met, avoiding interference with gameplay information.

[0154] In other embodiments, the drag operation described above can be adjusted to other operations (such as double-clicking) to increase the diversity of interaction and enhance the richness of the game interaction experience.

[0155] By applying the above embodiments of this application, (1) the number of functional controls and hot zones can be reduced, the screen space ratio of functional areas is greatly reduced, more screen space is provided for complex games, and the adaptability is enhanced; (2) the addition of the "drag operation" interaction method makes the interaction method of players participating in the game change and innovate, and improves the richness of the game interaction experience.

[0156] The following description continues to illustrate the exemplary structure of the virtual prop control device 555 provided in the embodiments of this application as a software module. In some embodiments, such as... Figure 2 As shown, the software modules in the virtual prop control device 555 stored in the memory 550 may include: a display module 5551, used to display a first skill control of a first virtual prop in a virtual scene, the virtual scene including a virtual object equipped with a second virtual prop, the first virtual prop having a first prop skill; and a control module 5552, used to switch the second virtual prop equipped on the virtual object to the first virtual prop in response to a first trigger operation on the first skill control, and control the virtual object to use the first virtual prop to release the first prop skill.

[0157] In some embodiments, the first triggering operation includes a drag operation, and the control module 5552 is further configured to, in response to a drag operation on the first skill control, if the drag operation is released and the drag parameters of the drag operation meet the skill release conditions, switch the second virtual item equipped on the virtual object to the first virtual item.

[0158] In some embodiments, the control module 5552 is further configured to determine that the dragging parameter satisfies the skill release condition when at least one of the following conditions is met: the dragging distance of the dragging operation is greater than the dragging distance threshold, the dragging trajectory of the dragging operation matches the target dragging trajectory, and the release position of the dragging operation is in the target area.

[0159] In some embodiments, the first skill control includes a fixed portion and a movable portion, and a drag operation on the first skill control is a drag operation on the movable portion of the first skill control. The display module 5551 is further configured to perform at least one of the following operations: during the process of dragging the movable portion based on the drag operation, control the fixed portion to remain stationary; during the process of dragging the movable portion based on the drag operation, display the progress of the skill release condition being met in the fixed portion.

[0160] In some embodiments, the display module 5551 is further configured to display the process of the movable portion returning to the fixed portion in response to the release of the drag operation.

[0161] In some embodiments, the first triggering operation includes a pressing operation, and the control module 5552 is further configured to, in response to a pressing operation on the first skill control, if the pressing operation is released and the pressing parameters of the pressing operation meet the skill release conditions, switch the second virtual item equipped on the virtual object to the first virtual item.

[0162] In some embodiments, the control module 5552 is further configured to determine that the pressing parameter satisfies the skill release condition when at least one of the following conditions is met: the pressing duration of the pressing operation is greater than the pressing duration threshold, the pressing force of the pressing operation is greater than the pressing force threshold, and the pressing area of ​​the pressing operation is greater than the pressing area threshold.

[0163] In some embodiments, the display module 5551 is further configured to display a second skill control for the second virtual item; the control module 5552 is further configured to, in response to a second trigger operation on the second skill control, switch the first virtual item equipped on the virtual object to the second virtual item after the second virtual item equipped on the virtual object is switched to the first virtual item.

[0164] In some embodiments, the display module 5551 is further configured to display a first object control of the target virtual object, the target virtual object having target object skills; the control module 5552 is further configured to, in response to a third trigger operation on the first object control, switch the virtual object to the target virtual object, and control the target virtual object to release the target object skills.

[0165] In some embodiments, the display module 5551 is further configured to display a second object control of the virtual object; the control module 5552 is further configured to, after the virtual object is switched to the target virtual object, switch the target virtual object to the virtual object in response to a fourth trigger operation on the second object control.

[0166] In some embodiments, the display module 5551 is further configured to acquire interaction data of the virtual object interacting with other virtual objects in the virtual scene; based on the interaction data, call a machine learning model to select the first virtual prop from multiple candidate virtual props; and display the first skill control of the first virtual prop.

[0167] In some embodiments, the control module 5552 is further configured to respond to a first trigger operation on the first skill control, and if the first skill control is in an active state, switch the second virtual item equipped on the virtual object to the first virtual item; the display module 5551 is further configured to display energy storage progress prompt information of the first skill control during the energy storage process; and when the energy storage progress prompt information indicates that the first skill control has completed energy storage, control the first skill control to be in the active state.

[0168] In some embodiments, the control module 5552 is further configured to display an item restoration control after controlling the virtual object to release the first item skill using the first virtual item; and in response to a trigger operation on the item restoration control, restore the first virtual item equipped by the virtual object to the second virtual item.

[0169] In some embodiments, the control module 5552 is further configured to, in response to the operation cancellation instruction, cancel the execution of the target operation during the execution of the first triggering operation, wherein the target operation is: to switch the second virtual item equipped on the virtual object to the first virtual item, and to control the virtual object to use the first virtual item to release the first item skill.

[0170] In some embodiments, the first triggering operation includes a drag operation, and the control module 5552 is further configured to perform one of the following operations: if the drag operation is released and the drag parameters of the drag operation do not meet the skill release conditions, determine that the operation cancellation instruction has been received; if the release position of the drag operation is at the operation cancellation control, determine that the operation cancellation instruction has been received.

[0171] In some embodiments, the display module 5551 is further configured to display a first skill control of a first virtual prop in an available state in a virtual scene; the display module 5551 is further configured to control the first skill control to switch from the available state to the unavailable state and cancel the display of the first skill control after the virtual object is controlled to use the first virtual prop to release the first prop skill; and to display the first skill control in response to the end of the unavailable state.

[0172] In some embodiments, the control module 5552 is further configured to acquire operation parameters of the first triggering operation; determine the skill strength of the first item skill based on the operation parameters; and control the virtual object to release the first item skill with the skill strength using the first virtual item.

[0173] It should be noted that the description of the device embodiments in this application is similar to the description of the method embodiments described above, and has similar beneficial effects as the method embodiments, so it will not be repeated here. Any technical details not covered in the control device for virtual items provided in the embodiments of this application can be understood based on the description of the technical details in the above method embodiments.

[0174] This application also provides a computer program product, which includes computer-executable instructions or a computer program stored in a computer-readable storage medium. The processor of an electronic device reads the computer-executable instructions or computer program from the computer-readable storage medium and executes the computer-executable instructions or computer program, causing the electronic device to perform the virtual prop control method provided in this application.

[0175] This application also provides a computer-readable storage medium storing computer-executable instructions or computer programs. When the computer-executable instructions or computer programs are executed by a processor, the processor will execute the virtual item control method provided in this application.

[0176] 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 it may be a variety of devices including one or any combination of the above-mentioned memories.

[0177] In some embodiments, computer-executable instructions may take the form of programs, software, software modules, scripts, 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 stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.

[0178] As an example, computer-executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple co-located files (e.g., files that store one or more modules, subroutines, or code sections).

[0179] As an example, computer-executable instructions can be deployed to execute on a single electronic device, or on multiple electronic devices located at one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.

[0180] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.

Claims

1. A method for controlling virtual props, characterized in that, The method includes: Displays a first skill control for a first virtual item in a virtual scene, wherein the virtual scene includes a virtual object equipped with a second virtual item, and the first virtual item has a first item skill; In response to a first trigger operation on the first skill control, the second virtual item equipped on the virtual object is switched to the first virtual item, and the virtual object is controlled to use the first virtual item to release the first item skill.

2. The method as described in claim 1, characterized in that, The first triggering operation includes a dragging operation. The step of switching the second virtual item equipped on the virtual object to the first virtual item in response to the first triggering operation on the first skill control includes: In response to a drag operation on the first skill control, if the drag operation is released and the drag parameters of the drag operation meet the skill release conditions, the second virtual item equipped on the virtual object is switched to the first virtual item.

3. The method as described in claim 2, characterized in that, The method further includes: The drag parameter is determined to satisfy the skill release condition when at least one of the following conditions is met: The dragging operation has the following conditions: the dragging distance is greater than the dragging distance threshold, the dragging trajectory matches the target dragging trajectory, and the release position of the dragging operation is within the target area.

4. The method as described in claim 2, characterized in that, The first skill control includes a fixed portion and a movable portion. A drag operation on the first skill control refers to a drag operation on the movable portion of the first skill control. The method further includes: Do at least one of the following: During the process of dragging the movable part based on the drag operation, the fixed part is kept stationary. During the process of dragging the movable part based on the drag operation, the progress of the skill release condition being met is displayed in the fixed part.

5. The method as described in claim 4, characterized in that, The method further includes: In response to the release of the drag operation, the process of the movable part returning to the fixed part is displayed.

6. The method as described in claim 1, characterized in that, The first triggering operation includes a pressing operation, and the step of switching the second virtual item equipped on the virtual object to the first virtual item in response to the first triggering operation on the first skill control includes: In response to a press operation on the first skill control, if the press operation is released and the press parameters of the press operation meet the skill release conditions, the second virtual item equipped on the virtual object is switched to the first virtual item.

7. The method as described in claim 1, characterized in that, The method further includes: Displays the second skill control for the second virtual item; After switching the second virtual item equipped on the virtual object to the first virtual item, the method further includes: In response to a second trigger operation on the second skill control, the first virtual item equipped on the virtual object is switched to the second virtual item.

8. The method as described in claim 1, characterized in that, The method further includes: A first object control displays a target virtual object, the target virtual object having target object skills; In response to a third trigger operation on the first object control, the virtual object is switched to the target virtual object, and the target virtual object is controlled to release the target object skill.

9. The method as described in claim 8, characterized in that, The method further includes: A second object control that displays the virtual object; After switching the virtual object to the target virtual object, the method further includes: In response to a fourth trigger operation on the second object control, the target virtual object is switched to the virtual object.

10. The method as described in claim 1, characterized in that, The first skill control for displaying the first virtual prop in the virtual scene includes: Obtain interaction data between the virtual object and other virtual objects in the virtual scene; Based on the interaction data, a machine learning model is invoked to select the first virtual item from multiple candidate virtual items; The first skill control for the first virtual item is displayed.

11. The method as described in claim 1, characterized in that, The step of switching the second virtual item equipped on the virtual object to the first virtual item in response to a first trigger operation on the first skill control includes: In response to a first trigger operation on the first skill control, if the first skill control is in an active state, the second virtual item equipped on the virtual object is switched to the first virtual item; The method further includes: Displays the energy accumulation progress information of the first skill control during the energy accumulation process; When the energy storage progress indication information indicates that the first skill control has completed energy storage, the first skill control is controlled to be in the activated state.

12. The method as described in claim 1, characterized in that, After controlling the virtual object to use the first virtual item to release the first item skill, the method further includes: Display item restoration controls; In response to a trigger operation on the item restoration control, the first virtual item equipped on the virtual object is restored to the second virtual item.

13. The method as described in claim 1, characterized in that, The method further includes: During the execution of the first triggering operation, in response to the operation cancellation command, the execution of the target operation is cancelled. The target operation is to switch the second virtual item equipped on the virtual object to the first virtual item, and control the virtual object to use the first virtual item to release the first item skill.

14. The method as described in claim 13, characterized in that, The first triggering operation includes a drag operation, and the method further includes: Do one of the following: If the drag operation is released and the drag parameters of the drag operation do not meet the skill release conditions, it is determined that the operation cancellation instruction has been received; If the release position of the drag operation is at the operation cancellation control, it is determined that the operation cancellation instruction has been received.

15. The method as described in claim 1, characterized in that, The first skill control for displaying the first virtual prop in the virtual scene includes: Displays the first skill control of the first virtual item that is available in the virtual scene; After controlling the virtual object to use the first virtual item to release the first item skill, the method further includes: Control the first skill control to switch from the available state to the unavailable state, and de-display the first skill control; In response to the end of the unavailable state, the first skill control is displayed.

16. The method as described in claim 1, characterized in that, The control of the virtual object to use the first virtual item to release the first item skill includes: Obtain the operation parameters of the first triggered operation; Based on the aforementioned operational parameters, the skill strength of the first item skill is determined; Control the virtual object to use the first virtual item to release a first item skill with the skill strength.

17. A control device for virtual props, characterized in that, The device includes: The display module is used to display the first skill control of the first virtual prop in the virtual scene. The virtual scene includes a virtual object equipped with a second virtual prop, and the first virtual prop has a first prop skill. The control module is configured to, in response to a first trigger operation on the first skill control, switch the second virtual item equipped on the virtual object to the first virtual item, and control the virtual object to use the first virtual item to release the first item skill.

18. An electronic device, characterized in that, The electronic device includes: Memory is used to store executable instructions for a computer; A processor, when executing computer-executable instructions stored in the memory, implements the control method for virtual props according to any one of claims 1 to 16.

19. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, the virtual prop control method 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 program are executed by a processor, the virtual prop control method according to any one of claims 1 to 16 is implemented.