Virtual article object interaction control method and device and storage medium

By determining the interaction conditions and switching states when virtual characters interact with object objects, the problem of excessive resource consumption under behavior tree control is solved, and flexible interaction control is achieved.

CN121222073APending Publication Date: 2025-12-30TENCENT TECH SHANGHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410856524.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2025-12-30

AI Technical Summary

Technical Problem

In existing technologies, using behavior trees to control the interactive state of virtual item objects leads to an increase in computing and storage resources, thus increasing the burden of interactive control.

Method used

When a controlled virtual character interacts with a virtual item object in a target trigger area, the target interaction conditions are determined, and the virtual item object is switched from its current state to the target state according to the interaction mode. The original state is automatically restored when the state restoration conditions are met.

Benefits of technology

It simplifies the interaction control of virtual item objects, reduces resource consumption, and solves the problem of increased interaction control burden.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121222073A_ABST
    Figure CN121222073A_ABST
Patent Text Reader

Abstract

The invention discloses an interaction control method and device for a virtual article object and a storage medium. The method comprises the steps of displaying a virtual scene where a controlled virtual character which is about to execute a virtual task is located, wherein the virtual scene comprises at least one virtual article object; under the condition that the controlled virtual character interacts with a target triggering area matched with a target virtual article object in the at least one virtual article object, determining a target interaction condition corresponding to triggering the target virtual article object; according to an interaction mode indicated by the target interaction condition, switching the target virtual article object from a current first interaction state to a second interaction state; and under the condition that the target virtual article object in the second interaction state reaches the state recovery condition, recovering the target virtual article to the first interaction state. The technical problem that the interaction control burden of the virtual article object is increased in the interaction control mode of the virtual article object provided in the related technology is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and more specifically, to an interactive control method, apparatus, and storage medium for virtual item objects. Background Technology

[0002] To enhance the realism of game scenes, virtual object objects are usually set up in the game scene to simulate real-world objects. These virtual object objects are often configured with multiple different interactive states. For example, when a player in the game scene triggers an interaction condition corresponding to a virtual object object, the virtual object object is controlled to switch to the corresponding interactive state.

[0003] Currently, most of the interaction control logic configured for virtual item objects in related technologies references the behavior trees used by non-player characters (NPCs) in game scenes. These behavior trees are used to manage and organize multiple candidate state decisions associated with virtual item objects, ultimately achieving complex game tasks and objectives.

[0004] However, if behavior trees are used to control virtual item objects, it is necessary to periodically traverse and check each behavior node in the behavior tree configured for the virtual item object. This method of confirming the interaction state to be switched for the virtual item object by traversing and polling the behavior tree greatly increases the computing and storage resources consumed by the control process, thus leading to a technical problem of increased burden on the interactive control of virtual item objects.

[0005] There is currently no effective solution to the above problems. Summary of the Invention

[0006] This application provides an interactive control method, apparatus, and storage medium for virtual item objects, to at least solve the technical problem of increased interactive control burden of virtual item objects in the interactive control methods of virtual item objects provided in related technologies.

[0007] According to one aspect of the embodiments of this application, an interaction control method for virtual item objects is provided, comprising: displaying a virtual scene in which a controlled virtual character to perform a virtual task is located, wherein the virtual scene includes at least one virtual item object; determining a target interaction condition corresponding to triggering the target virtual item object when the controlled virtual character interacts with a target trigger area matching a target virtual item object among the at least one virtual item object; switching the target virtual item object from its current first interaction state to a second interaction state according to the interaction mode indicated by the target interaction condition; and restoring the target virtual item object to its first interaction state when the target virtual item object in the second interaction state meets a state restoration condition.

[0008] According to one aspect of the embodiments of this application, another method for interactive control of virtual item objects is provided, comprising: obtaining the position of a controlled virtual character to perform a virtual task in a virtual scene, wherein the virtual scene includes at least one virtual item object; determining a target interaction condition corresponding to the target virtual item object when the controlled virtual character interacts with a target trigger area matching a target virtual item object among the at least one virtual item object based on the position of the controlled virtual character; sending the target interaction condition to a terminal so that the terminal switches the target virtual item object from its current first interaction state to a second interaction state according to the interaction mode indicated by the target interaction condition, and the terminal also controls the target virtual item to return to the first interaction state when the target virtual item object in the second interaction state reaches the state recovery condition.

[0009] According to another aspect of the embodiments of this application, an interactive control device for virtual item objects is also provided, comprising: a display unit for displaying a virtual scene in which a controlled virtual character to perform a virtual task is located, wherein the virtual scene includes at least one virtual item object; a determination unit for determining a target interaction condition corresponding to triggering the target virtual item object when the controlled virtual character interacts with a target trigger area that matches the target virtual item object among the at least one virtual item object; a switching unit for switching the target virtual item object from its current first interaction state to a second interaction state according to the interaction mode indicated by the target interaction condition; and a recovery unit for restoring the target virtual item object to the first interaction state when the target virtual item object in the second interaction state meets the state recovery condition.

[0010] Optionally, in this embodiment, the switching unit includes: a first determining module, configured to determine the state switching time of the target virtual item object based on the interaction mode indicated by the target interaction conditions; and a first switching module, configured to switch the target virtual item object from a first interaction state to a second interaction state according to the state switching time.

[0011] Optionally, in this embodiment, the first determining module is further configured to: when the interaction mode indicated by the target interaction condition is an instant switching mode, determine the interaction time when the controlled virtual character interacts with the target trigger area as the state switching time of the target virtual item object.

[0012] Optionally, in this embodiment, the first determining module is further configured to: when the interaction mode indicated by the target interaction condition is a delayed switching mode, obtain the interaction time when the controlled virtual character interacts with the target trigger area; and superimpose a delay duration matching the target interaction condition onto the interaction time to obtain the state switching time of the target virtual item object.

[0013] Optionally, in this embodiment, the determining unit includes: a second acquisition module, used to acquire the duration of the target virtual item object in the second interactive state when the target virtual item object is a reusable item object; and a second switching module, used to restore the target virtual item from the second interactive state to the first interactive state when the duration reaches a recovery duration threshold, wherein the recovery duration threshold is configured for the target virtual item object based on the interaction time between the controlled virtual character and the target trigger area.

[0014] Optionally, in this embodiment, the above-mentioned device further includes: a clearing unit, used to clear the target virtual item object in the second interactive state when the target virtual item object is a consumable item object; an acquisition unit, used to acquire a reference virtual item object from the item object pool to which the target virtual item object belongs, wherein the object similarity between the reference virtual item object and the target virtual item object is higher than a target threshold; and a first display unit, used to display the reference virtual item object in the third interactive state at the location of the target virtual item object in the first interactive state in the virtual scene.

[0015] Optionally, in this embodiment, the above-mentioned device further includes: a first acquisition unit, configured to acquire target reward resources matching the target virtual item object in the second interaction state when the object type of the target virtual item object is indicated as a benefit-type item object; and transfer the target reward resources to the controlled virtual character; and a deduction unit, configured to determine the virtual resources currently possessed by the controlled virtual character when the object type of the target virtual item object is indicated as a damage-type item object; and deduct the resource loss consumed by the target virtual item object in the second interaction state from the virtual resources to obtain updated virtual resources.

[0016] Optionally, in this embodiment, the above-mentioned device further includes: a first determining unit, configured to determine the target task triggered by the target virtual item object in the second interactive state when the object type of the target virtual item object is indicated as a task-triggered item object; and a second display unit, configured to display the task sub-scene created for the target task in the virtual scene.

[0017] Optionally, in this embodiment, the above-mentioned device further includes: a second determining unit, configured to determine a first associated virtual item object connected to the target virtual item object on the interaction triggering link when the target virtual item object is located at the starting position of the interaction triggering link, wherein the interaction triggering link includes multiple virtual item objects; a second obtaining unit, configured to obtain the link interaction triggering condition corresponding to the first associated virtual item object; and a control unit, configured to control the first associated virtual item object to switch the interaction state according to the indication of the link interaction triggering condition.

[0018] Optionally, in this embodiment, the above-mentioned device further includes: a third determining unit, configured to, after obtaining the link interaction triggering condition corresponding to the first associated virtual item object, determine the triggering link interaction triggering condition when it is determined that the target virtual item object is uniquely connected to the first associated virtual item object and the target virtual item object has been switched to the second interaction state; and a first switching unit, configured to switch the first associated virtual item object from the current fourth interaction state to the fifth interaction state according to the interaction mode indicated by the link interaction triggering condition.

[0019] Optionally, in this embodiment, the above-mentioned device further includes: a third determining unit, configured to determine the current interaction state of the second associated virtual item object when, based on all the connection relationships of the first associated virtual item object on the interaction triggering link, it is determined that the first associated virtual item object is connected to the second associated virtual item object, and the second associated virtual item object is located before the first associated virtual item object on the interaction triggering link; and to determine the triggering link interaction triggering condition when the target virtual item object has switched to the second interaction state, and the current interaction state of the second associated virtual item object indicates that the switching of the interaction state has been completed; and a second switching unit, configured to switch the first associated virtual item object from its current fourth interaction state to the fifth interaction state according to the interaction mode indicated by the link interaction triggering condition.

[0020] Optionally, in this embodiment, the switching unit further includes: a second determining module, used to determine the area block where the controlled virtual character is currently located in the virtual scene; a third obtaining module, used to obtain a list of virtual item objects attached to the area block, wherein the list of virtual item objects includes the object identifier of the virtual item object whose trigger area is located on the area block; and a third determining module, used to determine that the controlled virtual character interacts with the target trigger area that matches the target virtual item object when the object identifier of the target virtual item object is found in the list of virtual item objects.

[0021] Optionally, in this embodiment, the switching unit further includes: a fourth acquisition module, used to acquire the interaction state control field configured for the target virtual item object; and a third switching module, used to control the target virtual item object to switch from the first interaction state corresponding to the first value to the second interaction state corresponding to the second value when the interaction state control field is adjusted from the first value to the second value according to the server's instruction.

[0022] According to another aspect of the embodiments of this application, another interactive control device for virtual item objects is also provided, including: an acquisition unit, configured to acquire the position of a controlled virtual character to perform a virtual task in a virtual scene, wherein the virtual scene includes at least one virtual item object; a determination unit, configured to determine a target interaction condition corresponding to the target virtual item object when the controlled virtual character is determined to interact with a target trigger area matching the target virtual item object among the at least one virtual item object based on the position of the controlled virtual character; and a sending unit, configured to send the target interaction condition to a terminal, so that the terminal switches the target virtual item object from its current first interaction state to a second interaction state according to the interaction mode indicated by the target interaction condition, and the terminal also controls the target virtual item to return to the first interaction state when the target virtual item object in the second interaction state reaches the state recovery condition.

[0023] Optionally, in this embodiment, the above-mentioned device further includes: a configuration unit, configured to configure a recovery duration threshold for the target virtual item object when the target virtual item object is a reusable item object, wherein when the duration of the target virtual item object in the second interactive state reaches the recovery duration threshold, it will be restored from the second interactive state to the first interactive state.

[0024] Optionally, in this embodiment, the above-mentioned device further includes: a first acquisition unit, configured to acquire a reference virtual item object from the item object pool to which the target virtual item object belongs when the target virtual item object is a consumable item object, wherein the object similarity between the reference virtual item object and the target virtual item object is higher than a target threshold; and a first sending unit, configured to send the reference virtual item object in the third interaction state to the terminal.

[0025] Optionally, in this embodiment, the above-mentioned device further includes: a first determining unit, configured to determine a first associated virtual item object connected to the target virtual item object on the interaction triggering link when the target virtual item object is located at the starting position of the interaction triggering link after the terminal switches the target virtual item object to the second interaction state according to the interaction mode indicated by the target interaction conditions, wherein the interaction triggering link includes multiple virtual item objects; a second obtaining unit, configured to obtain the link interaction triggering conditions corresponding to the first associated virtual item object; and a control unit, configured to send the link interaction triggering conditions to the terminal so that the terminal controls the first associated virtual item object to switch the interaction state according to the indication of the link interaction triggering conditions.

[0026] Optionally, in this embodiment, the above-mentioned device further includes: a second determining unit, used to determine the terminal trigger link interaction triggering condition when it is determined that the target virtual item object is uniquely connected to the first associated virtual item object and the target virtual item object has switched to the second interaction state.

[0027] Optionally, in this embodiment, the above-mentioned device further includes: a third determining unit, configured to determine the current interaction state of the second associated virtual item object when it is determined that the first associated virtual item object and the second associated virtual item object are connected based on all the connection relationships of the first associated virtual item object on the interaction triggering link, and the second associated virtual item object is located before the first associated virtual item object on the interaction triggering link; and a fourth determining unit, configured to determine the terminal triggering link interaction triggering condition when the target virtual item object has switched to the second interaction state, and the current interaction state of the second associated virtual item object indicates that the switching of the interaction state has been completed.

[0028] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the above-described interactive control method for virtual item objects at runtime.

[0029] According to another aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the interactive control method for virtual item objects as described above.

[0030] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the above-described interactive control method for virtual item objects through the computer program.

[0031] In this embodiment, a virtual scene is displayed where the controlled virtual character to perform a virtual task is located. The virtual scene includes at least one virtual item object. Then, when the controlled virtual character interacts with a target trigger area matching a target virtual item object among the at least one virtual item objects, a target interaction condition corresponding to triggering the target virtual item object is determined. Next, according to the interaction mode indicated by the target interaction condition, the target virtual item object is switched from its current first interaction state to a second interaction state. Furthermore, when the target virtual item object in the second interaction state meets the state recovery condition, the target virtual item is restored to its first interaction state. In other words, by employing this embodiment, when a target virtual item is triggered, by controlling the target virtual item to switch from its current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction condition, and then automatically restoring the target virtual item to its first interaction state when the state recovery condition is met, the purpose of simplifying the interaction control of virtual item objects is achieved. This reduces the resources consumed in the interaction control of virtual item objects, thus solving the technical problem in related technologies where the use of behavior trees to control virtual item objects increases the burden of interaction control. Attached Figure Description

[0032] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0033] Figure 1 This is a schematic diagram of an application environment for an optional interactive control method for virtual item objects according to an embodiment of this application;

[0034] Figure 2 This is a flowchart of an optional interactive control method for virtual item objects according to an embodiment of this application;

[0035] Figure 3 This is a schematic diagram of an optional interactive control method for virtual item objects according to an embodiment of this application;

[0036] Figure 4 This is a schematic diagram of an optional interactive control method for virtual item objects according to an embodiment of this application;

[0037] Figure 5 This is a schematic diagram of an optional interactive control method for virtual item objects according to an embodiment of this application;

[0038] Figure 6 This is a flowchart of an optional interactive control method for virtual item objects according to an embodiment of this application;

[0039] Figure 7 This is a flowchart of an optional interactive control method for virtual item objects according to an embodiment of this application;

[0040] Figure 8 This is a schematic diagram of an optional interactive control method for virtual item objects according to an embodiment of this application;

[0041] Figure 9 This is a schematic diagram of an optional interactive control method for virtual item objects according to an embodiment of this application;

[0042] Figure 10 This is a schematic diagram of an optional interactive control method for virtual item objects according to an embodiment of this application;

[0043] Figure 11 This is a flowchart of an optional interactive control method for virtual item objects according to an embodiment of this application;

[0044] Figure 12 This is a schematic diagram of the structure of an optional interactive control device for virtual item objects according to an embodiment of this application;

[0045] Figure 13 This is a schematic diagram of the structure of another optional interactive control device for virtual item objects according to an embodiment of this application;

[0046] Figure 14 This is a schematic diagram of the structure of an optional electronic device according to an embodiment of this application;

[0047] Figure 15 This is a schematic diagram of the structure of another optional electronic device according to an embodiment of this application. Detailed Implementation

[0048] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0049] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0050] According to one aspect of the embodiments of this application, an interactive control method for virtual item objects is provided. Optionally, as an optional implementation, the interactive control of the virtual item objects can be applied to, but is not limited to, [examples of other methods]. Figure 1 In the environment shown. For example... Figure 1 As shown, the terminal device 102 includes a memory 104 for storing various data generated during its operation, a processor 106 for processing and calculating the aforementioned data, and a display 108 for displaying the virtual scene. The terminal device 102 can interact with the server 112 via a network 110. The server 112 is connected to a database 114, which stores various data. The terminal device 102 can run the application program corresponding to the aforementioned virtual task.

[0051] Furthermore, the above method in Figure 1 The specific application process in the environment shown is as follows:

[0052] In step S102, the terminal device 102 displays the virtual scene where the controlled virtual character who is to perform the virtual task is located, wherein the virtual scene includes at least one virtual item object.

[0053] In step S104, the terminal device 102 sends the location of the controlled virtual character in the virtual scene to the server 112 via the network 110.

[0054] In step S106, when the controlled virtual character interacts with the target trigger area that matches the target virtual item object in at least one virtual item object, the server 112 sends the target interaction condition corresponding to the trigger target virtual item object to the terminal device 102 through the network 110.

[0055] In step S108, the terminal device 102 switches the target virtual item object from the current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction conditions.

[0056] In step S110, the terminal device 102 sends a request to the server 112 via the network 110 to request whether the target virtual item object in the second interactive state has met the state recovery conditions.

[0057] Step S112: When the server 112 determines that the target virtual item object in the second interactive state has reached the state recovery condition, it sends determination information to the terminal device 102 through the network 110 to indicate that the target virtual item object in the second interactive state has reached the state recovery condition.

[0058] In step S114, the terminal device 102 restores the target virtual item to the first interactive state.

[0059] In this embodiment, a virtual scene is displayed where the controlled virtual character to perform a virtual task is located. The virtual scene includes at least one virtual item object. Then, when the controlled virtual character interacts with a target trigger area matching a target virtual item object among the at least one virtual item objects, a target interaction condition corresponding to triggering the target virtual item object is determined. Next, according to the interaction mode indicated by the target interaction condition, the target virtual item object is switched from its current first interaction state to a second interaction state. Furthermore, when the target virtual item object in the second interaction state meets the state recovery condition, the target virtual item is restored to its first interaction state. In other words, by employing this embodiment, when a target virtual item is triggered, by controlling the target virtual item to switch from its current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction condition, and then automatically restoring the target virtual item to its first interaction state when the state recovery condition is met, the purpose of simplifying the interaction control of virtual item objects is achieved. This reduces the resources consumed in the interaction control of virtual item objects, thus solving the technical problem in related technologies where the use of behavior trees to control virtual item objects increases the burden of interaction control.

[0060] It should be noted that, in another optional embodiment, if the computing power and storage capacity of the aforementioned terminal device reach the predetermined capacity, the following steps can also be performed independently by the aforementioned terminal device:

[0061] S1, displays the virtual scene where the controlled virtual character to perform the virtual task is located, wherein the virtual scene includes at least one virtual item object;

[0062] S2, when the controlled virtual character interacts with the target trigger area that matches the target virtual item object in at least one virtual item object, determine the target interaction condition corresponding to the trigger target virtual item object;

[0063] S3, according to the interaction mode indicated by the target interaction conditions, switch the target virtual item object from the current first interaction state to the second interaction state;

[0064] S4, if the target virtual item object in the second interactive state meets the state restoration conditions, restore the target virtual item to the first interactive state.

[0065] In this embodiment, a virtual scene is displayed where the controlled virtual character to perform a virtual task is located. The virtual scene includes at least one virtual item object. Then, when the controlled virtual character interacts with a target trigger area matching a target virtual item object among the at least one virtual item objects, a target interaction condition corresponding to triggering the target virtual item object is determined. Next, according to the interaction mode indicated by the target interaction condition, the target virtual item object is switched from its current first interaction state to a second interaction state. Furthermore, when the target virtual item object in the second interaction state meets the state recovery condition, the target virtual item is restored to its first interaction state. In other words, by employing this embodiment, when a target virtual item is triggered, by controlling the target virtual item to switch from its current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction condition, and then automatically restoring the target virtual item to its first interaction state when the state recovery condition is met, the purpose of simplifying the interaction control of virtual item objects is achieved. This reduces the resources consumed in the interaction control of virtual item objects, thus solving the technical problem in related technologies where the use of behavior trees to control virtual item objects increases the burden of interaction control.

[0066] Optionally, in this embodiment, the terminal device can be a terminal device configured with a target client, which may include, but is not limited to, at least one of the following: mobile phone (such as Android phone, iOS phone, etc.), laptop computer, tablet computer, PDA, MID (Mobile Internet Devices), PAD, desktop computer, smart TV, etc. The target client may be a video client, instant messaging client, browser client, educational client, etc. The network may include, but is not limited to, wired network and wireless network, wherein the wired network includes: local area network, metropolitan area network and wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that enable wireless communication. The server may be a single server, a server cluster composed of multiple servers, or a cloud server. The above is only an example, and no limitation is made in this embodiment.

[0067] Alternatively, as an alternative solution, such as Figure 2 As shown, the interaction control method for the aforementioned virtual item object can be applied to the terminal side, but is not limited to, including:

[0068] S202, Display the virtual scene where the controlled virtual character to perform the virtual task is located, wherein the virtual scene includes at least one virtual item object.

[0069] Optionally, the interaction control method for the aforementioned virtual item objects can be applied to, but is not limited to, game scenes. Specifically, it controls the interaction of virtual game items within the virtual game scene corresponding to the game. The aforementioned virtual task can be, but is not limited to, used to indicate game tasks in the target game; the aforementioned controlled virtual character can be, but is not limited to, used to indicate character objects controlled by the target account in the target game; the aforementioned virtual scene can be, but is not limited to, used to indicate the virtual game scene corresponding to the target game; the aforementioned virtual item objects can include, but are not limited to, reusable item objects, consumable items, buff item objects, damage item objects, task trigger item objects, etc., and are not limited in this embodiment.

[0070] Specifically, the aforementioned reusable item objects can be, but are not limited to, indicating item objects that can be triggered repeatedly, such as plants, doors, cabinets, lamps, artworks, rocks, buildings, sculptures, decorations, etc., and this embodiment does not impose any limitations on this. The aforementioned consumable item objects can be, but are not limited to, indicating item objects that can only be triggered once, such as fireworks, food, water, daily necessities, etc., and this embodiment also does not impose any limitations on this. The aforementioned buff item objects can be, but are not limited to, indicating item objects that can provide benefits to the aforementioned controlled virtual character, such as buff virtual items, etc., and this embodiment does not impose any limitations on this. The aforementioned damage item objects can be, but are not limited to, indicating item objects that can cause damage to the aforementioned controlled virtual character, such as damage virtual items, virtual traps, etc., and this embodiment does not impose any limitations on this.

[0071] S204, when the controlled virtual character interacts with the target trigger area that matches the target virtual item object in at least one virtual item object, determine the target interaction condition corresponding to the trigger target virtual item object.

[0072] It should be noted that, in this embodiment, the aforementioned target triggering area is an area that has an association with the target virtual item. Specifically, the target triggering area may, but is not limited to, be located on the target virtual item object, or it may be located outside the target virtual item object; this embodiment does not impose any limitations on this. For example, assuming the target virtual item object is a box, the aforementioned target triggering area may, but is not limited to, as shown in the example. Figure 3 As shown in (a), on the target virtual item object, it is also possible to... Figure 3 As shown in (b), it is located around the target virtual item object.

[0073] It should be noted that the above examples are optional examples provided to explain the interaction control method of the virtual item object, and there are no limitations on the implementation of the interaction control method of the virtual item object.

[0074] Furthermore, the interaction between the controlled virtual character and the target trigger area that matches the target virtual item object in at least one virtual item object may include, but is not limited to: the controlled virtual character entering the target trigger area corresponding to the target virtual item object; the controlled virtual character touching the target trigger area corresponding to the target virtual item object; the controlled virtual character completing the interaction operation (e.g., conversation interaction operation) of a non-game player character located in the target trigger area corresponding to the target virtual item object, etc., which are not limited in this embodiment.

[0075] S206, according to the interaction mode indicated by the target interaction conditions, switch the target virtual item object from the current first interaction state to the second interaction state.

[0076] It should be noted that, in this embodiment, the aforementioned target interaction conditions determine the interaction mode of the target virtual item object. Optionally, the aforementioned target interaction conditions are not limited to being triggered by the aforementioned controlled virtual character, but can also be triggered by other virtual item objects that are associated with the target virtual item object; this embodiment does not impose any limitations on this.

[0077] Optionally, in this embodiment, the above-mentioned interaction mode may include, but is not limited to, an instant interaction mode and a delayed interaction mode. Specifically, when the above-mentioned interaction mode is an instant interaction mode, the above-mentioned switching of the target virtual item object from the current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction conditions may include, but is not limited to, switching the target virtual item object from the current first interaction state to the second interaction state during the interaction time when the controlled virtual character interacts with the target trigger area.

[0078] Furthermore, when the above-mentioned interaction mode is a delayed interaction mode, the above-mentioned switching of the target virtual item object from the current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction conditions may include, but is not limited to: obtaining the interaction time when the controlled virtual character interacts with the target trigger area; and after superimposing a delay duration matching the target interaction conditions on the interaction time, switching the target virtual item object from the current first interaction state to the second interaction state.

[0079] Optionally, in this embodiment, the first interaction state and the second interaction state may, but are not limited to, be different interaction states of the same type. The interaction state may, but is not limited to, indicate the interaction state between the virtual item object and the controlled virtual character, or include the display state of the target virtual item in the virtual scene and the sound effect playback state of the target virtual item in the virtual scene.

[0080] Specifically, when the target virtual item object is a buff item, a damage item, or a quest-triggered item, the aforementioned interaction state can, but is not limited to, indicating the interaction state between the virtual item object and the controlled virtual character. For example, when the target virtual item object is a buff item, the aforementioned interaction state can, but is not limited to, indicating whether the target virtual item object provides a buff to the controlled virtual character; when the target virtual item object is a damage item, the aforementioned interaction state can, but is not limited to, indicating whether the target virtual item object inflicts damage on the controlled virtual character; and when the target virtual item object is a quest-triggered item, the aforementioned interaction state can, but is not limited to, indicating whether the target virtual item object provides a quest sub-scene for the controlled virtual character.

[0081] Furthermore, when the target virtual item is a reusable or consumable item, the aforementioned interaction states can, but are not limited to, indicating the display state of the target virtual item in the virtual scene and the sound effect playback state of the target virtual item in the virtual scene. The display state of the target virtual item in the virtual scene can, but is not limited to, include at least one of the following: display color, display brightness, display range, display shape, on / off state, display material, normal or hidden display, playback state of associated special effects animations, etc., and there are no limitations on this in this embodiment. The aforementioned sound effect playback state can, but is not limited to, indicating the playback state of associated target audio, etc., and there are also no limitations on this in this embodiment. For example, assuming the target virtual item is used to indicate a virtual box, the aforementioned first interaction state can be used to indicate the virtual box's closed state, and the aforementioned second interaction state can, but is not limited to, indicating the virtual box's open state.

[0082] It should be noted that the above examples are optional examples provided to explain the interaction control method of the virtual item object, and there are no limitations on the implementation of the interaction control method of the virtual item object.

[0083] S208, if the target virtual item object in the second interactive state meets the state restoration conditions, restore the target virtual item to the first interactive state.

[0084] Optionally, in this embodiment, the above-mentioned state recovery condition may be, but is not limited to, indicating that the duration of the target virtual item object in the second interactive state reaches the target duration.

[0085] As an optional example, assuming the target virtual object is a street lamp, and assuming the interaction mode indicated by the target interaction condition is instant interaction, it can be based on, but is not limited to, such as... Figure 4The following examples illustrate the above method:

[0086] like Figure 4 As shown in (a), the virtual scene includes a controlled virtual character 402 and a target virtual item object 404, with the target virtual item object 404 in an unlit state. Next, as... Figure 4 As shown in (b), when the controlled virtual character 402 enters the target trigger area corresponding to the target virtual item object 404, the target interaction condition corresponding to the target virtual item object is determined. Then, the interaction state of the target virtual item object 404 is switched from an unlit state to an lit state. Next, if the duration of the lit state of the target virtual item object 404 reaches a predetermined duration, as shown in (b), the following steps are taken: Figure 4 As shown in (c), the interaction state of the target virtual item object 404 is then restored from the lit state to the unlit state.

[0087] It should be noted that the above examples are optional examples provided to explain the interaction control method of the virtual item object, and there are no limitations on the implementation of the interaction control method of the virtual item object.

[0088] In this embodiment, a virtual scene is displayed where the controlled virtual character to perform a virtual task is located. The virtual scene includes at least one virtual item object. Then, when the controlled virtual character interacts with a target trigger area matching a target virtual item object among the at least one virtual item objects, a target interaction condition corresponding to triggering the target virtual item object is determined. Next, according to the interaction mode indicated by the target interaction condition, the target virtual item object is switched from its current first interaction state to a second interaction state. Furthermore, when the target virtual item object in the second interaction state meets the state recovery condition, the target virtual item is restored to its first interaction state. In other words, by employing this embodiment, when a target virtual item is triggered, by controlling the target virtual item to switch from its current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction condition, and then automatically restoring the target virtual item to its first interaction state when the state recovery condition is met, the purpose of simplifying the interaction control of virtual item objects is achieved. This reduces the resources consumed in the interaction control of virtual item objects, thus solving the technical problem in related technologies where the use of behavior trees to control virtual item objects increases the burden of interaction control.

[0089] Optionally, as an alternative approach, switching the target virtual item object from its current first interaction state to a second interaction state according to the interaction mode indicated by the target interaction conditions includes:

[0090] S1, based on the interaction mode indicated by the target interaction conditions, determines the state switching time of the target virtual item object.

[0091] S2, according to the state switching time, switch the target virtual item object from the first interactive state to the second interactive state.

[0092] Optionally, the aforementioned interaction modes may include, but are not limited to, instant interaction modes and delayed interaction modes. Further, determining the state switching time of the target virtual item object based on the interaction mode indicated by the target interaction conditions may include, but is not limited to, determining the interaction time between the controlled virtual character and the target trigger area as the state switching time of the target virtual item object when the interaction mode indicated by the target interaction conditions is an instant switching mode. When the interaction mode indicated by the target interaction conditions is a delayed switching mode, obtaining the interaction time between the controlled virtual character and the target trigger area; and superimposing a delay duration matching the target interaction conditions onto the interaction time to obtain the state switching time of the target virtual item object.

[0093] In this embodiment, the state switching time of the target virtual item object is determined based on the interaction mode indicated by the target interaction conditions. Then, according to the state switching time, the target virtual item object is switched from the first interaction state to the second interaction state. In other words, by adopting this embodiment, the method of switching the target virtual item object from the first interaction state to the second interaction state according to the state switching time makes the interaction state switching of the target virtual item object more flexible, thereby achieving the technical effect of improving the flexibility of interactive control of the virtual item object.

[0094] Optionally, as an alternative approach, determining the state transition time of the target virtual item object based on the interaction mode indicated by the target interaction conditions includes:

[0095] When the interaction mode indicated by the target interaction condition is the instant switching mode, the interaction time when the controlled virtual character interacts with the target trigger area is determined as the state switching time of the target virtual item object.

[0096] In this embodiment, when the interaction mode indicated by the target interaction condition is an instant switching mode, the interaction time during which the controlled virtual character interacts with the target trigger area is determined as the state switching time of the target virtual item object. In other words, by adopting this embodiment, and switching the target virtual item object from a first interaction state to a second interaction state according to the state switching time, the interaction state switching of the target virtual item object becomes more flexible, thereby achieving the technical effect of improving the flexibility of interactive control of the virtual item object.

[0097] Optionally, as an alternative approach, determining the state transition time of the target virtual item object based on the interaction mode indicated by the target interaction conditions includes:

[0098] When the interaction mode indicated by the target interaction conditions is a delayed switching mode, obtain the interaction time when the controlled virtual character interacts with the target trigger area;

[0099] By superimposing a delay duration matching the target interaction conditions onto the interaction time, the state transition time of the target virtual item object is obtained.

[0100] For example, if the interaction time between the controlled virtual character and the target trigger area is 12:00:00, and the above delay time is 5 seconds, then the switching time for the target virtual item object to switch from the first interaction state to the second interaction state should be 12:00:05.

[0101] It should be noted that the above examples are optional examples provided to explain the interaction control method of the virtual item object, and there are no limitations on the implementation of the interaction control method of the virtual item object.

[0102] In this embodiment, when the interaction mode indicated by the target interaction condition is a delayed switching mode, the interaction time between the controlled virtual character and the target trigger area is obtained. Then, a delay duration matching the target interaction condition is superimposed on the interaction time to obtain the state switching time of the target virtual item object. In other words, by adopting this embodiment, the target virtual item object is switched from a first interaction state to a second interaction state according to the state switching time, making the interaction state switching of the target virtual item object more flexible, thereby achieving the technical effect of improving the flexibility of interactive control of virtual item objects.

[0103] Optionally, as an alternative approach, restoring the target virtual item to the first interactive state when the target virtual item in the second interactive state meets the state restoration conditions includes:

[0104] S1, if the target virtual item object is a reusable item object, obtain the duration of the target virtual item object in the second interactive state.

[0105] S2, if the duration reaches the recovery duration threshold, restore the target virtual item from the second interaction state to the first interaction state. The recovery duration threshold is configured for the target virtual item object during the interaction time when the controlled virtual character interacts with the target trigger area.

[0106] It should be noted that, in this embodiment, the aforementioned recovery time is configured for the target virtual item object by triggering a timer during the interaction time when the controlled virtual character interacts with the target trigger area. Specifically, a timer with a duration equal to the recovery time threshold is pre-configured for the target virtual item object. Then, when the controlled virtual character interacts with the target trigger area, the timer is triggered to start counting. Once the timer's duration reaches the recovery time threshold, the target virtual item is then restored from the second interaction state to the first interaction state.

[0107] In this embodiment, when the target virtual item object is a reusable item object, the duration of the target virtual item object in the second interactive state is obtained. Then, when the duration reaches a recovery duration threshold, the target virtual item is restored from the second interactive state to the first interactive state. The recovery duration threshold is configured for the target virtual item object based on the interaction time between the controlled virtual character and the target trigger area. In other words, by employing this embodiment, when the target virtual item is triggered, the interaction mode control according to the target interaction conditions switches the target virtual item from its current first interactive state to the second interactive state. Then, when the state recovery condition is met, the target virtual item is automatically restored to the first interactive state. This simplifies the interactive control of virtual item objects and reduces the resources consumed in controlling virtual item objects. This solves the technical problem in related technologies where the use of behavior trees to control virtual item objects increases the burden of interactive control.

[0108] Optionally, as an alternative approach, after switching the target virtual item object from its current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction conditions, the method further includes:

[0109] S1, if the target virtual item object is a consumable item object, clear the target virtual item object in the second interaction state.

[0110] Optionally, the aforementioned clearing of the target virtual item object in the second interactive state may, but is not limited to, be used to indicate that the target virtual item object will not be displayed in the aforementioned virtual scene.

[0111] S2, obtain a reference virtual item from the item object pool to which the target virtual item object belongs, wherein the object similarity between the reference virtual item object and the target virtual item object is higher than the target threshold.

[0112] Optionally, in this embodiment, the item object pool to which the target virtual item object belongs may include, but is not limited to, various types of virtual item objects configured in the virtual scene. The reference virtual item object may be, but is not limited to, the same type of consumable item object as the target virtual item object, or a similar consumable item object; this embodiment does not impose any limitations on this.

[0113] For example, assuming the target virtual item is a virtual firework, the reference virtual item could also be a virtual firework, or a virtual firecracker similar to a virtual firework. It should be noted that the above example is an optional illustration provided to explain the interaction control method for the virtual item, and does not limit the implementation of the interaction control method for the virtual item.

[0114] S3 displays a reference virtual item object in the third interactive state at the location of the target virtual item object in the first interactive state in the virtual scene.

[0115] Optionally, the aforementioned third interactive state may, but is not limited to, indicate the default state of the aforementioned reference virtual object. For example, assuming the aforementioned reference virtual object is a virtual firecracker, the aforementioned third interactive state may, but is not limited to, indicate the unlit state of the firecracker.

[0116] It should be noted that the above examples are optional examples provided to explain the interaction control method of the virtual item object, and there are no limitations on the implementation of the interaction control method of the virtual item object.

[0117] In this embodiment, when the target virtual item object is a consumable item object, the target virtual item object in the second interaction state is cleared. Then, a reference virtual item object is obtained from the item object pool to which the target virtual item object belongs, wherein the object similarity between the reference virtual item object and the target virtual item object is higher than a target threshold. Subsequently, at the location of the target virtual item object in the first interaction state in the virtual scene, the reference virtual item object in the third interaction state is displayed. In other words, by using this embodiment, clearing the target virtual item object when it is a consumable item object, and then displaying the reference virtual item object in the third interaction state at the location of the target virtual item object in the first interaction state in the virtual scene after clearing it, the realism of the interactive control of virtual item objects is improved.

[0118] Optionally, as an alternative approach, after switching the target virtual item object from its current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction conditions, the method further includes:

[0119] If the object type of the target virtual item is indicated as a gain-type item, acquire the target reward resource that matches the target virtual item in the second interaction state; transfer the target reward resource to the controlled virtual character.

[0120] For example, assuming the target virtual item is an energy replenishment item used to replenish the stamina of a controlled virtual character, then after the target virtual item switches from its current first interaction state to its second interaction state, the target stamina corresponding to the energy replenishment item will be transferred to the controlled virtual character.

[0121] It should be noted that the above examples are optional examples provided to explain the interaction control method of the virtual item object, and there are no limitations on the implementation of the interaction control method of the virtual item object.

[0122] If the target virtual item object is identified as a damage-type item object, determine the virtual resources currently possessed by the controlled virtual character; deduct the resource loss consumed by the target virtual item object in the second interaction state from the virtual resources to obtain the updated virtual resources.

[0123] For example, assuming the target virtual item is a trap item used to deduct the character's stamina from the controlled virtual character, after the target virtual item switches from the first interaction state to the second interaction state, the stamina consumed by the trap item will be deducted from the controlled virtual character's current stamina, resulting in an updated character stamina.

[0124] It should be noted that the above examples are optional examples provided to explain the interaction control method of the virtual item object, and there are no limitations on the implementation of the interaction control method of the virtual item object.

[0125] In this embodiment, when the object type of the target virtual item is indicated as a buff-type item, a target reward resource matching the target virtual item in the second interaction state is obtained; the target reward resource is then transferred to the controlled virtual character. When the object type of the target virtual item is indicated as a damage-type item, the virtual resources currently possessed by the controlled virtual character are determined; the resource loss consumed by the target virtual item in the second interaction state is deducted from the virtual resources to obtain updated virtual resources. In other words, by utilizing the triggered target virtual item to bring buffs or damage to the controlled virtual character, this embodiment achieves the technical effect of enriching the interactive control methods of virtual item objects and improving the user experience.

[0126] Optionally, as an alternative approach, after switching the target virtual item object from its current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction conditions, the method further includes:

[0127] If the object type of the target virtual item is indicated as a task-triggered item object, determine the target task triggered by the target virtual item object in the second interaction state.

[0128] Displayed in the virtual scene as a task sub-scene created for the target task.

[0129] Optionally, in this embodiment, the aforementioned task triggering item object can be used, but is not limited to, to trigger and start a target task, and to provide a task scenario for the target task. For example, assuming the task triggering item object is a race track, then the target task can be used, but is not limited to, to indicate a race task, and the aforementioned task sub-scenario can be used, but is not limited to, to indicate a scenario including a race track.

[0130] It should be noted that the above examples are optional examples provided to explain the interaction control method of the virtual item object, and there are no limitations on the implementation of the interaction control method of the virtual item object.

[0131] In this embodiment, when the object type of the target virtual item object is indicated as a task-triggered item object, the target task triggered by the target virtual item object in the second interactive state is determined. Then, a task sub-scene created for the target task is displayed in the virtual scene. In other words, by using this embodiment to create a task sub-scene for the target task through the target virtual item object, the technical effect of enriching the interactive control methods of virtual item objects and improving the user experience is achieved.

[0132] Optionally, as an alternative approach, after switching the target virtual item object from its current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction conditions, the method further includes:

[0133] S1, when the target virtual item object is located at the starting position of the interaction triggering link, determine the first associated virtual item object connected to the target virtual item object on the interaction triggering link, wherein the interaction triggering link includes multiple virtual item objects.

[0134] It should be noted that, in this embodiment, different virtual item objects can create interaction trigger chains by configuring association relationships. Specifically, a change in the interaction state of a virtual item object at an earlier node in the interaction trigger chain can trigger a change in the interaction state of other virtual item objects at the same earlier node.

[0135] S2, obtain the link interaction trigger condition corresponding to the first associated virtual item object.

[0136] Optionally, the aforementioned link interaction triggering conditions may be, but are not limited to, indicating the manner in which the preceding virtual item object associated with the first associated virtual item object triggers the first associated virtual item object, and the interaction state switch to be performed after the first associated virtual item object is triggered. For example, the aforementioned link interaction triggering conditions may, but are not limited to, controlling the first associated virtual item object to switch from the fourth object state to the fifth object state when the target virtual item object switches from the first interaction state to the second interaction state; or controlling the first associated virtual item object to switch from the fifth object state to the fourth object state when the target virtual item object switches from the second interaction state to the first interaction state, etc., and no limitation is made in this embodiment. In addition, the aforementioned link interaction triggering conditions also include the interaction mode of the first associated virtual item object.

[0137] S3, according to the instructions of the link interaction trigger conditions, controls the first associated virtual item object to switch the interaction state.

[0138] It should be noted that, in this embodiment, a virtual item object (including the aforementioned first associated virtual item object, the aforementioned target item virtual object, and other virtual item objects) may, but is not limited to, be associated with one virtual item object, or may be associated with multiple virtual item objects. Furthermore, in the interaction triggering chain where the virtual item object resides, there may be one or more associated virtual item objects before the virtual item object, and there may also be one or more associated virtual item objects after the virtual item object; this embodiment does not impose any limitations on this.

[0139] For example, if there is only one virtual item in the previous node associated with the current virtual item, the previous virtual item associated with the current virtual item will send a signal to the current virtual item to trigger the change in its interaction state after the interaction is switched. Then, upon receiving the signal, the current virtual item will switch its own interaction state.

[0140] For another example, if the number of virtual item objects in the previous node associated with the current virtual item object is greater than one, after the interaction switch, the multiple virtual item objects in the previous node associated with the current virtual item object will each send a signal to the current virtual item object to trigger the change in its interaction state. Then, when the current virtual item object receives the signals sent by each of the aforementioned multiple virtual item objects, it switches its own interaction state; or, when the current virtual item object receives the signal sent by any one of the aforementioned multiple virtual item objects, it switches its own interaction state.

[0141] It should be noted that the above examples are optional examples provided to explain the interaction control method of the virtual item object, and there are no limitations on the implementation of the interaction control method of the virtual item object.

[0142] It should be noted that each virtual item object in the interaction triggering chain can, but is not limited to, be abstracted as a single device object. In this embodiment, the interaction logic of logic gates is used to transmit and switch the interaction states of device objects in the interaction triggering chain. Specifically, after the previous device object in the interaction triggering chain completes its interaction state switch, it sends a signal to the next device object connected to it. Upon receiving the signal, the next device object switches its own interaction state and then transmits the signal to the next device object. For example, the structure of the aforementioned device object can, but is not limited to, as shown below. Figure 5 As shown, it includes: a state execution module 502, used to receive signals and update the interaction state of the target device accordingly; a calculation bit enumeration 504, used to store the operators that calculate their own state based on the input; and an interaction mode control module 506, used to determine the interaction mode of the target device, including a delayed trigger mode, a delayed recovery mode, and an instant trigger mode. The target device also stores the ID of the current device object, the ID of the associated previous device object, the ID of the associated next device object, the current interaction state of the device object, the delay time corresponding to the delayed trigger mode, and the recovery time corresponding to the delayed recovery mode.

[0143] It should be noted that the above examples are optional examples provided to explain the interaction control method of the virtual item object, and there are no limitations on the implementation of the interaction control method of the virtual item object.

[0144] Optionally, in this embodiment, the interaction state switching logic of the device object corresponding to the target virtual item object can be, but is not limited to, referring to, as shown in the example below. Figure 6 The following example is shown:

[0145] S602, trigger layer detects signal, specifically, the trigger layer receives the signal sent by the previous associated device object;

[0146] S604, attribute detection layer detects the state change corresponding to the attribute layer, specifically, it determines the state change to be executed based on the signal and the object information of the device object;

[0147] S606, the execution layer updates the state of the virtual object; specifically, it executes the state changes output by the attribute detection layer.

[0148] It should be further noted that, to prevent infinite loops during state transitions between related virtual item objects, a state transition exit mechanism is implemented for virtual item objects located in the same interaction trigger chain. Specifically, each virtual item object in a group of virtual item objects in an interaction trigger chain is only allowed to perform a state update operation once within a state update cycle.

[0149] For example, such as Figure 7 As shown, virtual item A is associated with virtual item B, virtual item B is associated with virtual item C, and virtual item C is associated with virtual item A. Without a breakout mechanism, changes to virtual item A will trigger changes to virtual item B, which in turn will trigger changes to virtual item C. Changes to virtual item C will then be passed back to virtual item A, causing virtual item A to change again, thus creating an infinite loop. However, with the breakout mechanism configured in this embodiment, since each virtual item can only undergo one state change within a state update cycle, after the change in virtual item C is passed back to virtual item A, virtual item A is determined to have already changed once within the current state update cycle and will not change again, thus avoiding an infinite loop.

[0150] It should be noted that the above examples are optional examples provided to explain the interaction control method of the virtual item object, and there are no limitations on the implementation of the interaction control method of the virtual item object.

[0151] As another alternative example, a target virtual item object can be associated with other virtual item objects by pre-configuring associations between them. For example, such as Figure 8 As shown in (a), assuming the target virtual item object is Gate 1 and the first associated virtual item object is Gate 2, in the object association configuration page, Gate 1, to which the association relationship will be created, can be selected. When Gate 1 is touched, as shown... Figure 8 As shown in (b), you can view the objects currently controlled by gate 1, including street light 1 and street light 2. When an additional control object is triggered, as shown... Figure 8 As shown in (c), a virtual object controlled by gate 1 can be added. Then, if gate 2 is selected, gate 2 is added to the virtual item object controlled by gate 2.

[0152] It should be noted that the above examples are optional examples provided to explain the interaction control method of the virtual item object, and there are no limitations on the implementation of the interaction control method of the virtual item object.

[0153] It should be noted that in this embodiment, a default interaction state can also be set for the target virtual item object. This default interaction state indicates the state to which it will revert after being switched to another state. For example, assuming the target virtual item object is a street lamp, its default state can be set to an off state.

[0154] Alternatively, as an optional example, suppose the virtual item object is furniture, and suppose the furniture's interaction mode is an instant-triggered mode, then it can be used, but is not limited to, using... Figure 9 The furniture chain shown is used as an example to illustrate the above method, such as... Figure 9 As shown, the furniture link includes furniture 1, furniture 2, furniture 3, and furniture 4. Furniture 1 and furniture 2 control furniture 3, and furniture 3 controls furniture 4. After furniture 1 switches its interaction state, it sends a signal to furniture 3. Similarly, after furniture 2 switches its interaction state, it also sends a signal to furniture 3. Then, upon receiving the signals from furniture 1 and furniture 2, furniture 3 switches its interaction state and sends a signal to furniture 4. Consequently, furniture 4, upon receiving the signal, switches its interaction state.

[0155] Alternatively, as another alternative example, still assuming the virtual item object is furniture, and assuming the furniture's interaction mode is a delayed-triggered mode, it is also possible, but not limited to, using... Figure 9 The furniture chain shown is used as an example to illustrate the above method, such as... Figure 9As shown, the furniture link includes furniture 1, furniture 2, furniture 3, and furniture 4. Furniture 1 and furniture 2 control furniture 3, and furniture 3 controls furniture 4. After furniture 1 switches its interactive state, it sends a signal to furniture 3 after a timer delay set by furniture 1. Similarly, after furniture 2 switches its interactive state, it also sends a signal to furniture 3 after a timer delay set by furniture 2. Then, upon receiving the signals from furniture 1 and furniture 2, furniture 3 switches its interactive state and sends a signal to furniture 4 after a timer delay set by furniture 3. This causes furniture 4 to switch its interactive state upon receiving the signal.

[0156] It should be noted that the above examples are optional examples provided to explain the interaction control method of the virtual item object, and there are no limitations on the implementation of the interaction control method of the virtual item object.

[0157] Optionally, in this embodiment, the interaction modes of different virtual item objects located in the same interaction triggering chain can be the same or different, and no limitation is made in this embodiment.

[0158] In this embodiment, when the target virtual item object is located at the beginning of the interaction triggering link, a first associated virtual item object connected to the target virtual item object on the interaction triggering link is determined. The interaction triggering link includes multiple virtual item objects. Then, the link interaction triggering condition corresponding to the first associated virtual item object is obtained. Next, according to the indication of the link interaction triggering condition, the first associated virtual item object is controlled to switch its interaction state. In other words, by using this embodiment to control the switching of the interaction state of virtual item objects using the preceding virtual item object on the interaction triggering link, the purpose of simplifying the interaction control of virtual item objects is achieved, thereby reducing the system overhead caused by the interaction control of virtual item objects.

[0159] Optionally, as an optional solution, after obtaining the link interaction triggering condition corresponding to the first associated virtual item object, the solution further includes: determining the triggering condition for the link interaction when it is determined that the target virtual item object is uniquely connected to the first associated virtual item object and the target virtual item object has switched to the second interaction state;

[0160] Controlling the switching of the interaction state of the first associated virtual item object according to the link interaction trigger condition includes: switching the first associated virtual item object from the current fourth interaction state to the fifth interaction state according to the interaction mode indicated by the link interaction trigger condition.

[0161] Optionally, in this embodiment, each virtual item object is further configured with an ugcState field, a pos field, a rotation field, and a scale field on the client side. The ugcState field is used to indicate the current state of the virtual item object, represented by 0 or 1; the pos field is used to indicate the position of the virtual item object in the virtual scene; the rotation field is used to indicate the rotation of the virtual item object in the virtual scene; and the scale field is used to indicate the scaling ratio of the virtual item object in the virtual scene.

[0162] It should be further noted that simpler interactive switching can be handled directly by the terminal device storing and processing relevant data, while more complex switching requires the server to store data and so on. In such cases, data is retrieved from the server. This embodiment does not impose any limitations on this.

[0163] Optionally, as an alternative example, suppose the target virtual item object is a street lamp, and the first associated virtual item object is also a street lamp; suppose the interaction mode of the first associated virtual item object is a delayed switching mode; references may be made, but are not limited to, as shown in the example below. Figure 10 The following examples illustrate the above method:

[0164] like Figure 10 As shown in (a), the virtual scene includes a target virtual item object 1002 and a first associated virtual item object 1004, wherein both the target virtual item object 1002 and the first associated virtual item object 1004 are currently in an unlit state.

[0165] Next, as Figure 10 As shown in (b), when the controlled virtual character enters the target trigger area to trigger the target virtual item object 1002 to light up, the first associated virtual item object 1004 is also switched to the lit state by the target virtual item object 1002.

[0166] It should be noted that the above examples are optional examples provided to explain the interaction control method of the virtual item object, and there are no limitations on the implementation of the interaction control method of the virtual item object.

[0167] In this embodiment, after obtaining the link interaction trigger condition corresponding to the first associated virtual item object, and after determining that the target virtual item object is uniquely connected to the first associated virtual item object and that the target virtual item object has switched to the second interaction state, the link interaction trigger condition is determined to be triggered. Then, according to the interaction mode indicated by the link interaction trigger condition, the first associated virtual item object is switched from its current fourth interaction state to the fifth interaction state. In other words, by using this embodiment to control the switching of the interaction state of the virtual item object using the previous virtual item object on the interaction trigger link, the purpose of simplifying the interaction control of virtual item objects is achieved, thereby reducing the system overhead caused by the interaction control of virtual item objects.

[0168] Optionally, as an optional solution, after obtaining the link interaction triggering condition corresponding to the first associated virtual item object, the method further includes: determining the current interaction state of the second associated virtual item object when it is determined that the first associated virtual item object is connected to the second associated virtual item object based on all the connection relationships of the first associated virtual item object on the interaction triggering link, and the second associated virtual item object is located before the first associated virtual item object on the interaction triggering link; and determining the triggering link interaction triggering condition when the target virtual item object has switched to the second interaction state, and the current interaction state of the second associated virtual item object indicates that the switching of the interaction state has been completed.

[0169] Controlling the switching of the interaction state of the first associated virtual item object according to the link interaction trigger condition includes: switching the first associated virtual item object from the current fourth interaction state to the fifth interaction state according to the interaction mode indicated by the link interaction trigger condition.

[0170] In this embodiment, after obtaining the link interaction triggering condition corresponding to the first associated virtual item object, and determining that the first associated virtual item object is connected to the second associated virtual item object based on all the connection relationships of the first associated virtual item object on the interaction triggering link, and that the second associated virtual item object is located before the first associated virtual item object on the interaction triggering link, the current interaction state of the second associated virtual item object is determined. If the target virtual item object has switched to the second interaction state, and the current interaction state of the second associated virtual item object indicates that the interaction state switch has been completed, the triggering link interaction triggering condition is determined. Then, according to the interaction mode indicated by the link interaction triggering condition, the first associated virtual item object is switched from its current fourth interaction state to the fifth interaction state. In other words, by using this embodiment to control the switching of the interaction state of a virtual item object using multiple preceding virtual item objects on the interaction triggering link, the purpose of simplifying the interaction control of virtual item objects is achieved, thereby reducing the system overhead caused by the interaction control of virtual item objects.

[0171] Optionally, as an alternative approach, when a controlled virtual character interacts with a target trigger area that matches a target virtual item object in at least one virtual item object, the target interaction conditions that trigger the target virtual item object include:

[0172] S1, determine the area block where the controlled virtual character is currently located in the virtual scene.

[0173] S2, obtain the list of virtual item objects mounted on the region block, wherein the list of virtual item objects includes the object identifiers of the virtual item objects that triggered the region located on the region block.

[0174] S3, if the object identifier of the target virtual item is found in the list of virtual item objects, determine the target trigger area that matches the controlled virtual character and the target virtual item object to generate interaction.

[0175] Optionally, in this embodiment, the virtual scene may be pre-divided into areas of equal size, and when the controlled virtual character interacts with the target trigger area that matches the target virtual item object, the object identifier of the target virtual item object is stored in the configured virtual item object list.

[0176] In this embodiment, the current region block in the virtual scene where the controlled virtual character is located is determined. Then, a list of virtual item objects attached to the region block is obtained, including object identifiers of virtual item objects whose trigger regions are located on the region block. Next, if the object identifier of a target virtual item object is found in the list, it is determined that the controlled virtual character interacts with the target trigger region that matches the target virtual item object. In other words, by using this embodiment, by detecting only the interaction state transitions of virtual item objects in the region where the controlled virtual character is currently located, the purpose of simplifying the interaction control of virtual item objects is achieved, thereby reducing the system overhead caused by the interaction control of virtual item objects.

[0177] Optionally, as an alternative approach, switching the target virtual item object from its current first interaction state to a second interaction state includes:

[0178] S1, retrieve the interaction state control fields configured for the target virtual item object.

[0179] S2, when the interaction state control field is adjusted from the first value to the second value according to the server's instruction, the target virtual item object is controlled to switch from the first interaction state corresponding to the first value to the second interaction state corresponding to the second value.

[0180] For example, assuming the first value is 0 and the second value is 1, then when the interaction state control field is adjusted from 0 to 1 according to the server's instruction, the target virtual item object switches from the first interaction state corresponding to the first value to the second interaction state corresponding to the second value. (The reverse is repeated twice in the original text.)

[0181] It should be noted that the above examples are optional examples provided to explain the interaction control method of the virtual item object, and there are no limitations on the implementation of the interaction control method of the virtual item object.

[0182] In this embodiment, an interaction state control field configured for a target virtual item object is obtained. Then, when the interaction state control field is adjusted from a first value to a second value according to the server's instruction, the target virtual item object is controlled to switch from a first interaction state corresponding to the first value to a second interaction state corresponding to the second value. In other words, by using this embodiment to map different interaction states through different values ​​indicated by the interaction state control field, the interaction control of virtual item objects is simplified, thereby reducing the system overhead caused by the interaction control of virtual item objects.

[0183] Optionally, as an alternative solution, the above-mentioned interactive control method for virtual item objects can be applied to the server side, but is not limited to, including:

[0184] S1, obtain the position of the controlled virtual character to perform the virtual task in the virtual scene, wherein the virtual scene includes at least one virtual item object.

[0185] Optionally, the interaction control method for the aforementioned virtual item objects can be applied to, but is not limited to, game scenes. Specifically, it controls the interaction of virtual game items within the virtual game scene corresponding to the game. The aforementioned virtual task can be, but is not limited to, used to indicate game tasks in the target game; the aforementioned controlled virtual character can be, but is not limited to, used to indicate character objects controlled by the target account in the target game; the aforementioned virtual scene can be, but is not limited to, used to indicate the virtual game scene corresponding to the target game; the aforementioned virtual item objects can include, but are not limited to, reusable item objects, consumable items, buff item objects, damage item objects, task trigger item objects, etc., and are not limited in this embodiment.

[0186] Specifically, the aforementioned reusable item objects can be, but are not limited to, indicating item objects that can be triggered repeatedly, such as plants, doors, cabinets, lamps, artworks, rocks, buildings, sculptures, decorations, etc., and this embodiment does not impose any limitations on this. The aforementioned consumable item objects can be, but are not limited to, indicating item objects that can only be triggered once, such as fireworks, food, water, daily necessities, etc., and this embodiment also does not impose any limitations on this. The aforementioned buff item objects can be, but are not limited to, indicating item objects that can provide benefits to the aforementioned controlled virtual character, such as buff virtual items, etc., and this embodiment does not impose any limitations on this. The aforementioned damage item objects can be, but are not limited to, indicating item objects that can cause damage to the aforementioned controlled virtual character, such as damage virtual items, virtual traps, etc., and this embodiment does not impose any limitations on this.

[0187] S2, if the controlled virtual character interacts with the target trigger area that matches the target virtual item object in at least one virtual item object based on the position of the controlled virtual character, the target interaction condition corresponding to the target virtual item object is determined.

[0188] It should be noted that, in this embodiment, the aforementioned target triggering area is an area that has an association with the target virtual item. Specifically, the target triggering area may be located on, but is not limited to, the target virtual item, or it may be located outside the target virtual item. This embodiment does not impose any limitations on this. Furthermore, the interaction generated by the controlled virtual character and the target triggering area that matches the target virtual item object in at least one virtual item object may include, but is not limited to: the controlled virtual character entering the target triggering area corresponding to the target virtual item object; the controlled virtual character touching the target triggering area corresponding to the target virtual item object; the controlled virtual character completing an interaction operation (e.g., a conversation interaction operation) of a non-game player character located in the target triggering area corresponding to the target virtual item object, etc., this embodiment does not impose any limitations on this.

[0189] S3, send the target interaction conditions to the terminal so that the terminal switches the target virtual item object from the current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction conditions. The terminal will also control the target virtual item to return to the first interaction state when the target virtual item object in the second interaction state meets the state restoration conditions.

[0190] It should be noted that, in this embodiment, the aforementioned target interaction conditions determine the interaction mode of the target virtual item object. Optionally, the aforementioned target interaction conditions are not limited to being triggered by the aforementioned controlled virtual character, but can also be triggered by other virtual item objects that are associated with the target virtual item object; this embodiment does not impose any limitations on this.

[0191] Optionally, in this embodiment, the above-mentioned interaction mode may include, but is not limited to, an instant interaction mode and a delayed interaction mode. Specifically, when the above-mentioned interaction mode is an instant interaction mode, the above-mentioned switching of the target virtual item object from the current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction conditions may include, but is not limited to, switching the target virtual item object from the current first interaction state to the second interaction state during the interaction time when the controlled virtual character interacts with the target trigger area.

[0192] Furthermore, when the above-mentioned interaction mode is a delayed interaction mode, the above-mentioned switching of the target virtual item object from the current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction conditions may include, but is not limited to: obtaining the interaction time when the controlled virtual character interacts with the target trigger area; and after superimposing a delay duration matching the target interaction conditions on the interaction time, switching the target virtual item object from the current first interaction state to the second interaction state.

[0193] Optionally, in this embodiment, the first interaction state and the second interaction state may, but are not limited to, be different interaction states of the same type. The interaction state may, but is not limited to, indicate the interaction state between the virtual item object and the controlled virtual character, or include the display state of the target virtual item in the virtual scene and the sound effect playback state of the target virtual item in the virtual scene.

[0194] Optionally, in this embodiment, the above-mentioned state recovery condition may be, but is not limited to, indicating that the duration of the target virtual item object in the second interactive state reaches the target duration.

[0195] For specific implementation details, please refer to the relevant implementations shown in the interaction method of virtual item objects where the execution subject is the terminal device side. In this embodiment, these details will not be repeated.

[0196] In this embodiment, the position of the controlled virtual character to perform the virtual task in a virtual scene is obtained, wherein the virtual scene includes at least one virtual item object. Then, based on the position of the controlled virtual character, if it is determined that the controlled virtual character interacts with a target trigger area that matches a target virtual item object among the at least one virtual item object, a target interaction condition corresponding to the target virtual item object is determined. Furthermore, the target interaction condition is sent to the terminal, so that the terminal switches the target virtual item object from its current first interaction state to a second interaction state according to the interaction mode indicated by the target interaction condition. The terminal will also control the target virtual item to return to the first interaction state if the target virtual item object in the second interaction state meets the state restoration condition. In other words, by adopting the embodiments of this application, when the target virtual item is triggered, the target virtual item is switched from its current first interaction state to a second interaction state by using the interaction mode control indicated by the target interaction conditions. Then, when the state recovery condition is met, the target virtual item is automatically restored to the first interaction state. This simplifies the interaction control of the virtual item object and reduces the resources consumed by the interaction control of the virtual item object. This solves the technical problem in the related art where the use of behavior trees to control the virtual item object increases the burden of interaction control.

[0197] Optionally, as an alternative approach, after determining the target interaction conditions corresponding to the target virtual item object, the following steps are also included:

[0198] When the target virtual item is a reusable item, a recovery time threshold is configured for the target virtual item. If the duration of the target virtual item in the second interactive state reaches the recovery time threshold, it will be restored from the second interactive state to the first interactive state.

[0199] It should be noted that, in this embodiment, the aforementioned recovery time is configured for the target virtual item object by triggering a timer on the device object corresponding to the reusable item object during the interaction time when the controlled virtual character interacts with the target trigger area. Specifically, a timer with a timing duration equal to the recovery time threshold is pre-configured for the target virtual item object. Then, when the controlled virtual character interacts with the target trigger area, the timer is triggered to start timing. Once the timer's timing duration reaches the recovery time threshold, the target virtual item is restored from the second interaction state to the first interaction state.

[0200] In this embodiment, when the target virtual item is a reusable item, a recovery time threshold is configured for the target virtual item. Specifically, if the duration of the target virtual item in the second interactive state reaches the recovery time threshold, it will be restored from the second interactive state to the first interactive state. In other words, by employing this embodiment, when the target virtual item is triggered, the interaction mode control according to the target interaction conditions switches the target virtual item from its current first interactive state to the second interactive state. Then, upon reaching the state recovery condition, the target virtual item is automatically restored to the first interactive state. This simplifies the interactive control of virtual item objects and reduces the resources consumed in controlling virtual item objects. This solves the technical problem in related technologies where the use of behavior trees to control virtual item objects increases the burden of interactive control.

[0201] Optionally, as an alternative approach, after determining the target interaction conditions corresponding to the target virtual item object, the following steps are also included:

[0202] When the target virtual item object is a consumable item object, a reference virtual item object is obtained from the item object pool to which the target virtual item object belongs, wherein the object similarity between the reference virtual item object and the target virtual item object is higher than the target threshold.

[0203] Send the reference virtual item object, which is in the third interactive state, to the terminal.

[0204] Optionally, clearing the target virtual item object in the second interactive state can be used, but is not limited to, indicating that the target virtual item object will not be displayed in the virtual scene. Optionally, in this embodiment, the item object pool to which the target virtual item object belongs can include, but is not limited to, various types of virtual item objects configured in the virtual scene. The reference virtual item object can be, but is not limited to, the same type of consumable item object as the target virtual item object, or a similar consumable item object; this embodiment does not impose any limitations on this.

[0205] For example, assuming the target virtual item is a virtual firework, the reference virtual item could also be a virtual firework, or a virtual firecracker similar to a virtual firework. It should be noted that the above example is an optional illustration provided to explain the interaction control method for the virtual item, and does not limit the implementation of the interaction control method for the virtual item.

[0206] Optionally, the aforementioned third interactive state may, but is not limited to, indicate the default state of the aforementioned reference virtual object. For example, assuming the aforementioned reference virtual object is a virtual firecracker, the aforementioned third interactive state may, but is not limited to, indicate the unlit state of the firecracker.

[0207] It should be noted that the above examples are optional examples provided to explain the interaction control method of the virtual item object, and there are no limitations on the implementation of the interaction control method of the virtual item object.

[0208] In this embodiment, when the target virtual item object is a consumable item object, a reference virtual item object is obtained from the item object pool to which the target virtual item object belongs. The object similarity between the reference virtual item object and the target virtual item object is higher than a target threshold. Then, the reference virtual item object in the third interaction state is sent to the terminal. In other words, by using this embodiment, the realism of the interactive control of virtual item objects is improved by clearing the target virtual item object when it is a consumable item object, and then displaying a reference virtual item object in the third interaction state at the location of the target virtual item object in the first interaction state in the virtual scene after clearing it.

[0209] Optionally, as an alternative approach, after sending the target interaction conditions to the terminal, the method further includes:

[0210] S1, after the terminal switches the target virtual item object to the second interaction state according to the interaction mode indicated by the target interaction conditions, and the target virtual item object is located at the starting position of the interaction triggering link, the first associated virtual item object connected to the target virtual item object on the interaction triggering link is determined, wherein the interaction triggering link includes multiple virtual item objects.

[0211] S2, obtain the link interaction trigger condition corresponding to the first associated virtual item object.

[0212] S3, send the link interaction trigger condition to the terminal so that the terminal controls the first associated virtual item object to switch the interaction state according to the instruction of the link interaction trigger condition.

[0213] It should be noted that, in this embodiment, different virtual item objects can create interaction trigger chains by configuring association relationships. Specifically, a change in the interaction state of a virtual item object at an earlier node in the interaction trigger chain can trigger a change in the interaction state of other virtual item objects at the same earlier node.

[0214] Optionally, the aforementioned link interaction triggering conditions may be, but are not limited to, indicating the manner in which the preceding virtual item object associated with the first associated virtual item object triggers the first associated virtual item object, and the interaction state switch to be performed after the first associated virtual item object is triggered. For example, the aforementioned link interaction triggering conditions may, but are not limited to, controlling the first associated virtual item object to switch from the fourth object state to the fifth object state when the target virtual item object switches from the first interaction state to the second interaction state; or controlling the first associated virtual item object to switch from the fifth object state to the fourth object state when the target virtual item object switches from the second interaction state to the first interaction state, etc., and no limitation is made in this embodiment. In addition, the aforementioned link interaction triggering conditions also include the interaction mode of the first associated virtual item object.

[0215] It should be noted that, in this embodiment, a virtual item object (including the aforementioned first associated virtual item object, the aforementioned target item virtual object, and other virtual item objects) may, but is not limited to, be associated with one virtual item object, or may be associated with multiple virtual item objects. Furthermore, in the interaction triggering chain where the virtual item object resides, there may be one or more associated virtual item objects before the virtual item object, and there may also be one or more associated virtual item objects after the virtual item object; this embodiment does not impose any limitations on this.

[0216] It should be noted that each virtual item object in the interaction triggering chain can be, but is not limited to, abstracted as a device object. In this embodiment, the interaction logic of the logic gate is used to switch the interaction state of the device object in the interaction triggering chain in a transitive manner. Specifically, after the previous device object in the interaction triggering chain completes the interaction state switch, it will send a signal to the next device object connected to it. When the next device object connected to it receives the above signal, it switches its own interaction state and then passes the signal to the next device object.

[0217] It should be further noted that, to prevent infinite loops during state transitions between related virtual item objects, a state transition exit mechanism is implemented for virtual item objects located in the same interaction trigger chain. Specifically, each virtual item object in a group of virtual item objects in an interaction trigger chain is only allowed to perform a state update operation once within a state update cycle.

[0218] Optionally, in this embodiment, the interaction modes of different virtual item objects located in the same interaction triggering chain can be the same or different, and no limitation is made in this embodiment.

[0219] For specific implementation details, please refer to the relevant implementations shown in the interaction method of virtual item objects where the execution subject is the terminal device side. In this embodiment, these details will not be repeated.

[0220] In this embodiment, after the terminal switches the target virtual item object to the second interaction state according to the interaction mode indicated by the target interaction conditions, and the target virtual item object is located at the beginning of the interaction triggering link, a first associated virtual item object connected to the target virtual item object on the interaction triggering link is determined. The interaction triggering link includes multiple virtual item objects. Then, the link interaction triggering conditions corresponding to the first associated virtual item object are obtained. Next, the link interaction triggering conditions are sent to the terminal so that the terminal controls the first associated virtual item object to switch its interaction state according to the instructions of the link interaction triggering conditions. In other words, by using this embodiment to control the switching of the interaction state of a virtual item object using the previous virtual item object on the interaction triggering link, the purpose of simplifying the interaction control of virtual item objects is achieved, thereby reducing the system overhead caused by the interaction control of virtual item objects.

[0221] Optionally, as an alternative approach, after sending the link interaction triggering conditions to the terminal, the following steps are also included:

[0222] If it is determined that the target virtual item object is uniquely connected to the first associated virtual item object, and the target virtual item object has switched to the second interactive state, the terminal trigger link interaction triggering conditions are determined.

[0223] For specific implementation details, please refer to the relevant implementations shown in the interaction method of virtual item objects where the execution subject is the terminal device side. In this embodiment, these details will not be repeated.

[0224] In other words, by adopting the embodiments of this application, the method of controlling the virtual item object to switch the interactive state by utilizing the previous virtual item object on the interaction triggering link achieves the purpose of simplifying the interactive control of the virtual item object, thereby realizing the technical effect of reducing the system overhead caused by the interactive control of the virtual item object.

[0225] Optionally, as an alternative approach, after sending the link interaction triggering conditions to the terminal, the following steps are also included:

[0226] Based on all the connection relationships of the first associated virtual item object in the interaction triggering chain, it is determined that the first associated virtual item object is connected to the second associated virtual item object, and the second associated virtual item object is located before the first associated virtual item object in the interaction triggering chain, the current interaction state of the second associated virtual item object is determined.

[0227] When the target virtual item object has switched to the second interaction state, and the current interaction state indication of the second associated virtual item object has completed the switching of the interaction state, the terminal trigger link interaction trigger condition is determined.

[0228] For specific implementation details, please refer to the relevant implementations shown in the interaction method of virtual item objects where the execution subject is the terminal device side. In this embodiment, these details will not be repeated.

[0229] In other words, by using the embodiments of this application, the method of controlling the virtual item objects to switch their interactive states by utilizing multiple virtual item objects in the preceding interactive triggering chain achieves the purpose of simplifying the interactive control of virtual item objects, thereby realizing the technical effect of reducing the system overhead caused by the interactive control of virtual item objects.

[0230] As an optional example, references may be made, but are not limited to, to [examples omitted]. Figure 11 The following example provides a complete illustration of the interaction control methods for the aforementioned virtual item objects:

[0231] Step S1102: Display the virtual scene. Specifically, display the virtual scene where the controlled virtual character who will perform the virtual task is located, wherein the virtual scene includes at least one virtual item object.

[0232] Step S1104: Determine the target interaction conditions of the target virtual item. When the controlled virtual character interacts with the target trigger area that matches the target virtual item object in at least one virtual item object, determine the target interaction conditions that trigger the target virtual item object.

[0233] Step S1106: Determine the interaction mode. Specifically, determine whether the interaction mode is switched immediately or delayed, according to the target interaction conditions.

[0234] Step S1108: Switch the target virtual item object from its current first interaction state to its second interaction state. Specifically, switch the target virtual item object from its current first interaction state to its second interaction state according to the interaction mode indicated by the target interaction conditions.

[0235] Step S1110: Determine the type of the target virtual item object.

[0236] Step S1112-1: If the target virtual item object is a reusable item object, and the duration reaches the recovery duration threshold, the target virtual item is restored from the second interaction state to the first interaction state. Specifically, the duration of the target virtual item object in the second interaction state is obtained; and the target virtual item is restored from the second interaction state to the first interaction state when the duration reaches the recovery duration threshold. The recovery duration threshold is configured for the target virtual item object during the interaction time when the controlled virtual character interacts with the target trigger area.

[0237] Step S1112-2: If the target virtual item object is a consumable item object, replace the target virtual item object in the second interaction state. Specifically, clear the target virtual item object in the second interaction state. Then, obtain a reference virtual item object from the item object pool to which the target virtual item object belongs, wherein the object similarity between the reference virtual item object and the target virtual item object is higher than a target threshold. Subsequently, at the location of the target virtual item object in the first interaction state in the virtual scene, display the reference virtual item object in the third interaction state.

[0238] Step S1112-3: If the target virtual item object is a buff-type item object, configure a buff for the controlled virtual character. Specifically, if the object type of the target virtual item object is indicated as a buff-type item object, obtain the target reward resource that matches the target virtual item object in the second interaction state; and transfer the target reward resource to the controlled virtual character.

[0239] Step S1112-4: If the target virtual item object is a damage-type item object, configure damage evenly for the controlled virtual character. Specifically, if the object type of the target virtual item object is indicated as a damage-type item object, determine the virtual resources currently possessed by the controlled virtual character; deduct the resource loss consumed by the target virtual item object in the second interaction state from the virtual resources to obtain the updated virtual resources.

[0240] Step S1112-5: If the target virtual item object is a task-triggered item object, display the task sub-scene created for the target task. Specifically, if the object type of the target virtual item object indicates that it is a task-triggered item object, determine the target task triggered by the target virtual item object in the second interaction state. Then, display the task sub-scene created for the target task in the virtual scene.

[0241] Step S1114: Determine whether there is only one virtual object associated with the first associated virtual object after the target virtual object.

[0242] Step S1116-1: If there is only one virtual object associated with the first associated virtual item object, the interaction state of the first associated virtual item object is switched. Specifically, the triggering condition for the link interaction is determined, and the first associated virtual item object is switched from the current fourth interaction state to the fifth interaction state according to the interaction mode indicated by the link interaction triggering condition.

[0243] Step S1116-2: If there is more than one virtual object associated with the first associated virtual object, and all virtual object objects associated with the first associated virtual object have completed the interaction state switch, then switch the interaction state of the first associated virtual object.

[0244] In other words, by adopting the embodiments of this application, when the target virtual item is triggered, the target virtual item is switched from its current first interaction state to a second interaction state by using the interaction mode control indicated by the target interaction conditions. Then, when the state recovery condition is met, the target virtual item is automatically restored to the first interaction state. This simplifies the interaction control of the virtual item object and reduces the resources consumed by the interaction control of the virtual item object. This solves the technical problem in the related art where the use of behavior trees to control the virtual item object increases the burden of interaction control.

[0245] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0246] According to another aspect of the embodiments of this application, an interactive control device for virtual item objects applied to a terminal device side is also provided for implementing the above-described interactive control method for virtual item objects. For example... Figure 12 As shown, the device includes:

[0247] Display unit 1202 is used to display the virtual scene where the controlled virtual character to perform the virtual task is located, wherein the virtual scene includes at least one virtual item object;

[0248] The determining unit 1204 is used to determine the target interaction condition corresponding to the triggering target virtual item object when the controlled virtual character interacts with the target triggering area that matches the target virtual item object in at least one virtual item object.

[0249] The switching unit 1206 is used to switch the target virtual item object from the current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction conditions.

[0250] The recovery unit 1208 is used to restore the target virtual item to the first interactive state when the target virtual item object in the second interactive state meets the state recovery conditions.

[0251] Optionally, in this embodiment, the switching unit includes: a first determining module, configured to determine the state switching time of the target virtual item object based on the interaction mode indicated by the target interaction conditions; and a first switching module, configured to switch the target virtual item object from a first interaction state to a second interaction state according to the state switching time.

[0252] Optionally, in this embodiment, the first determining module is further configured to: when the interaction mode indicated by the target interaction condition is an instant switching mode, determine the interaction time when the controlled virtual character interacts with the target trigger area as the state switching time of the target virtual item object.

[0253] Optionally, in this embodiment, the first determining module is further configured to: when the interaction mode indicated by the target interaction condition is a delayed switching mode, obtain the interaction time when the controlled virtual character interacts with the target trigger area; and superimpose a delay duration matching the target interaction condition onto the interaction time to obtain the state switching time of the target virtual item object.

[0254] Optionally, in this embodiment, the determining unit includes: a second acquisition module, used to acquire the duration of the target virtual item object in the second interactive state when the target virtual item object is a reusable item object; and a second switching module, used to restore the target virtual item from the second interactive state to the first interactive state when the duration reaches a recovery duration threshold, wherein the recovery duration threshold is configured for the target virtual item object based on the interaction time between the controlled virtual character and the target trigger area.

[0255] Optionally, in this embodiment, the above-mentioned device further includes: a clearing unit, used to clear the target virtual item object in the second interactive state when the target virtual item object is a consumable item object; an acquisition unit, used to acquire a reference virtual item object from the item object pool to which the target virtual item object belongs, wherein the object similarity between the reference virtual item object and the target virtual item object is higher than a target threshold; and a first display unit, used to display the reference virtual item object in the third interactive state at the location of the target virtual item object in the first interactive state in the virtual scene.

[0256] Optionally, in this embodiment, the above-mentioned device further includes: a first acquisition unit, configured to acquire target reward resources matching the target virtual item object in the second interaction state when the object type of the target virtual item object is indicated as a benefit-type item object; and transfer the target reward resources to the controlled virtual character; and a deduction unit, configured to determine the virtual resources currently possessed by the controlled virtual character when the object type of the target virtual item object is indicated as a damage-type item object; and deduct the resource loss consumed by the target virtual item object in the second interaction state from the virtual resources to obtain updated virtual resources.

[0257] Optionally, in this embodiment, the above-mentioned device further includes: a first determining unit, configured to determine the target task triggered by the target virtual item object in the second interactive state when the object type of the target virtual item object is indicated as a task-triggered item object; and a second display unit, configured to display the task sub-scene created for the target task in the virtual scene.

[0258] Optionally, in this embodiment, the above-mentioned device further includes: a second determining unit, configured to determine a first associated virtual item object connected to the target virtual item object on the interaction triggering link when the target virtual item object is located at the starting position of the interaction triggering link, wherein the interaction triggering link includes multiple virtual item objects; a second obtaining unit, configured to obtain the link interaction triggering condition corresponding to the first associated virtual item object; and a control unit, configured to control the first associated virtual item object to switch the interaction state according to the indication of the link interaction triggering condition.

[0259] Optionally, in this embodiment, the above-mentioned device further includes: a third determining unit, configured to, after obtaining the link interaction triggering condition corresponding to the first associated virtual item object, determine the triggering link interaction triggering condition when it is determined that the target virtual item object is uniquely connected to the first associated virtual item object and the target virtual item object has been switched to the second interaction state; and a first switching unit, configured to switch the first associated virtual item object from the current fourth interaction state to the fifth interaction state according to the interaction mode indicated by the link interaction triggering condition.

[0260] Optionally, in this embodiment, the above-mentioned device further includes: a third determining unit, configured to determine the current interaction state of the second associated virtual item object when, based on all the connection relationships of the first associated virtual item object on the interaction triggering link, it is determined that the first associated virtual item object is connected to the second associated virtual item object, and the second associated virtual item object is located before the first associated virtual item object on the interaction triggering link; and to determine the triggering link interaction triggering condition when the target virtual item object has switched to the second interaction state, and the current interaction state of the second associated virtual item object indicates that the switching of the interaction state has been completed; and a second switching unit, configured to switch the first associated virtual item object from its current fourth interaction state to the fifth interaction state according to the interaction mode indicated by the link interaction triggering condition.

[0261] Optionally, in this embodiment, the switching unit further includes: a second determining module, used to determine the area block where the controlled virtual character is currently located in the virtual scene; a third obtaining module, used to obtain a list of virtual item objects attached to the area block, wherein the list of virtual item objects includes the object identifier of the virtual item object whose trigger area is located on the area block; and a third determining module, used to determine that the controlled virtual character interacts with the target trigger area that matches the target virtual item object when the object identifier of the target virtual item object is found in the list of virtual item objects.

[0262] Optionally, in this embodiment, the switching unit further includes: a fourth acquisition module, used to acquire the interaction state control field configured for the target virtual item object; and a third switching module, used to control the target virtual item object to switch from the first interaction state corresponding to the first value to the second interaction state corresponding to the second value when the interaction state control field is adjusted from the first value to the second value according to the server's instruction.

[0263] For specific implementation examples, please refer to the examples shown in the above-described interactive control method for virtual item objects. This embodiment will not be repeated here.

[0264] According to another aspect of the embodiments of this application, an interactive control device for virtual item objects applied to the server side is also provided for implementing the above-described interactive control method for virtual item objects. For example... Figure 13 As shown, the device includes:

[0265] The acquisition unit 1302 is used to acquire the position of the controlled virtual character that will perform the virtual task in the virtual scene, wherein the virtual scene includes at least one virtual item object;

[0266] The determining unit 1304 is used to determine the target interaction condition corresponding to the target virtual item object when it is determined that the controlled virtual character interacts with the target trigger area that matches the target virtual item object in at least one virtual item object based on the position of the controlled virtual character.

[0267] The sending unit 1306 is used to send the target interaction conditions to the terminal so that the terminal switches the target virtual item object from the current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction conditions. The terminal will also control the target virtual item to return to the first interaction state when the target virtual item object in the second interaction state meets the state restoration condition.

[0268] Optionally, in this embodiment, the above-mentioned device further includes: a configuration unit, configured to configure a recovery duration threshold for the target virtual item object when the target virtual item object is a reusable item object, wherein when the duration of the target virtual item object in the second interactive state reaches the recovery duration threshold, it will be restored from the second interactive state to the first interactive state.

[0269] Optionally, in this embodiment, the above-mentioned device further includes: a first acquisition unit, configured to acquire a reference virtual item object from the item object pool to which the target virtual item object belongs when the target virtual item object is a consumable item object, wherein the object similarity between the reference virtual item object and the target virtual item object is higher than a target threshold; and a first sending unit, configured to send the reference virtual item object in the third interaction state to the terminal.

[0270] Optionally, in this embodiment, the above-mentioned device further includes: a first determining unit, configured to determine a first associated virtual item object connected to the target virtual item object on the interaction triggering link when the target virtual item object is located at the starting position of the interaction triggering link after the terminal switches the target virtual item object to the second interaction state according to the interaction mode indicated by the target interaction conditions, wherein the interaction triggering link includes multiple virtual item objects; a second obtaining unit, configured to obtain the link interaction triggering conditions corresponding to the first associated virtual item object; and a control unit, configured to send the link interaction triggering conditions to the terminal so that the terminal controls the first associated virtual item object to switch the interaction state according to the indication of the link interaction triggering conditions.

[0271] Optionally, in this embodiment, the above-mentioned device further includes: a second determining unit, used to determine the terminal trigger link interaction triggering condition when it is determined that the target virtual item object is uniquely connected to the first associated virtual item object and the target virtual item object has switched to the second interaction state.

[0272] Optionally, in this embodiment, the above-mentioned device further includes: a third determining unit, configured to determine the current interaction state of the second associated virtual item object when it is determined that the first associated virtual item object and the second associated virtual item object are connected based on all the connection relationships of the first associated virtual item object on the interaction triggering link, and the second associated virtual item object is located before the first associated virtual item object on the interaction triggering link; and a fourth determining unit, configured to determine the terminal triggering link interaction triggering condition when the target virtual item object has switched to the second interaction state, and the current interaction state of the second associated virtual item object indicates that the switching of the interaction state has been completed.

[0273] For specific implementation examples, please refer to the examples shown in the above-described interactive control method for virtual item objects. This embodiment will not be repeated here.

[0274] According to another aspect of the embodiments of this application, an electronic device for implementing the above-described interactive control method for virtual item objects is also provided. This electronic device may be... Figure 1 The terminal device or server shown. This embodiment uses this electronic device as an example of a terminal device. Figure 14 As shown, the electronic device includes a memory 1402 and a processor 1404. The memory 1402 stores a computer program, and the processor 1404 is configured to execute the steps of any of the above method embodiments via the computer program.

[0275] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.

[0276] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0277] S1, displays the virtual scene where the controlled virtual character to perform the virtual task is located, wherein the virtual scene includes at least one virtual item object;

[0278] S2, when the controlled virtual character interacts with the target trigger area that matches the target virtual item object in at least one virtual item object, determine the target interaction condition corresponding to the trigger target virtual item object;

[0279] S3, according to the interaction mode indicated by the target interaction conditions, switch the target virtual item object from the current first interaction state to the second interaction state;

[0280] S4, if the target virtual item object in the second interactive state meets the state restoration conditions, restore the target virtual item to the first interactive state.

[0281] Alternatively, as those skilled in the art will understand, Figure 14 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 14 This does not limit the structure of the aforementioned electronic devices. For example, the electronic device may also include components that are more... Figure 14 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 14 The different configurations shown.

[0282] The memory 1402 can be used to store software programs and modules, such as the program instructions / modules corresponding to the virtual item object interaction control method and device in this embodiment. The processor 1404 executes various functional applications and data processing by running the software programs and modules stored in the memory 1402, thereby realizing the aforementioned virtual item object interaction control method. The memory 1402 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1402 may further include memory remotely located relative to the processor 1404, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 1402 may be used, but is not limited to, to store information such as target interaction conditions. As an example, such as... Figure 14 As shown, the memory 1402 may include, but is not limited to, the display unit 1202, the determination unit 1204, the switching unit 1206, and the recovery unit 1208 in the interaction device for the virtual item object. Furthermore, it may include, but is not limited to, other module units in the interaction control device for the virtual item object, which will not be described further in this example.

[0283] Optionally, the transmission device 1406 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1406 includes a Network Interface Controller (NIC), which can be connected to other network devices and routers via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 1406 is a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0284] In addition, the aforementioned electronic device also includes a connection bus 1408 for connecting various module components in the aforementioned electronic device.

[0285] According to another aspect of the embodiments of this application, an electronic device for implementing the above-described interactive control method for virtual item objects is also provided. This electronic device may be... Figure 1 The terminal device or server shown. This embodiment uses the electronic device as a server device as an example for illustration. Figure 15 As shown, the electronic device includes a memory 1502 and a processor 1504. The memory 1502 stores a computer program, and the processor 1504 is configured to execute the steps of any of the above method embodiments via the computer program.

[0286] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.

[0287] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0288] S1, obtain the position of the controlled virtual character to perform the virtual task in the virtual scene, wherein the virtual scene includes at least one virtual item object;

[0289] S2, if the controlled virtual character interacts with the target trigger area that matches the target virtual item object in at least one virtual item object based on the position of the controlled virtual character, determine the target interaction condition corresponding to the target virtual item object.

[0290] S3, send the target interaction conditions to the terminal so that the terminal switches the target virtual item object from the current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction conditions. The terminal will also control the target virtual item to return to the first interaction state when the target virtual item object in the second interaction state meets the state restoration conditions.

[0291] Alternatively, as those skilled in the art will understand, Figure 15 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 15 This does not limit the structure of the aforementioned electronic devices. For example, the electronic device may also include components that are more... Figure 15 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 15 The different configurations shown.

[0292] The memory 1502 can be used to store software programs and modules, such as the program instructions / modules corresponding to the virtual item object interaction control method and device in this embodiment. The processor 1504 executes various functional applications and data processing by running the software programs and modules stored in the memory 1502, thereby realizing the aforementioned virtual item object interaction control method. The memory 1502 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1502 may further include memory remotely located relative to the processor 1504, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 1502 may be used, but is not limited to, to store information such as target interaction conditions. As an example, such as... Figure 15 As shown, the memory 1502 may include, but is not limited to, the acquisition unit 1302, the determination unit 1304, and the sending unit 1306 in the interaction device for the virtual item object. Furthermore, it may include, but is not limited to, other module units in the interaction control device for the virtual item object, which will not be elaborated upon in this example.

[0293] Optionally, the transmission device 1506 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1506 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 1506 is a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0294] In addition, the above-mentioned electronic device also includes: a display 1508, and a connection bus 1510 for connecting the various module components in the above-mentioned electronic device.

[0295] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a point-to-point network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this point-to-point network.

[0296] According to one aspect of this application, a computer program product is provided, comprising a computer program / instructions containing program code for performing the methods described above. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit, it performs various functions provided in the embodiments of this application.

[0297] According to one aspect of this application, another computer program product is also provided, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the methods in various embodiments of this application.

[0298] According to one aspect of this application, a computer-readable storage medium is provided, wherein a processor of a computer device reads computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the above-described method.

[0299] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0300] S1, displays the virtual scene where the controlled virtual character to perform the virtual task is located, wherein the virtual scene includes at least one virtual item object;

[0301] S2, when the controlled virtual character interacts with the target trigger area that matches the target virtual item object in at least one virtual item object, determine the target interaction condition corresponding to the trigger target virtual item object;

[0302] S3, according to the interaction mode indicated by the target interaction conditions, switch the target virtual item object from the current first interaction state to the second interaction state;

[0303] S4, if the target virtual item object in the second interactive state meets the state restoration conditions, restore the target virtual item to the first interactive state.

[0304] Optionally, in this embodiment, the computer-readable storage medium may also be configured to store a computer program for performing the following steps:

[0305] S1, obtain the position of the controlled virtual character to perform the virtual task in the virtual scene, wherein the virtual scene includes at least one virtual item object;

[0306] S2, if the controlled virtual character interacts with the target trigger area that matches the target virtual item object in at least one virtual item object based on the position of the controlled virtual character, determine the target interaction condition corresponding to the target virtual item object.

[0307] S3, send the target interaction conditions to the terminal so that the terminal switches the target virtual item object from the current first interaction state to the second interaction state according to the interaction mode indicated by the target interaction conditions. The terminal will also control the target virtual item to return to the first interaction state when the target virtual item object in the second interaction state meets the state restoration conditions.

[0308] It should be noted that the data collection and processing described in this application should strictly comply with the requirements of relevant national 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.

[0309] Optionally, in the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program with a predetermined function, which works together 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 an overall module or unit that includes the functionality of that module or unit.

[0310] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0311] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.

[0312] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0313] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.

[0314] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0315] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0316] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for controlling interaction of a virtual item object, characterized by, The method comprises: displaying a virtual scene in which a controlled virtual character is to perform a virtual task, wherein the virtual scene comprises at least one virtual object; in a case where the controlled virtual character interacts with a target trigger region of the at least one virtual object, determining a target interaction condition for triggering a target virtual object; switching the target virtual object from a first interaction state to a second interaction state according to an interaction mode indicated by the target interaction condition; in a case where the target virtual object in the second interaction state meets a state recovery condition, restoring the target virtual object to the first interaction state.

2. The method of claim 1, wherein, The switching of the target virtual object from the first interaction state to the second interaction state according to the interaction mode indicated by the target interaction condition comprises: determining a state switching time of the target virtual object based on the interaction mode indicated by the target interaction condition; switching the target virtual object from the first interaction state to the second interaction state according to the state switching time.

3. The method of claim 2, wherein, The determination of the state switching time of the target virtual object based on the interaction mode indicated by the target interaction condition comprises: in a case where the interaction mode indicated by the target interaction condition is an instant switching mode, determining an interaction time when the controlled virtual character interacts with the target trigger region as the state switching time of the target virtual object.

4. The method of claim 2, wherein, The determination of the state switching time of the target virtual object based on the interaction mode indicated by the target interaction condition comprises: in a case where the interaction mode indicated by the target interaction condition is a delay switching mode, obtaining an interaction time when the controlled virtual character interacts with the target trigger region; adding a delay duration matching the target interaction condition to the interaction time to obtain the state switching time of the target virtual object.

5. The method of claim 1, wherein, The restoration of the target virtual object to the first interaction state in a case where the target virtual object in the second interaction state meets a state recovery condition comprises: in a case where the target virtual object is a multiplexing object, obtaining a duration when the target virtual object is in the second interaction state; in a case where the duration reaches a recovery duration threshold, restoring the target virtual object from the second interaction state to the first interaction state, wherein the recovery duration threshold is configured to the target virtual object based on an interaction time when the controlled virtual character interacts with the target trigger region.

6. The method of claim 1, wherein, After the switching of the target virtual object from the first interaction state to the second interaction state according to the interaction mode indicated by the target interaction condition, the method further comprises: in a case where the target virtual object is a consumable object, removing the target virtual object in the second interaction state. obtain a reference virtual item object from a pool of item objects to which the target virtual item object belongs, wherein an object similarity between the target virtual item object and the reference virtual item object is higher than a target threshold; display the reference virtual item object in a third interaction state at a position in the virtual scene where the target virtual item object is located in the first interaction state.

7. The method of claim 1, wherein, after switching the target virtual item object from the first interaction state to the second interaction state according to the interaction mode indicated by the target interaction condition, further comprising: in a case where an object type of the target virtual item object indicates a gain type item object, obtain a target reward resource matched with the target virtual item object in the second interaction state; and transfer the target reward resource to the controlled virtual character; in a case where the object type of the target virtual item object indicates a damage type item object, determine a virtual resource currently possessed by the controlled virtual character; and deduct a resource loss consumed by the target virtual item object in the second interaction state from the virtual resource to obtain an updated virtual resource.

8. The method of claim 1, wherein, after switching the target virtual item object from the first interaction state to the second interaction state according to the interaction mode indicated by the target interaction condition, further comprising: in a case where the object type of the target virtual item object indicates a task trigger type item object, determine a target task triggered by the target virtual item object in the second interaction state; display a task sub-scene created for the target task in the virtual scene.

9. The method of claim 1, wherein, after switching the target virtual item object from the first interaction state to the second interaction state according to the interaction mode indicated by the target interaction condition, further comprising: in a case where the target virtual item object is located at a starting position of an interaction trigger link, determine a first associated virtual item object connected with the target virtual item object on the interaction trigger link, wherein the interaction trigger link includes a plurality of virtual item objects; obtain a link interaction trigger condition corresponding to the first associated virtual item object; control the first associated virtual item object to switch an interaction state according to an indication of the link interaction trigger condition.

10. The method of claim 9, wherein, after the link interaction trigger condition corresponding to the first associated virtual item object is obtained, further comprising: determining that the link interaction trigger condition is triggered in a case where it is determined that the target virtual item object is uniquely connected with the first associated virtual item object, and the target virtual item object has been switched to the second interaction state; and the control of the first associated virtual item object to switch the interaction state according to the indication of the link interaction trigger condition comprises: switching the first associated virtual item object from a fourth interaction state to a fifth interaction state according to the interaction mode indicated by the link interaction trigger condition.

11. The method of claim 9, wherein, ​ ​ after the first associated virtual item object corresponding link interaction trigger condition is acquired, further comprising: in the case that the first associated virtual item object is determined to be connected with a second associated virtual item object based on the overall connection relationship of the first associated virtual item object on the interaction trigger link, and the second associated virtual item object is located before the first associated virtual item object on the interaction trigger link, determining the current interaction state of the second associated virtual item object; in the case that the target virtual item object has switched to the second interaction state, and the current interaction state of the second associated virtual item object indicates that the interaction state switching has been completed, determining that the link interaction trigger condition is triggered; The first associated virtual item object is switched from the fourth interaction state to the fifth interaction state according to the indication of the link interaction trigger condition.

12. The method according to any one of claims 1 to 11, characterized in that, In the case that the controlled virtual character interacts with the target trigger area matched with the target virtual item object in the at least one virtual item object, the target interaction condition corresponding to the target virtual item object is determined to be triggered. It is determined that the controlled virtual character is currently in the area block in the virtual scene; Obtain the virtual item object list mounted on the area block, wherein the object identifier of the virtual item object in the virtual item object list is included in the area block. In the case that the object identifier of the target virtual item object is found in the virtual item object list, it is determined that the controlled virtual character interacts with the target trigger area matched with the target virtual item object.

13. The method according to any one of claims 1 to 11, characterized in that, The target virtual item object is switched from the first interaction state to the second interaction state, comprising: Obtain the interaction state control field configured for the target virtual item object; In the case that the interaction state control field is adjusted from the first value to the second value according to the indication of the server, the target virtual item object is switched from the first interaction state corresponding to the first value to the second interaction state corresponding to the second value.

14. An interaction control method of a virtual item object, characterized by, Comprising: Obtain the position of the controlled virtual character to be executed in the virtual scene, wherein the virtual scene comprises at least one virtual item object; In the case that the controlled virtual character interacts with the target trigger area matched with the target virtual item object in the at least one virtual item object based on the position of the controlled virtual character, the target interaction condition corresponding to the target virtual item object is determined. sending the target interaction condition to the terminal, so that the terminal switches the target virtual item object from a first interaction state to a second interaction state according to an interaction mode indicated by the target interaction condition, and the terminal controls the target virtual item object to return to the first interaction state when the target virtual item object in the second interaction state meets a state recovery condition.

15. The method of claim 14, wherein, After the target interaction condition corresponding to the target virtual item object is determined, the method further includes: In a case where the target virtual item object is a multiplexing type item object, a recovery time threshold is configured for the target virtual item object, and the target virtual item object is switched from the second interaction state to the first interaction state when a duration of the target virtual item object in the second interaction state reaches the recovery time threshold.

16. The method of claim 14, wherein, After the target interaction condition corresponding to the target virtual item object is determined, the method further includes: In a case where the target virtual item object is a consumable type item object, a reference virtual item object is obtained from an item object pool to which the target virtual item object belongs, and an object similarity between the reference virtual item object and the target virtual item object is higher than a target threshold; the reference virtual item object in a third interaction state is sent to the terminal.

17. The method of claim 14, wherein, After the target interaction condition is sent to the terminal, the method further includes: After the terminal switches the target virtual item object to the second interaction state according to the interaction mode indicated by the target interaction condition, a first associated virtual item object connected to the target virtual item object on an interaction trigger chain is determined in a case where the target virtual item object is located at a starting position of the interaction trigger chain, and the interaction trigger chain includes a plurality of virtual item objects. a link interaction trigger condition corresponding to the first associated virtual item object is obtained; the link interaction trigger condition is sent to the terminal, so that the terminal controls the first associated virtual item object to switch an interaction state according to an indication of the link interaction trigger condition.

18. The method of claim 17, wherein, After the link interaction trigger condition is sent to the terminal, the method further includes: In a case where it is determined that the target virtual item object is uniquely connected to the first associated virtual item object and the target virtual item object has been switched to the second interaction state, it is determined that the terminal triggers the link interaction trigger condition.

19. The method of claim 17, wherein, After the link interaction trigger condition is sent to the terminal, the method further includes: In a case where it is determined that the first associated virtual item object is connected to a second associated virtual item object based on all connection relationships of the first associated virtual item object on the interaction trigger chain, and the second associated virtual item object is located before the first associated virtual item object on the interaction trigger chain, a current interaction state of the second associated virtual item object is determined. In a case where the target virtual object has switched to the second interaction state, and the current interaction state of the second associated virtual object indicates a completed interaction state switching, it is determined that the terminal triggers the link interaction trigger condition.

20. An interactive control device for virtual item objects, characterized in that, The method comprises the steps of: displaying a virtual scene in which a controlled virtual character is to perform a virtual task, wherein the virtual scene comprises at least one virtual object; determining a target interaction condition corresponding to a target virtual object in a case where the controlled virtual character interacts with a target trigger region matching the target virtual object; switching the target virtual object from a first interaction state in which the target virtual object is currently located to a second interaction state according to an interaction mode indicated by the target interaction condition; restoring the target virtual object to the first interaction state in a case where the target virtual object in the second interaction state reaches a state restoration condition.

21. An interactive control device for virtual item objects, characterized in that, The method comprises the steps of: obtaining a position of a controlled virtual character in a virtual scene, wherein the virtual scene comprises at least one virtual object; determining a target interaction condition corresponding to a target virtual object in a case where the controlled virtual character interacts with a target trigger region matching the target virtual object based on the position of the controlled virtual character; sending the target interaction condition to a terminal, so that the terminal switches the target virtual object from a first interaction state in which the target virtual object is currently located to a second interaction state according to an interaction mode indicated by the target interaction condition, and the terminal controls the target virtual object to be restored to the first interaction state in a case where the target virtual object in the second interaction state reaches a state restoration condition.

22. A computer readable storage medium, characterized in that, The computer-readable storage medium comprises a stored program, wherein the program is executed by a processor to perform the method described in any one of claims 1 to 13 or 14 to 19.

23. A computer program product comprising computer programs / instructions, characterized in that, The computer program / instruction is executed by a processor to implement the steps of the method described in any one of claims 1 to 13 or 14 to 19.

24. An electronic device, comprising a memory and a processor, wherein, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 13 or 14 to 19 by using the computer program.