Virtual scene interaction method, device and equipment, computer readable storage medium and computer program product
By introducing a projection prop interaction mechanism into the virtual scene game and determining feedback events based on the projection results and NPC status, the problem of insufficient NPC interaction capabilities is solved and the immersion and freedom in the game are improved.
Patent Information
- Application Number
- CN202410874382.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-27
AI Technical Summary
In existing virtual scene games, the interaction capabilities of non-player characters (NPCs) are insufficient, resulting in reduced immersion and freedom of player characters in the game.
By introducing the interactive mechanism of projecting props into the virtual scene, feedback events are determined based on the projection results, prop function types and NPC ownership status, and the interaction between the player character and NPC is controlled, including operations such as projection, summoning, battle and ownership transfer.
It improves the interaction ability and performance flexibility of NPCs, and enhances the immersion and freedom of player characters in the game.
Smart Images

Figure CN118698122A
Abstract
Description
Technical Field
[0001] The present application relates to human-computer interaction technology, and in particular to a virtual scene interaction method, device, equipment, storage medium and program product. Background Art
[0002] Display technology based on graphics processing hardware has expanded the channels for perceiving the environment and obtaining information, especially the display technology of virtual scenes. It can realize diversified interactions between virtual objects controlled by users or artificial intelligence according to actual application needs, and has various typical application scenarios. For example, in the virtual scene of games, it can simulate the real battle process between virtual characters.
[0003] In the process of players controlling player characters to interact in the game, in order to enhance the richness of the game, non-player characters (NPCs) (such as elves) are introduced for interaction. In the related technology, the interaction initiative of NPCs whose ownership cannot be obtained by the player characters is poor. For example, such NPCs just stand in place as background decorations or move along fixed paths in a small range. Their performance is relatively dull and they cannot interact with the player characters, which reduces the player's immersion and freedom in the game. Summary of the invention
[0004] The embodiments of the present application provide a virtual scene interaction method, device, electronic device, computer-readable storage medium and computer program product, which can improve the immersion and freedom of player character play.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] The present application provides a virtual scene interaction method, including:
[0007] In the interface of the virtual scene, a first non-player character and a target player character holding a projectile are displayed;
[0008] In response to a projection trigger operation on the projection prop, controlling the target player character to project the projection prop;
[0009] In response to a target feedback event being triggered by the projection result of the projection prop on the first non-player character, performing a target feedback operation corresponding to the target feedback event;
[0010] The target feedback event is determined based on the projection result, the function type of the projection item, and the ownership status of the first non-player character.
[0011] The embodiment of the present application provides an interactive device for a virtual scene, including:
[0012] A character display module, used to display the first non-player character and the target player character holding the projectile in the interface of the virtual scene;
[0013] A projection control module, for controlling the target player character to project the projection prop in response to a projection trigger operation on the projection prop;
[0014] A feedback execution module, configured to execute a target feedback operation corresponding to the target feedback event in response to the projection result of the projection prop on the first non-player character triggering the target feedback event;
[0015] The target feedback event is determined based on the projection result, the function type of the projection item, and the ownership status of the first non-player character.
[0016] In the above scheme, the projection control module is also used to control the target player character to throw the throwing prop in response to a throwing trigger operation on the throwing prop when the projection prop is a throwing prop, so as to control the throwing prop to fly in the target direction; when the projection prop is a shooting prop, in response to a shooting trigger operation on the shooting prop, control the target player character to launch at least one projectile in the target direction through the shooting prop.
[0017] In the above solution, the character display module is also used to display the target player character holding the projection prop of the selected functional type in response to the prop selection operation.
[0018] In the above scheme, before displaying the target player character holding the projection prop of the selected functional type, the device also includes an operation receiving module, which is used to display a prop selection control in the interface of the virtual scene; in response to a prop viewing operation triggered based on the prop selection control, display at least two functional types of projection props; in response to a triggering operation for a projection prop of a target functional type, the prop selection operation is received, wherein the prop selection operation indicates that the projection prop of the target functional type is used as the projection prop held by the target player character.
[0019] In the above scheme, when the function type of the projection item is a summoning function, before executing the target feedback operation corresponding to the target feedback event, the device also includes: a first event determination module, which is used to determine that the projection result triggers a summoning feedback event in response to the projection result indicating that the projection item hits the first non-player character or does not hit the first non-player character, and uses the summoning feedback event as the target feedback event; the feedback execution module is also used to summon a second non-player character at a target position, wherein the target player character owns the second non-player character, and the target position includes at least one of the following: the landing position of the projection item, the position within the distance range from the first non-player character, and the associated position of the target non-player character.
[0020] In the above scheme, in response to the projection trigger operation for the projection prop, before controlling the projection prop to project in the target direction, the device also includes: a character selection module, which is used to display the character identification corresponding to at least one second non-player character owned by the target player character in the interface of the virtual scene; in response to the character identification selection operation, the second non-player character corresponding to the selected character identification is used as the second non-player character summoned corresponding to the summon feedback event.
[0021] In the above scheme, when there are multiple second non-player characters held by the target player character, the feedback execution module is also used to obtain influencing parameters for influencing the summoning priority of each of the second non-player characters, wherein the influencing parameters include at least one of the following: interactive features, the degree of antagonism with the first non-player character, and the degree of matching with the target player character; based on the influencing parameters, calling a machine learning model for prediction to obtain the summoning priority of each of the second non-player characters, wherein the machine learning model is trained based on the influencing parameters of sample non-player characters and the annotated summoning priorities; and summoning the second non-player character with the highest summoning priority at the target position.
[0022] In the above scheme, after the second non-player character is summoned at the target position, the device further includes: a battle control module, used to control the second non-player character to fight against the first non-player character; in response to the first non-player character being in an ownership transferable state and the second non-player character defeating the first non-player character, transferring the ownership of the first non-player character to the target player character; in response to the first non-player character being in an ownership non-transferable state and the second non-player character defeating the first non-player character, obtaining a virtual reward for defeating the first non-player character.
[0023] In the above scheme, the character display module is also used to display a first non-player character in a first mode; wherein the first mode includes at least one of the following autonomous modes: exploration mode, leisure mode, and sandbox mode; the battle control module is also used to switch the first mode to a second mode, and control the second non-player character to fight against the first non-player character in the second mode; wherein the second mode includes at least one of the following battle modes: turn-based battle mode, real-time battle mode, strategy battle mode, tactical battle mode, and fighting mode.
[0024] In the above scheme, when the function type of the projection item is an ownership acquisition function, before executing the target feedback operation corresponding to the target feedback event, the device also includes: a second event determination module, which is used to determine that the projection result triggers an ownership transfer event in response to the first non-player character being in an ownership transferable state and the projection result indicating that the projection item hits the first non-player character, and uses the ownership transfer event as the target feedback event; the feedback execution module is also used to transfer the ownership of the first non-player character to the target player character.
[0025] In the above scheme, after the ownership of the first non-player character is transferred to the target player character, the device also includes: a replacement module, used to display the projection prop at the display position of the first non-player character to replace the first non-player character; in response to the display time of the projection prop at the display position reaching the target time, showing an animation of the projection prop disappearing from the display position.
[0026] In the above scheme, when the function type of the projection prop is the ownership acquisition function, before executing the target feedback operation corresponding to the target feedback event, the device also includes: a third event determination module, which is used to determine that the projection result triggers a prop pickup event in response to the projection result indicating that the projection prop did not hit the first non-player character, and use the prop pickup event as the target feedback event; the feedback execution module is also used to display the projection prop at the landing position of the projection prop; in response to the prop pickup operation, control the target player character to move to the pickup range of the projection prop, and pick up the projection prop.
[0027] In the above scheme, before executing the target feedback operation corresponding to the target feedback event, the device also includes: a fourth event determination module, which is used to determine that the projection result triggers the interactive feedback event bound to the first non-player character in response to the first non-player character being in a non-transferable ownership state and the projection result indicating that the projection prop hits the first non-player character, and uses the interactive feedback event bound to the first non-player character as the target feedback event.
[0028] In the above scheme, the feedback execution module is further used to control the third non-player character held by the target player character to fight against the first non-player character in response to the interactive feedback event being a battle feedback event; or, in response to the interactive feedback event being a battle feedback event and the first non-player character belonging to the target virtual character, control the target player character to use the third non-player character to fight against the first non-player character used by the target virtual character.
[0029] In the above scheme, when the number of non-player characters held by the target player character is multiple, the device further includes: a role determination module, which is used to filter out a default non-player character from the multiple non-player characters held by the target player character, and determine the filtered default non-player character as the third non-player character; or determine the battle priority of each non-player character held by the target player character, and determine the non-player character whose battle priority is higher than a priority threshold as the third non-player character.
[0030] In the above scheme, the device also includes: a priority determination module, which is used to obtain an influencing factor that affects the battle priority of each non-player character, wherein the influencing factor includes at least one of the following: interaction characteristics, the degree of antagonism with the first non-player character, and the degree of matching with the target player character; based on the influencing factor, query the correspondence between different influencing factors and different battle priorities, and use the queried battle priority as the battle priority of the corresponding non-player character.
[0031] In the above scheme, the feedback execution module is also used to control the target player character to move to the associated position of the first non-player character in response to the interactive feedback event being a plot interpretation feedback event; and control the target player character located at the associated position to perform a plot interpretation operation with the first non-player character.
[0032] In the above scheme, the feedback execution module is also used to control the target player character or the first non-player character to execute the target task according to the task execution process in response to the interactive feedback event being a task execution feedback event; and to control the target player character or the first non-player character to execute the mechanism challenge operation corresponding to the mechanism challenge feedback event in response to the interactive feedback event being a mechanism challenge feedback event.
[0033] In the above scheme, after executing the target feedback operation corresponding to the target feedback event, the device also includes: a state updating module, which is used to control the ownership state of the first non-player character to be updated from the non-transferable ownership state to the transferable ownership state in response to the non-transferable ownership state of the first non-player character being released.
[0034] An embodiment of the present application provides an electronic device, including:
[0035] A memory for storing computer executable instructions or computer programs;
[0036] The processor is used to implement the virtual scene interaction method provided in the embodiment of the present application when executing the computer executable instructions or computer programs stored in the memory.
[0037] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions or a computer program for implementing the virtual scene interaction method provided in the embodiment of the present application when executed by a processor.
[0038] An embodiment of the present application provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, the virtual scene interaction method provided in the embodiment of the present application is implemented.
[0039] The embodiments of the present application have the following beneficial effects:
[0040] By applying the embodiments of the present application, when controlling a target player character holding a projection prop to interact in a virtual scene, the terminal controls the target player character to project the projection prop in response to a projection trigger operation on the projection prop; in response to a target feedback event being triggered by the projection result of the projection prop on the first non-player character, a target feedback operation corresponding to the target feedback event is performed; in this way, when interacting with the first non-player character, a corresponding target feedback event is determined according to the projection result, the functional type of the projection prop, and the ownership status of the first non-player character, so that each projection result on the first non-player character can trigger a corresponding feedback event, and different projection results, different functional types of projection props, or different ownership statuses of the first non-player character can trigger different feedback events, resulting in flexible and changeable performance of the non-player character, which greatly improves the immersion and freedom of the player character in the interaction process. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 1 is a schematic diagram of the architecture of the virtual scene interactive system 100 provided in an embodiment of the present application;
[0042] Figure 2 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application;
[0043] Figure 3 It is a flowchart of a virtual scene interaction method provided in an embodiment of the present application;
[0044] Figure 4 is a schematic diagram of selecting projection props provided in an embodiment of the present application;
[0045] Figure 5 is a schematic diagram of selecting a non-player character provided in an embodiment of the present application;
[0046] Figure 6 It is a flowchart of a virtual scene interaction method provided in an embodiment of the present application;
[0047] Figure 7 This is a schematic diagram of picking up props provided in an embodiment of the present application;
[0048] Figure 8 is a feedback diagram of a non-player character provided in an embodiment of the present application;
[0049] Fig. 9 is a schematic diagram of executing an interactive feedback event provided in an embodiment of the present application;
[0050] Fig.10 It is a schematic diagram of the execution of the interactive feedback event provided in the embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0052] It is understandable that in the embodiments of the present application, when user information and other related data (such as the user's projection trigger operation, interaction features, etc.) are involved, when the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards.
[0053] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0054] In the following description, the terms "first\second..." are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second..." can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0055] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0057] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0058] 1) Client: an application running in the terminal to provide various services, such as a video player client, a game client, etc.
[0059] 2) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order of execution of the multiple operations executed.
[0060] 3) A virtual scene is a virtual scene displayed (or provided) when an application is running on a terminal. The virtual scene can be a simulation of the real world, a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene can be any of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene. The embodiment of the present application does not limit the dimension of the virtual scene. For example, the virtual scene may include the sky, land, ocean, etc. The land may include environmental elements such as deserts and cities, and users can control virtual objects to move in the virtual scene.
[0061] 4) Virtual characters, images of various people and objects that can interact in a virtual scene, or movable objects in a virtual scene, which can be virtual characters, virtual animals, cartoon characters, etc., such as people and animals displayed in a virtual scene. A virtual scene can include multiple virtual characters, each of which has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene.
[0062] In actual applications, virtual characters can be divided into player characters and non-player characters according to whether they are controlled by users (or players). Player characters are game characters controlled by users (or players), and non-player characters (NPCs) are game characters that are not controlled by users (or players), such as animal-type NPCs. Player characters can obtain ownership of NPCs by interacting in virtual scenes.
[0063] Among them, obtaining ownership of an NPC usually means that the player character obtains control over the NPC or exclusive use of the services provided by the NPC. For example, in some games, players can "purchase" the services of an NPC by completing a series of tasks or paying a certain fee. In this way, the player can exclusively use the services provided by the NPC, such as exclusive merchants, assistants, etc. In other games, NPCs can even become followers or combat partners of the player character. In this case, the player character who obtains ownership of the NPC can control the NPC to participate in battles or complete other tasks.
[0064] It should be noted that the "ownership" here does not refer to real ownership, because NPC is part of the game and is controlled by the game program. Player characters can only exercise control or use rights over NPC within the scope permitted by the game rules and design.
[0065] The embodiments of the present application provide an interactive method, device, electronic device, computer-readable storage medium and computer program product of a virtual scene, which can improve the immersion and freedom of the player's role play. The exemplary application of the electronic device provided by the embodiment of the present application is described below. The electronic device provided by the embodiment of the present application can be implemented as a laptop, a tablet computer, a desktop computer, a set-top box, a mobile device (for example, a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable gaming device), a smart phone, a smart speaker, a smart watch, a smart TV, a vehicle-mounted terminal, an augmented reality (AR, Augmented Reality) device and a virtual reality (VR, Virtual Reality) device and other types of user terminals, and can also be implemented as a server. Below, an exemplary application when the device is implemented as a terminal will be described.
[0066] See also Figure 1 , Figure 1 It is a schematic diagram of the architecture of the interactive system 100 of the virtual scene provided in an embodiment of the present application. To support an exemplary application, the terminal (terminal 400-1 and terminal 400-2 are shown as examples) is connected to the server 200 via the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two.
[0067] In some embodiments, the terminal is provided with a client, such as a video playback client, an instant messaging client, a game client, a live broadcast client, etc. The server 200 is a background server corresponding to the client, which can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The terminal and the server can be directly or indirectly connected by wired or wireless communication, which is not limited in the embodiments of the present application.
[0068] In actual application, the terminal displays the first non-player character and the target player character holding the projection prop in the interface of the virtual scene; in response to the projection trigger operation for the projection prop, the target player character is controlled to project the projection prop, and a trigger event acquisition request is sent to the server 200; the server 200 determines the target feedback event based on the trigger event acquisition request, the projection result, the functional type of the projection prop, and the ownership status of the first non-player character, and returns the target feedback event to the terminal. After receiving the target feedback event, the terminal executes the target feedback operation corresponding to the target feedback event.
[0069] See also Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application, taking the electronic device 500 as Figure 1 For example, the terminal in Figure 2 The electronic device 500 shown includes: at least one processor 510, a memory 550, at least one network interface 520 and a user interface 530. The various components in the electronic device 500 are coupled together via a bus system 540. It is understood that the bus system 540 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 540 is not described in detail. Figure 2 Various buses are labeled as bus system 540 .
[0070] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0071] The memory 550 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 550 described in the embodiment of the present application is intended to include any suitable type of memory. The memory 550 optionally includes one or more storage devices that are physically far away from the processor 510.
[0072] In some embodiments, the memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.
[0073] The operating system 551 includes system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic businesses and processing hardware-based tasks; a network communication module 552 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 520. Exemplary network interfaces 520 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.
[0074] In some embodiments, the interactive device of the virtual scene provided in the embodiments of the present application can be implemented in software. The interactive device of the virtual scene provided in the embodiments of the present application can be provided as various software embodiments, including various forms including applications, software, software modules, scripts or codes. Figure 2 An interactive device 555 of a virtual scene stored in a memory 550 is shown, which may be software in the form of a program or plug-in, and includes a series of modules, including a character display module 5551, a projection control module 5552, and a feedback execution module 5553. These modules are logical, and therefore may be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.
[0075] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the virtual scene interaction method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application specific integrated circuits (Application Specific Integrated Circuit, ASIC), digital signal processors (Digital Signal Processor, DSP), programmable logic devices (Programmable Logic Device, PLD), complex programmable logic devices (Complex Programmable Logic Device, CPLD), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other electronic components.
[0076] In some embodiments, the terminal or server can implement the interactive method of the virtual scene provided by the embodiment of the present application by running various computer executable instructions or computer programs. For example, computer executable instructions can be commands, machine instructions or software instructions at the microprogram level. The computer program can be a native program or software module in the operating system; it can be a local (Native) application (APPlication, APP), that is, a program that needs to be installed in the operating system to run, such as instant messaging APP, live broadcast APP; it can also be a small program that can be embedded in any APP, that is, a program that can be run only by downloading it to the browser environment. In short, the above-mentioned computer executable instructions can be instructions in any form, and the above-mentioned computer program can be an application, module or plug-in in any form.
[0077] As mentioned above, the virtual scene interaction method provided in the embodiment of the present application can be implemented by various types of electronic devices, for example, Figure 1 The terminal and the server 200 in the embodiment can be executed by either one of them separately, or by Figure 1 The terminal and server 200 in the embodiment cooperate to execute. Figure 1 The example of the terminal in the embodiment of the present application executing the virtual scene interaction method provided by the embodiment of the present application is described. Figure 3 , Figure 3 is a flowchart of the interactive method of the virtual scene provided in the embodiment of the present application, which will be combined with Figure 3 The steps shown are explained.
[0078] Step 101: The terminal displays a first non-player character and a target player character holding a projectile in an interface of a virtual scene.
[0079] In actual applications, a client that supports virtual scenes is installed on the terminal device (for example, when the virtual scene is a game, the corresponding client can be a shooting game APP). When the user opens the client installed on the terminal device and the terminal device runs the client, the interface of the virtual scene can be presented in the client, and the first non-player character and the target player character holding the projection props can be displayed in the interface of the virtual scene.
[0080] Among them, the target player character involved in the embodiment of the present application is the virtual character of the current login account in the virtual scene. The number of the first non-player characters can be one or more (two or more), and the ownership of the first non-player character can be held by other player characters (virtual characters of other login accounts in the virtual scene different from the current login account), and can also be held by other non-player characters. The target player character that has not yet obtained the ownership of the first non-player character can be in an enemy camp with the first non-player character, and the target player character can obtain the ownership of the first non-player character by performing certain interactive operations (after the target player character obtains the ownership of the first non-player character, the target player character and the first non-player character are in the same camp).
[0081] The interface of the virtual scene can be an interface for observing the virtual scene from a first-person perspective, that is, the virtual scene seen by the player from the eyes of the protagonist (i.e., the target player character). The field of view is usually limited to the range that the protagonist's head can see, and the protagonist's whole body cannot be seen. The first-person perspective usually brings a higher sense of immersion to the player, because the player feels like he is in the game environment himself. The interface of the virtual scene can also be an interface for viewing the virtual scene from a third-person perspective, that is, the virtual scene seen by the player from a fixed point outside the protagonist or following the camera, and the protagonist's whole body and the surrounding environment can be seen. Although the immersion of the third-person perspective may not be as strong as the first-person perspective, the player can see more environmental information, which is helpful for strategy formulation.
[0082] The projectile props may be throwing props, which realize the throwing trigger operation by throwing the throwing props themselves, such as balls, darts, grenades, smoke bombs, Molotov cocktails, javelins, etc. The projectile props may also be shooting props, which realize the shooting trigger operation by firing at least one projectile, for example, when the shooting prop is a virtual firearm, the bullet fired by the virtual firearm is used to attack the first non-player character, and when the shooting prop is a crossbow, the arrow fired by the crossbow is used to attack the first non-player character.
[0083] In some embodiments, the terminal may display the target player character holding the projection prop in the following manner: in response to the prop selection operation, the target player character holding the projection prop of the selected function type is displayed.
[0084] In actual applications, different projection props may have different functional types, such as a summoning function (used to summon non-player characters) and an ownership acquisition function (used to obtain ownership of non-player characters). Players may have projection props of multiple different functional types, or may have different projection props of the same functional type. Moreover, in actual applications, the level of the projection prop affects the success rate of achieving the corresponding function. For example, for a projection prop with a summoning function, the higher the level, the higher the success rate of summoning the corresponding non-player character. For another example, for a projection prop with an ownership acquisition function, the higher the level, when the projection prop hits a non-player character, the higher the success rate of obtaining ownership of the non-player character. Therefore, projection props of the required functional type or level may be selected for use according to actual needs.
[0085] Among them, the prop selection operation can be triggered by the player through devices such as keyboard, mouse, handle, etc., or it can be triggered by the player by triggering the prop selection control. Of course, it can also be triggered by other methods. The embodiment of the present application does not limit the triggering method of the prop viewing operation.
[0086] In some embodiments, before displaying the target player character holding the projection prop of the selected functional type, the terminal may receive a prop selection operation in the following manner: displaying a prop selection control in the interface of the virtual scene; displaying at least two functional types of projection props in response to a prop viewing operation triggered by the prop selection control; receiving a prop selection operation in response to a trigger operation for the projection prop of the target functional type, wherein the prop selection operation indicates that the projection prop of the target functional type is used as the projection prop held by the target player character.
[0087] Among them, the presentation form of the prop selection control can be an icon, button or prompt information for prop selection, etc. When selecting a projection prop of the required functional type, the player can trigger the prop selection operation through the prop selection control displayed on the touch terminal.
[0088] For example, see Figure 4 , Figure 4 It is a schematic diagram of the selection of projection props provided in an embodiment of the present application. A prop selection control (such as selecting a prop) 401 is displayed in the interface of a virtual scene. In response to a trigger operation on the prop selection control 401, a prop selection interface 402 is displayed, and projection props of multiple functional types available for selection can be displayed in the prop selection interface 402, such as projection prop 1 (summoning function), projection prop 2 (summoning function), and projection prop 3 (ownership acquisition function). When a player selects from them, such as selecting projection prop 2 (summoning function), the target player character holding the projection prop of the selected functional type (i.e., projection prop 2) can be selected in the interface of the virtual scene.
[0089] It can be understood that after the player selects a projection prop, while interacting with the projection prop of the selected functional type (i.e., projection prop 2), the prop switching control can be used (such as after selection, the prop selection control is updated to the prop switching control) to quickly switch the currently held projection prop to other projection props. Of course, the prop selection control can also be triggered to re-awaken the prop selection interface to select the desired projection prop from it; and, in order to facilitate the player's selection, the projection props with different functional types held by the player can also be directly displayed in the interface of the virtual scene, and the player can directly select the desired projection prop from it to improve the efficiency of prop selection.
[0090] Step 102: In response to a projection trigger operation on a projection item, control the target player character to project the projection item.
[0091] In some embodiments, the terminal can respond to a projection trigger operation on the projection prop to control the projection prop to project in the target direction in the following manner: when the projection prop is a throwing prop, in response to a throwing trigger operation on the throwing prop, the target player character is controlled to throw the throwing prop to control the throwing prop to fly in the target direction, wherein the throwing prop is used to hit or act on the first non-player character; when the projection prop is a shooting prop, in response to a shooting trigger operation on the shooting prop, the target player character is controlled to launch at least one projectile in the target direction through the shooting prop, wherein the at least one projectile is used to hit or act on the first non-player character.
[0092] In practical applications, when the projectile prop is a throwing prop, the terminal can display the operation control of the throwing prop in the interface of the virtual scene; in response to the throwing trigger operation for the operation control, the target player character is controlled to throw the throwing prop along the target direction to control the throwing prop to move along the target direction. Among them, the target direction is the direction of the target position, and the throwing prop is thrown out by the throwing prop itself to hit the target position, so the throwing prop can be controlled to aim in the direction of the target position, and the throwing trigger operation can be triggered after the aiming operation is released, and in response to the throwing trigger operation, the throwing prop is controlled to throw along the target direction indicated by the throwing trigger operation to control the throwing prop itself to fly along the target direction indicated by the throwing trigger operation. Of course, the target direction can also be any direction, that is, the terminal controls the throwing prop to throw in any direction (also called blind throwing).
[0093] When the projection prop is a shooting prop, the shooting prop hits the target by launching at least one projectile. In actual application, the terminal device displays the target player character, the shooting prop held by the target player character through the gripping part (such as the hand), and the operation control of the shooting prop in the interface of the virtual scene. When the user clicks the operation control of the shooting prop, the target player character can be controlled to equip the shooting prop (such as equipping bullets to the virtual firearm). Controls corresponding to shooting props can also be displayed in the interface of the virtual scene. Taking the shooting props as firearms as an example, a fire button is displayed in the virtual scene. When the terminal receives a shooting trigger operation triggered by the player based on the fire button, the firearm is controlled to fire at least one bullet in the target direction indicated by the shooting trigger operation. When the firearm is a shotgun, the bullets are fired in a burst, that is, multiple bullets can be fired at the same time during each shot, so that multiple bullets can be fired at multiple different target positions at one time to form multiple target areas; of course, when the firearm is an ordinary firearm (that is, a firearm that can only fire one bullet at a time), the firearm can also be controlled to fire multiple times at multiple different target positions to form multiple target areas, thereby attacking non-player characters in multiple target areas, giving the target player characters maximum assistance in interacting in the virtual scene, and helping to improve interaction efficiency.
[0094] Step 103: In response to the projection result of the projection prop on the first non-player character triggering a target feedback event, a target feedback operation corresponding to the target feedback event is performed.
[0095] Among them, the target feedback event is determined based on the projection result, the function type of the projection prop, and the ownership status of the first non-player character. That is, after the terminal controls the target player character to project the projection prop, it can be determined what kind of target feedback event is triggered based on the projection result of the projection prop on the first non-player character (used to indicate whether the projection prop hits the first non-player character), the function type of the projection prop (such as a summoning function or an ownership acquisition function), and the ownership status of the first non-player character (such as whether the ownership of the first non-player character is owned or transferable; when the ownership of the first non-player character is not owned by any virtual character, the first non-player character is considered to be in an ownership transferable state; when the ownership of the first non-player character is owned by other player characters or other non-player characters and can be transferred, the first non-player character is considered to be in an ownership transferable state; when the ownership of the first non-player character is owned by other player characters or other non-player characters and cannot be transferred, the first non-player character is considered to be in an ownership non-transferable state).
[0096] It is understandable that when any of the projection result, the function type of the projection prop, and the ownership status of the first non-player character is different, the triggered target feedback event may be different. In this way, the effect presented by the terminal executing the target feedback operation corresponding to the target feedback event is that the performance of the non-player character and the player character is flexible and changeable, which greatly improves the immersion and freedom of the player character in the game process.
[0097] In some embodiments, when the function type of the projection item is a summoning function, before executing the target feedback operation corresponding to the target feedback event, the terminal may determine that the projection result has triggered the target feedback event in the following manner: in response to the projection result indicating that the projection item hits the first non-player character or does not hit the first non-player character, determine that the projection result has triggered a summoning feedback event, and use the summoning feedback event as the target feedback event; accordingly, the terminal may execute the target feedback operation corresponding to the target feedback event in the following manner: summon a second non-player character at the target position, wherein the target player character owns the second non-player character, and the target position includes at least one of the following: the landing position of the projection item, the position within the distance range from the first non-player character, and the associated position of the target non-player character.
[0098] In actual applications, when the function type of the projection item is a summoning function, after the terminal controls the target player character to project the projection item, regardless of whether the projection item can hit the first non-player character, it can be considered that the projection result triggers a summoning feedback event. In this case, the terminal can summon the second non-player character held by the target player character (that is, the target player character owns the second non-player character), wherein the target position of the second non-player character summoned (that is, the display position of the second non-player character in the interface of the virtual scene) can be the landing position of the projection item, or it can be the terminal based on scene information in the virtual scene (such as the position information of the first non-player character, the target player character, etc.) The target position can be predicted based on the position information of the target player character, such as the position information of the player character, so that the summoned second non-player character appears in the most advantageous position to facilitate subsequent interactive operations. For example, the target position can be a position within a distance range from the first non-player character, so that when the second non-player character needs to be controlled to interact with the first non-player character in a battle, the second non-player character is in the most advantageous interactive position to fight with the first non-player character. For another example, the target position can be an associated position of the target player character (such as near the target player character), so that the second non-player character is in the most advantageous interactive position to assist the target player character in fighting with the first non-player character.
[0099] Through the above method, the summoning position of the second non-player character is flexible and targeted, which is conducive to improving the combat capability of the summoned second non-player character, thereby improving the combat capability of the target player character and improving the human-computer interaction efficiency.
[0100] In some embodiments, before the terminal controls the projection prop to project in the target direction in response to a projection trigger operation on the projection prop, it can determine the second non-player character to be summoned in the following manner: in the interface of the virtual scene, display the character identifier corresponding to at least one second non-player character owned by the target player character; in response to the character identifier selection operation, use the second non-player character corresponding to the selected character identifier as the second non-player character summoned corresponding to the summoning feedback event.
[0101] In practical applications, for a projectile with a summoning function, before the projectile is projected, a second non-player character to be summoned may be selected first, for example, Figure 5 , Figure 51 is a schematic diagram of selecting a non-player character provided by an embodiment of the present application. In the interface of the virtual scene, the character identification of at least one second non-player character owned by the target player character is displayed. The character identification is used to uniquely identify the corresponding second non-player character, and can be a character icon, a character number, etc., such as the second non-player character A, the second non-player character B, the second non-player character C, and the second non-player character D. In response to the character identification selection operation, the second non-player character corresponding to the selected character identification (such as the second non-player character corresponding to the character number B) is used as the second non-player character summoned corresponding to the summoning feedback event. In this way, when the summoning feedback event is triggered after the projection prop is controlled to be projected, the selected second non-player character (i.e., the second non-player character corresponding to the character number B) can be summoned.
[0102] In addition, in order to avoid displaying too much information in the interface of the virtual scene and causing visual interference to the player's interaction, a character selection control can be displayed in the interface of the virtual scene. When the player triggers the trigger operation of the character selection control, the character selection interface is called out for display, and the character identification of at least one second non-player character owned by the target player character is displayed in the character selection interface for the player to select from.
[0103] By means of the above method, before projecting the projectile, the second non-player character to be summoned can be selected manually, so that after the summoning feedback event is triggered, the selected second non-player character can be summoned, thereby improving the pertinence of the summoning.
[0104] In some embodiments, when the target player character holds multiple second non-player characters, the terminal can summon the second non-player characters at the target location in the following manner: obtain influencing parameters for influencing the summoning priority of each second non-player character, wherein the influencing parameters include at least one of the following: interactive features, the degree of antagonism with the first non-player character, and the degree of matching with the target player character; based on the influencing parameters, call a machine learning model for prediction to obtain the summoning priority of each second non-player character, wherein the machine learning model is trained based on the influencing parameters of the sample non-player characters and the annotated summoning priorities; summon the second non-player character with the highest summoning priority at the target location.
[0105] In actual applications, when the number of second non-player characters owned by the target player character is multiple (two or more), before the projection prop is projected, if the second non-player character to be summoned is not manually selected, the summoning priorities corresponding to different second non-player characters may be different. After determining that the projection result triggers the target feedback event, the terminal can automatically summon the second non-player character with the highest summoning priority. For example, there are three second non-player characters owned by the target player character, namely, second non-player character A, second non-player character B, and second non-player character C. The summoning priorities of these three second non-player characters decrease in sequence. The terminal can automatically summon the second non-player character with the highest summoning priority (namely, second non-player character A), thereby improving the summoning efficiency and intelligence of non-player characters.
[0106] When determining the summoning priority of each second non-player character, the terminal may first obtain influencing parameters for influencing the summoning priority of each second non-player character, such as the interaction characteristics of the second non-player character (attribute characteristics of battle interaction, such as skills that the second non-player character is good at releasing, virtual props that the second non-player character is good at using, historical battle success rate, etc.), the confrontation degree between the second non-player character and the first non-player character (which may be determined based on the interaction characteristics of the first non-player character and the second non-player character. For example, if the first non-player character is good at attacking but not good at defending, the confrontation degree between the second non-player character that is good at defending and the first non-player character is higher than the confrontation degree between the second non-player character that is good at attacking and the first non-player character, because the probability of the second non-player character that is good at defending defeating the first non-player character is higher than the probability of the second non-player character that is good at attacking defeating the first non-player character. The higher the confrontation degree, the higher the corresponding summoning priority) , the compatibility between the second non-player character and the target player character (which can be determined based on the interactive features between the target player character and the second non-player character. For example, if the target player character needs an offensive second non-player character to assist in the battle, the compatibility between the second non-player character that is good at attacking and the target player character is higher than the compatibility between the second non-player character that is good at defense and the target player character, because the probability of the second non-player character that is good at attacking assisting the target player character in defeating the first non-player character is higher than the probability of the second non-player character that is good at defense assisting the target player character in defeating the first non-player character. The higher the compatibility, the higher the corresponding summoning priority); after obtaining the influencing parameters for influencing the summoning priority of each second non-player character, performing prediction processing in the neural network model trained with the influencing parameters to obtain the summoning priority of each second non-player character can make the prediction more accurate.
[0107] Before applying the neural network model, it is necessary to train the initial neural network model, and then put the trained neural network model into application to realize combining the influencing parameters and predicting the summoning priority of each second non-player character through artificial intelligence technology. Among them, the neural network model is trained based on the influencing parameters of the sample non-player characters and the annotated summoning priority. For example, based on the sample non-player characters, the interactive features associated with the sample non-player characters, and the summoning priority annotated by the sample non-player characters, the initial neural network model is called for prediction processing to obtain the predicted summoning priority. After determining the value of the loss function of the neural network model through the predicted summoning priority and the annotated summoning priority, it can be determined whether the value of the loss function exceeds the preset threshold. When the value of the loss function exceeds the preset threshold, the error signal of the neural network model is determined based on the loss function, and the error signal is back-propagated in the neural network model, and the model parameters of each layer are updated during the propagation process.
[0108] Among them, the embodiments of the present application do not limit the model structure of the neural network model. For example, the neural network model can be a convolutional neural network, a deep neural network, etc.; it is not limited to the form of the loss function, for example, it can be a cross entropy loss function, an L2 loss function, etc.
[0109] Here, back propagation is explained. The training sample data is input into the input layer of the neural network model, passes through the hidden layer, and finally reaches the output layer and outputs the result. This is the forward propagation process of the neural network model. Since there is an error between the output result of the neural network model and the actual result, the error between the output result and the actual value is calculated, and the error is backpropagated from the output layer to the hidden layer until it propagates to the input layer. In the process of back propagation, the value of the model parameter is adjusted according to the error, that is, the loss function is constructed according to the error between the output result and the actual value, and the partial derivatives of the loss function with respect to the model parameters are calculated layer by layer to generate the gradient of the loss function with respect to the model parameters of each layer. Since the direction of the gradient indicates the direction of error expansion, the gradient of the model parameters is inverted and summed with the original parameters of each layer model. The summed result is used as the updated model parameters of each layer, thereby reducing the error caused by the model parameters, and the above process is continuously iterated until convergence.
[0110] In some embodiments, after the terminal summons the second non-player character at the target location, the terminal can control the second non-player character to fight against the first non-player character; in response to the first non-player character being in an ownership transferable state and the second non-player character defeating the first non-player character, the ownership of the first non-player character is transferred to the target player character; in response to the first non-player character being in an ownership non-transferable state and the second non-player character defeating the first non-player character, a virtual reward for defeating the first non-player character is obtained.
[0111] In actual applications, after summoning the second non-player character, the terminal can control the second non-player character to fight against the first non-player character, or control the second non-player character to assist the target player character in fighting against the first non-player character (or other player characters to which the first non-player character belongs). When the first non-player character is defeated, corresponding incentives are obtained according to the ownership status of the first non-player character. For example, when the first non-player character is in an ownership transferable state, after defeating the first non-player character, the ownership of the first non-player character can be transferred to the target player character. When the first non-player character is in an ownership non-transferable state, after defeating the first non-player character, corresponding virtual rewards (such as obtaining specific virtual props, virtual equipment, points, game coins, etc.) can be obtained.
[0112] In the above manner, by projecting a projection prop with a summoning function, the second non-player character held by the target player character can be summoned, and the second non-player character can be controlled to fight against the first non-player character, thereby enhancing the interactive initiative of the non-player characters and improving the immersion of the player characters in the game process.
[0113] In some embodiments, the terminal may display the first non-player character in the following manner: displaying the first non-player character in a first mode; wherein the first mode includes at least one of the following autonomous modes: exploration mode, leisure mode, and sandbox mode; correspondingly, the terminal may control the second non-player character to fight against the first non-player character in the following manner: switching the first mode to a second mode, and controlling the second non-player character to fight against the first non-player character in the second mode; wherein the second mode includes at least one of the following combat modes: turn-based combat mode, real-time combat mode, strategy combat mode, tactical combat mode, and fighting mode.
[0114] In actual applications, before triggering the summon feedback event, the first non-player character or the target player character can be in a first mode in the virtual scene, wherein the first mode refers to a mode in which the first non-player character or the target player character is independently located (i.e., an autonomous mode), which can be a play mode in which the first non-player character or the target player character independently explores the virtual scene (i.e., an exploration mode, such as), which can be a play mode in which the first non-player character or the target player character independently freely explores the open world of the virtual scene, in which combat is a part but not the main focus (i.e., a sandbox mode), or a play mode in which the first non-player character or the target player character independently relaxes in the virtual scene (i.e., a leisure mode, such as fishing, photography, planting, etc.).
[0115] After the summoning feedback event is triggered and the second non-player character is summoned, the first mode can be switched to the second mode, and the second non-player character can be controlled to fight with the first non-player character in the second mode, wherein the second mode is a battle mode related to the battle, such as when the second mode is a turn-based battle mode, in the turn-based battle mode, the second non-player character and the first non-player character have their own action rounds, and in each action round, the second non-player character and the first non-player character can perform their own actions, such as attacking, defending, using special skills, etc.; when the second mode is a real-time battle mode, in the real-time battle mode, the actions and reactions of the second non-player character and the first non-player character occur instantly, and the target player character The second non-player character can be controlled to react and operate quickly to defeat the first non-player character; when the second mode is a strategic battle mode, in the strategic battle mode, the target player character usually needs to manage an organization, the battle is macroscopic, and the second non-player character is controlled to defeat the first non-player character through strategy and decision-making; when the second mode is a tactical battle mode, in the tactical battle mode, the target player character focuses on tactical layout and strategic planning, and needs to consider factors such as terrain, unit attributes and skill matching, and controls the second non-player character to fight against the first non-player character; when the second model is a fighting mode, the target player character controls the second non-player character to fight one-on-one with the second non-player character, emphasizing combos and timing. When the battle is over, the second mode can be controlled to return to the first mode, that is, the target player character or the first non-player character plays in the first mode in the virtual scene.
[0116] Through the above method, in different situations, controlling the player characters or non-player characters to interact in different modes can not only improve the fun of the interaction, but also improve the immersion of the interaction.
[0117] In some embodiments, when the function type of the projection item is an ownership acquisition function, before executing the target feedback operation corresponding to the target feedback event, the terminal may determine that the projection result has triggered the target feedback event in the following manner: in response to the first non-player character being in an ownership transferable state and the projection result indicating that the projection item hits the first non-player character, determine that the projection result has triggered an ownership transfer event, and use the ownership transfer event as the target feedback event; accordingly, the terminal may execute the target feedback operation corresponding to the target feedback event in the following manner: transfer the ownership of the first non-player character to the target player character.
[0118] In actual application, when the function type of the projection item is the ownership acquisition function (i.e., used to acquire the ownership of the first non-player character), after the terminal controls the target player character to project the projection item, if the projection item hits the first non-player character, it is further determined whether the ownership transfer event can be triggered according to the ownership status of the first non-player character. When the first non-player character is in an ownership transferable state, it can be determined that the ownership transfer event is triggered, and the ownership of the first non-player character can be transferred to the target player character; when the first non-player character is in an ownership non-transferable state, it can be determined that the ownership transfer event is not triggered, but an interactive feedback event bound to the first non-player character is triggered.
[0119] In some embodiments, after the ownership of the first non-player character is transferred to the target player character, a projection item may be displayed at the display position of the first non-player character to replace the first non-player character; in response to the display time of the projection item at the display position reaching the target time, an animation of the projection item disappearing from the display position is shown.
[0120] In actual applications, when the projection result triggers an ownership transfer event, after the ownership of the first non-player character is transferred to the target player character, the projection prop can be displayed at the display position of the first non-player character to replace the first non-player character. Then, when the display time of the projection prop reaches the target time (which can be set according to actual needs, such as 3 seconds), the animation of the projection prop disappearing from the display position is displayed, and the player can find the projection prop in the prop backpack or warehouse of the target player character.
[0121] In some embodiments, when the function type of the projection prop is the ownership acquisition function, before executing the target feedback operation corresponding to the target feedback event, the terminal can determine that the projection result triggers the target feedback event in the following manner: in response to the projection result indicating that the projection prop did not hit the first non-player character, determine that the projection result triggers the prop pickup event, and use the prop pickup event as the target feedback event; accordingly, the terminal can execute the target feedback operation corresponding to the target feedback event in the following manner: display the projection prop at the landing position of the projection prop; in response to the prop pickup operation, control the target player character to move to the pickup range of the projection prop, and pick up the projection prop.
[0122] In actual applications, when the function type of the projection prop is the ownership acquisition function, if the projection result indicates that the projection prop did not hit the first non-player character, it can be determined that the projection result triggered the prop pickup event. The terminal responds to the prop pickup event and displays the projection prop at the landing position of the projection prop. The player can control the target player character to move to the pickup range of the projection prop (such as a circular area with the landing position as the center and the target distance as the radius), and control the target player character within the pickup range to pick up the projection prop.
[0123] In some embodiments, before executing the target feedback operation corresponding to the target feedback event, the terminal may determine that the projection result triggers the target feedback event in the following manner: in response to the first non-player character being in a non-transferable ownership state and the projection result indicating that the projection prop hits the first non-player character, determine that the projection result triggers an interactive feedback event bound to the first non-player character, and use the interactive feedback event bound to the first non-player character as the target feedback event.
[0124] In actual applications, when the ownership of the first non-player character is not transferable, if the projection result indicates that the projection item hits the first non-player character, no matter what the function type of the projection item is, it can be determined that the projection result triggers an interactive feedback event bound to the first non-player character, where there are multiple types of interactive feedback events, such as but not limited to: battle feedback events, plot interpretation feedback events, task execution feedback events, and mechanism challenge feedback events.
[0125] In some embodiments, the terminal may perform the target feedback operation corresponding to the target feedback event in the following manner: in response to the interactive feedback event being a battle feedback event, controlling a third non-player character held by the target player character to fight against the first non-player character; or, in response to the interactive feedback event being a battle feedback event and the first non-player character belonging to the target virtual character, controlling the target player character to use the third non-player character to fight against the first non-player character used by the target virtual character.
[0126] In actual applications, when the interactive feedback event is a battle feedback event, the terminal executes a target feedback operation corresponding to the target feedback event (i.e., the battle feedback event) which may be to control the target player character to send a third non-player character owned by it to fight against the first non-player character, or to control the target player character to fight against the first non-player character, or to control the target player character to fight against the target virtual character (which may be another player character or another non-player character) to which the first non-player character belongs, or to control the third non-player character to fight against the target virtual character to which the first non-player character belongs (i.e., the target virtual character owns the first non-player character), or to control the third non-player character to assist the target player character to fight against the first non-player character and the target virtual character to which it belongs; in this way, the battle mode is enriched, the performance of the non-player character is flexible and varied, and the immersion and freedom of the player character in the interaction process can be improved.
[0127] In some embodiments, when the target player character has multiple non-player characters, the third non-player character may be determined by: filtering the default non-player characters from the multiple non-player characters held by the target player character, and determining the filtered default non-player characters as the third non-player character; or determining the battle priority of each non-player character held by the target player character, and determining the non-player character whose battle priority is higher than a priority threshold as the third non-player character.
[0128] In actual applications, when there are multiple non-player characters owned by the target player character, the default non-player character can be pre-configured. In this way, when the battle feedback event is triggered, the non-player character configured as the default can be controlled to fight as the third non-player character. For example, there are three non-player characters owned by the target player character, namely non-player character A, non-player character B and non-player character C. If non-player character C is pre-configured as the default, when the battle feedback event is triggered, non-player character C can be determined as the third non-player character in the battle.
[0129] In some embodiments, the combat priority of a non-player character may be determined in the following manner: obtaining an influencing factor for influencing the combat priority of each non-player character, wherein the influencing factor includes at least one of the following: an interactive feature, a degree of antagonism with a first non-player character, and a degree of compatibility with a target player character; based on the influencing factor, querying the correspondence between different influencing factors and different combat priorities, and using the queried combat priority as the combat priority of the corresponding non-player character.
[0130] In actual applications, when there are multiple non-player characters owned by the target player character, the battle priorities corresponding to different non-player characters are different, and the non-player character with the highest battle priority can be sent to fight first. For example, there are three non-player characters owned by the target player character, namely non-player character A, non-player character B, and non-player character C. The battle priorities of these three non-player characters decrease in sequence, and the terminal can send the non-player character with the highest battle priority (namely non-player character A) to fight (that is, the non-player character with the highest battle priority (namely non-player character A) is determined as the third non-player character), thereby improving the control efficiency and intelligence of the non-player characters.
[0131] When determining the battle priority of the non-player character owned by the target player character, the terminal may first obtain influencing factors for influencing the battle priority of the non-player character, such as the interaction characteristics of the non-player character owned by the target player character (attribute characteristics of battle interaction, such as skills that are good at releasing, virtual props that are good at using, historical battle success rate, etc.), the confrontation degree between the non-player character and the first non-player character (which may be determined based on the interaction characteristics of the first non-player character and the non-player character owned by the target player character, such as if the first non-player character is good at attacking but not good at defending, then among the non-player characters owned by the target player character, the confrontation degree between the non-player character that is good at defending and the first non-player character is higher than the confrontation degree between the non-player character that is good at attacking and the first non-player character, because the probability of the non-player character that is good at defending defeating the first non-player character is higher than the probability of the non-player character that is good at attacking defeating the first non-player character, and the higher the confrontation degree, the corresponding the higher the battle priority), the compatibility between the non-player character owned by the target player character and the target player character (which can be determined based on the interaction characteristics of the target player character and the non-player character. For example, if the target player character needs a defensive non-player character to assist in the battle, then among the non-player characters owned by the target player character, the compatibility between the non-player character that is good at defense and the target player character is higher than the compatibility between the non-player character that is good at attack and the target player character, because the probability of a non-player character that is good at defense assisting the target player character in defeating the first non-player character is higher than the probability of a non-player character that is good at attack assisting the target player character in defeating the first non-player character. The higher the compatibility, the higher the corresponding battle priority); after obtaining the influencing factors for influencing the summoning priority of each non-player character, the corresponding relationship between different influencing factors and different battle priorities can be queried, and the queried battle priority can be used as the battle priority of the corresponding non-player character.
[0132] It should be noted that when the number of non-player characters owned by the target player character is multiple (two or more), the non-player characters for battle can be manually selected before the projection prop is projected or after the battle feedback event is triggered. Taking the non-player character selected for battle before the projection prop is projected as an example, in the interface of the virtual scene, at least one non-player character owned by the target player character is displayed, such as non-player character A, non-player character B, and non-player character C. In response to the character selection operation, the selected non-player character (such as non-player character C) is used as the non-player character sent to battle when the target feedback operation corresponding to the battle feedback event is executed. In this way, after controlling the projection prop to be projected and triggering the battle feedback event, the selected non-player character (i.e., non-player character C) can be sent to battle, which can improve the targetedness of sending non-player characters to battle.
[0133] In some embodiments, the terminal may perform a target feedback operation corresponding to the target feedback event in the following manner: in response to the interactive feedback event being a plot interpretation feedback event, controlling the target player character to move to an associated position of the first non-player character; and controlling the target player character at the associated position to perform a plot interpretation operation with the first non-player character.
[0134] In actual applications, when the interactive feedback event is a plot interpretation feedback event, the target feedback operation corresponding to the terminal executing the target feedback event (i.e., the plot interpretation feedback event) can be to control the non-player character and the player character to perform plot interpretation. The so-called plot interpretation refers to the presentation method and expression method of the game storyline, which usually includes text descriptions, character dialogues, character actions, animations, cutscenes and other forms. The purpose is to enable players to better understand and immerse themselves in the game's story world.
[0135] For example, the target non-player character is controlled to move to the associated position of the first non-player character (such as near the first non-player character), and the target player character at the associated position is controlled to perform a plot interpretation operation with the first non-player character, wherein the plot interpretation operation is a interpretation operation performed to advance the plot in order to release the non-transferable state of ownership, and is closely related to the plot interpretation feedback event. Different plot interpretation feedback events may correspond to different plot interpretation methods. For example, the plot interpretation may rely on the combination of text and images. Players promote the development of the story by reading text and making choices. Different choices will lead to different endings, which increases the playability and replay value of the game. For another example, the plot interpretation may also be reflected in the interaction of character actions, dialogues and the environment. Players experience the development of the story and the conflict between characters by controlling player characters and non-player characters to perform various tasks and battles.
[0136] Through the above methods, players can be more involved in the game world, which improves the immersion and interactivity of players during the game.
[0137] In some embodiments, the terminal can perform the target feedback operation corresponding to the target feedback event in the following manner: in response to the interactive feedback event being a task execution feedback event, controlling the target player character or the first non-player character to perform the target task according to the task execution process; in response to the interactive feedback event being a mechanism challenge feedback event, controlling the target player character or the first non-player character to perform the mechanism challenge operation corresponding to the mechanism challenge feedback event.
[0138] In actual applications, when the interactive feedback event is a task execution feedback event, the target feedback operation corresponding to the terminal execution target feedback event (i.e., task execution feedback event) can be to control the non-player characters and the player characters to perform the target task according to the task execution process. The target task (also known as the task chain) is a series of interrelated tasks in the game. These tasks usually require the player characters or non-player characters to complete in a certain order. After each task is completed, the next task will be introduced until the entire storyline is completed or an important goal is achieved. The design of the task chain can guide players to gradually understand the story background of the game world, explore more game content, and unlock new functions or areas, which helps to enhance the immersion and narrative experience of the game.
[0139] When the interactive feedback event is a mechanism challenge feedback event, the target feedback operation corresponding to the target feedback event (i.e., the mechanism challenge feedback event) executed by the terminal may be controlling the target player character or the first non-player character to execute the mechanism challenge operation corresponding to the mechanism challenge feedback event. The mechanism challenge operation targets mechanisms or puzzles set in the game that require players to explore, discover and interact with. These mechanisms are usually hidden in various corners of the game world, and players need to activate or unlock them by exploring, solving puzzles or using specific props. For example, in some games, players can trigger hidden boxes or open entrances to other worlds by knocking down blocks in specific locations; in other games, triggering the big world mechanism (i.e., the mechanism challenge feedback event) may lead to the opening of a task chain, such as players needing to trigger a series of adventures and tasks through exploration, and these adventures and tasks may reveal more secrets or storylines about the game world.
[0140] Through the above methods, quest chains and large world mechanisms are important elements designed to enrich game content and enhance player experience. They can enable players to participate more deeply in the game's story and world view.
[0141] In some embodiments, after the terminal executes the target feedback operation corresponding to the target feedback event, in response to the non-transferable ownership state of the first non-player character being released, the terminal may control the ownership state of the first non-player character to be updated from the non-transferable ownership state to the transferable ownership state.
[0142] In actual applications, when the projection result triggers an interactive feedback event and the terminal executes the target feedback operation corresponding to the interactive feedback event, when the target feedback operation result indicates that the non-transferable state of ownership of the first non-player character is released (such as the battle result indicates that the first non-player character is defeated or other player characters are defeated, the plot interpretation result reaches the predetermined effect, the interactive task in the task chain is completed, the mechanism challenge task is completed, etc., all of which can release the non-transferable state of ownership), the ownership state of the first non-player character is controlled to be updated from the non-transferable state of ownership to the transferable state of ownership; in this way, the enthusiasm and initiative of player interaction can be improved.
[0143] Next, an exemplary application of the embodiment of the present application in an actual application scenario will be described. Taking the virtual scene as a game as an example, the interactive method of the virtual scene provided by the embodiment of the present application will be described. Figure 6 , Figure 6 : is a flow chart of a virtual scene interaction method provided in an embodiment of the present application, the method comprising:
[0144] Step 201: The terminal displays a first non-player character and a target player character holding a projectile in an interface of a virtual scene.
[0145] Among them, the target player character is the virtual character of the current login account in the game. At this time, the target player character has not yet obtained the ownership of the first non-player character (that is, the ownership of the first non-player character can be held by other player characters or other non-player characters, or is not held by any character at this time). The target player character can obtain the ownership of the first non-player character by performing certain interactive operations.
[0146] Projectiles may have different functional types, such as summoning function (used to summon non-player characters) and ownership acquisition function (used to obtain ownership of non-player characters). Players may have multiple projectiles of different functional types, or may have different projectiles of the same functional type. Players may select projectiles of the required functional type for use according to actual needs.
[0147] Step 202: In response to a throwing trigger operation for a projectile, controlling a target player character to throw the projectile in a target direction.
[0148] Step 203: Determine whether the projectile hits the first non-player character.
[0149] Here, when the projectile does not hit the first non-player character, step 204 or step 205 is executed; when the projectile hits the first non-player character, step 206 is executed.
[0150] Step 204: When the function type of the projectile is a summoning function, a summoning feedback event is triggered to summon a second non-player character owned by the target player character.
[0151] In actual applications, when the function type of the projectile is a summoning function, regardless of whether the projectile can hit the first non-player character, a summoning feedback event can be triggered to summon a second non-player character owned by the target player character, that is, the summoned second non-player character is displayed at the landing location of the projectile.
[0152] When the target player character has multiple second non-player characters, before projecting the projectile, the second non-player characters to be summoned may be selected first, for example, Figure 5 In the interface of the virtual scene, the character identification of at least one second non-player character owned by the target player character is displayed. The character identification is used to uniquely identify the corresponding second non-player character, and can be a character icon, a character number, etc., such as the second non-player character A, the second non-player character B, and the second non-player character C (A, B, C are character numbers). In response to the character identification selection operation, the second non-player character corresponding to the selected character identification (such as the second non-player character corresponding to the character number B) is used as the second non-player character summoned corresponding to the summoning feedback event. In this way, when the summoning feedback event is triggered after the projection prop is projected, the selected second non-player character (i.e., the second non-player character corresponding to the character number B) can be summoned.
[0153] It should be noted that, for the sake of game ecological balance, the summoning feedback event can be triggered and the second non-player character owned by the target player character can be summoned only when the function type of the projection item is the summoning function and the projection item hits the first non-player character.
[0154] Step 205: When the function type of the projectile prop is the ownership acquisition function, a prop pickup event is triggered to display the projectile prop at the landing position of the projectile prop for the target player character to pick up.
[0155] See also Figure 7 , Figure 7 It is a schematic diagram of item picking provided in an embodiment of the present application. When the function type of the projection item is the ownership acquisition function and the projection item does not hit the first non-player character 701, a prop picking event can be triggered, that is, the projection item 702 is displayed at the landing point of the projection item, and the terminal can control the target player character to move to the vicinity of the projection item 702 to pick up the projection item.
[0156] Step 206: Determine whether the first non-player character is in a state where ownership can be transferred.
[0157] Here, in the case where the projectile hits the first non-player character, when the first non-player character is in a non-transferable ownership state, step 207 is executed; when the first non-player character is in a transferable ownership state, step 208 or step 209 is executed.
[0158] See also Figure 8 , Figure 8 1 is a schematic diagram of feedback of a non-player character provided in an embodiment of the present application. The terminal controls the target player character to project the projection prop toward the first non-player character 801 in FIG. (a). If the projection prop hits the first non-player character and the first non-player character is in a state where ownership can be transferred, the target player character is controlled to obtain ownership of the first player character. In addition, the projection prop 802 can be displayed at the display position of the first non-player character to replace the first non-player character (as shown in FIG. (b)). If the projection prop hits the first non-player character and the first non-player character is in a state where ownership cannot be transferred, the target player character does not obtain ownership of the first player character, and it can be determined that the interactive feedback event binding to the first non-player character is triggered, and the first non-player character 801 is controlled to make a response feedback (as shown in FIG. (b)).
[0159] Step 207: triggering an interactive feedback event bound to the first non-player character.
[0160] Here, when the projectile hits the first non-player character and the first non-player character is in a non-transferable ownership state, no matter what function type the projectile belongs to, it can trigger the interactive feedback event bound to the first non-player character, where there are many types of interactive feedback events, such as but not limited to: battle feedback events, plot interpretation feedback events, task execution feedback events (such as task chain feedback events), and mechanism challenge feedback events (such as big world mechanism feedback events).
[0161] For example, see Fig. 9 , Fig. 9 1 is a schematic diagram of the execution of an interactive feedback event provided by an embodiment of the present application. When the interactive feedback event is a battle feedback event, the virtual character 902 (i.e., the owner of the first non-player character) of the first non-player character 901 is controlled to appear from the dark, and the virtual character 902 (or the first non-player character 901) is controlled to fight against the target player character 903 (or the third non-player character 904 with the first battle ranking owned by the target player character). When the target player character 903 (or the third non-player character 904 owned by the target player character) defeats the virtual character 902, the ownership of the first non-player character 901 can be transferred to the target player character 903, that is, the target player character 903 obtains the ownership of the first non-player character 901, which can improve the enthusiasm and initiative of the player interaction.
[0162] For example, see Fig.10 , Fig.10 : is an execution schematic diagram of an interactive feedback event provided in an embodiment of the present application. When the interactive feedback event is a plot interpretation feedback event, the target feedback operation corresponding to the terminal executing the target feedback event (i.e., the plot interpretation feedback event) may be to control the non-player character to interpret the plot with the player character. The so-called plot interpretation refers to the presentation method and expression method of the game storyline, which usually includes text description, character dialogue, character action, animation, cutscene and other forms. The purpose may be to guide the target player character to release the non-transferable state of ownership of the first non-player character, so that the player can better understand and immerse himself in the story world of the game.
[0163] Step 208: When the function type of the projection item is a summoning function, a summoning feedback event is triggered to summon a third non-player character owned by the target player character, and the third non-player character is controlled to fight against the first non-player character, so that when the third non-player character defeats the first non-player character, the ownership of the first non-player character is transferred to the target player character.
[0164] Step 209: Transferring ownership of the first non-player user to the target player character.
[0165] Through the above method, when controlling the target player character holding the projection prop to interact in the virtual scene, the corresponding target feedback event is determined according to the projection result, the functional type of the projection prop and the ownership status of the first non-player character, so that each projection result for the first non-player character can trigger a corresponding feedback event, and different projection results, different functional types of projection props or different ownership statuses of the first non-player character can trigger different feedback events, resulting in flexible and changeable performance of the non-player character, which greatly improves the immersion and freedom of the player character in the interaction process.
[0166] So far, the interactive method of the virtual scene provided by the embodiment of the present application has been described in combination with the exemplary application and implementation of the electronic device provided by the embodiment of the present application. The following will continue to describe the interaction scheme of the virtual scene implemented by the cooperation of each module in the interactive device 555 for the virtual scene provided by the embodiment of the present application.
[0167] The character display module 5551 is used to display a first non-player character and a target player character holding a projection prop in the interface of a virtual scene; the projection control module 5552 is used to control the target player character to project the projection prop in response to a projection trigger operation for the projection prop; the feedback execution module 5553 is used to execute a target feedback operation corresponding to the target feedback event in response to the projection result of the projection prop for the first non-player character triggering a target feedback event; wherein the target feedback event is determined based on the projection result, the function type of the projection prop and the ownership status of the first non-player character.
[0168] In some embodiments, the projection control module is also used to control the target player character to throw the throwing prop in response to a throwing trigger operation on the throwing prop when the projection prop is a throwing prop, so as to control the throwing prop to fly in a target direction; when the projection prop is a shooting prop, in response to a shooting trigger operation on the shooting prop, control the target player character to launch at least one projectile in the target direction through the shooting prop, wherein the at least one projectile is used to attack the first non-player character.
[0169] In some embodiments, the character display module is further used to display a target player character holding a projection prop of the selected functional type in response to a prop selection operation.
[0170] In some embodiments, before displaying the target player character holding the projection prop of the selected functional type, the device also includes an operation receiving module for displaying a prop selection control in the interface of the virtual scene; in response to a prop viewing operation triggered based on the prop selection control, displaying at least two functional types of projection props; in response to a triggering operation for a projection prop of a target functional type, receiving the prop selection operation, wherein the prop selection operation indicates that the projection prop of the target functional type is used as the projection prop held by the target player character.
[0171] In some embodiments, when the function type of the projection item is a summoning function, before executing the target feedback operation corresponding to the target feedback event, the device also includes: a first event determination module, which is used to determine that the projection result triggers a summoning feedback event in response to the projection result indicating that the projection item hits the first non-player character or does not hit the first non-player character, and uses the summoning feedback event as the target feedback event; the feedback execution module is also used to summon a second non-player character at a target position, wherein the target player character owns the second non-player character, and the target position includes at least one of the following: the landing position of the projection item, the position within the distance range from the first non-player character, and the associated position of the target non-player character.
[0172] In some embodiments, in response to a projection trigger operation on the projection prop, before controlling the projection prop to project in a target direction, the device also includes: a character selection module, used to display a character identifier corresponding to at least one second non-player character owned by the target player character in the interface of the virtual scene; in response to a character identifier selection operation, using the second non-player character corresponding to the selected character identifier as the second non-player character summoned corresponding to the summon feedback event.
[0173] In some embodiments, when there are multiple second non-player characters held by the target player character, the feedback execution module is further used to obtain influencing parameters for influencing the summoning priority of each of the second non-player characters, wherein the influencing parameters include at least one of the following: interactive features, the degree of antagonism with the first non-player character, and the degree of matching with the target player character; based on the influencing parameters, calling a machine learning model for prediction to obtain the summoning priority of each of the second non-player characters, wherein the machine learning model is trained based on the influencing parameters of sample non-player characters and the annotated summoning priorities; summoning the second non-player character with the highest summoning priority at the target position.
[0174] In some embodiments, after the second non-player character is summoned at the target location, the device further includes: a battle control module, used to control the second non-player character to fight against the first non-player character; in response to the first non-player character being in an ownership transferable state and the second non-player character defeating the first non-player character, transferring the ownership of the first non-player character to the target player character; in response to the first non-player character being in an ownership non-transferable state and the second non-player character defeating the first non-player character, obtaining a virtual reward for defeating the first non-player character.
[0175] In some embodiments, the character display module is also used to display a first non-player character in a first mode; wherein the first mode includes at least one of the following autonomous modes: exploration mode, leisure mode, and sandbox mode; the battle control module is also used to switch the first mode to a second mode, and control the second non-player character to fight against the first non-player character in the second mode; wherein the second mode includes at least one of the following combat modes: turn-based combat mode, real-time combat mode, strategy combat mode, tactical combat mode, and fighting mode.
[0176] In some embodiments, when the function type of the projection item is an ownership acquisition function, before executing the target feedback operation corresponding to the target feedback event, the device also includes: a second event determination module, which is used to determine that the projection result triggers an ownership transfer event in response to the first non-player character being in an ownership transferable state and the projection result indicating that the projection item hits the first non-player character, and uses the ownership transfer event as the target feedback event; the feedback execution module is also used to transfer the ownership of the first non-player character to the target player character.
[0177] In some embodiments, after the ownership of the first non-player character is transferred to the target player character, the device further includes: a replacement module, configured to display the projection prop at the display position of the first non-player character to replace the first non-player character; in response to the display time of the projection prop at the display position reaching a target time, displaying an animation of the projection prop disappearing from the display position.
[0178] In some embodiments, when the function type of the projection prop is an ownership acquisition function, before executing the target feedback operation corresponding to the target feedback event, the device also includes: a third event determination module, which is used to determine that the projection result triggers a prop pickup event in response to the projection result indicating that the projection prop did not hit the first non-player character, and use the prop pickup event as the target feedback event; the feedback execution module is also used to display the projection prop at the landing position of the projection prop; in response to the prop pickup operation, control the target player character to move to the pickup range of the projection prop, and pick up the projection prop.
[0179] In some embodiments, before executing the target feedback operation corresponding to the target feedback event, the device also includes: a fourth event determination module, which is used to determine that the projection result triggers the interactive feedback event bound to the first non-player character in response to the first non-player character being in a non-transferable ownership state and the projection result indicating that the projection prop hits the first non-player character, and uses the interactive feedback event bound to the first non-player character as the target feedback event.
[0180] In some embodiments, the feedback execution module is further used to control a third non-player character held by the target player character to fight against the first non-player character in response to the interactive feedback event being a battle feedback event; or, in response to the interactive feedback event being a battle feedback event and the first non-player character belonging to the target virtual character, control the target player character to use the third non-player character to fight against the first non-player character used by the target virtual character.
[0181] In some embodiments, when the number of non-player characters held by the target player character is multiple, the device further includes: a role determination module, which is used to filter out a default non-player character from the multiple non-player characters held by the target player character, and determine the filtered default non-player character as the third non-player character; or determine the battle priority of each non-player character held by the target player character, and determine the non-player character whose battle priority is higher than a priority threshold as the third non-player character.
[0182] In some embodiments, the device also includes: a priority determination module, used to obtain an influencing factor for influencing the battle priority of each of the non-player characters, wherein the influencing factor includes at least one of the following: interactive features, the degree of antagonism with the first non-player character, and the degree of matching with the target player character; based on the influencing factor, query the correspondence between different influencing factors and different battle priorities, and use the queried battle priority as the battle priority of the corresponding non-player character.
[0183] In some embodiments, the feedback execution module is further used to control the target player character to move to the associated position of the first non-player character in response to the interactive feedback event being a plot interpretation feedback event; and control the target player character located at the associated position to perform a plot interpretation operation with the first non-player character.
[0184] In some embodiments, the feedback execution module is also used to control the target player character or the first non-player character to perform the target task according to the task execution process in response to the interactive feedback event being a task execution feedback event; and to control the target player character or the first non-player character to perform the mechanism challenge operation corresponding to the mechanism challenge feedback event in response to the interactive feedback event being a mechanism challenge feedback event.
[0185] In some embodiments, after executing the target feedback operation corresponding to the target feedback event, the device further includes: a state update module, which is used to control the ownership state of the first non-player character to be updated from the non-transferable ownership state to the transferable ownership state in response to the non-transferable ownership state of the first non-player character being released.
[0186] The embodiment of the present application provides a computer program product, which includes a computer program or a computer executable instruction, and the computer program or the computer executable instruction is stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instruction from the computer-readable storage medium, and the processor executes the computer executable instruction, so that the electronic device executes the above-mentioned virtual scene interaction method of the embodiment of the present application.
[0187] The present application embodiment provides a computer-readable storage medium storing computer executable instructions, wherein the computer executable instructions or computer programs are stored. When the computer executable instructions or computer programs are executed by a processor, the processor will be caused to execute the virtual scene interaction method provided by the present application embodiment, for example, Figure 3 The interactive method of the virtual scene is shown.
[0188] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.
[0189] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0190] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0191] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.
[0192] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. A virtual scene interaction method, characterized in that: The method comprises: In the interface of the virtual scene, a first non-player character and a target player character holding a projectile are displayed; In response to a projection trigger operation on the projection prop, controlling the target player character to project the projection prop; In response to a target feedback event being triggered by the projection result of the projection prop on the first non-player character, performing a target feedback operation corresponding to the target feedback event; The target feedback event is determined based on the projection result, the function type of the projection item, and the ownership status of the first non-player character.
2. The method according to claim 1, characterized in that In response to the projection triggering operation on the projection prop, controlling the target player character to project the projection prop includes: When the projection prop is a throwing prop, in response to a throwing trigger operation for the throwing prop, the target player character is controlled to throw the throwing prop, so as to control the throwing prop to fly in a target direction; When the projection prop is a shooting prop, in response to a shooting trigger operation on the shooting prop, the target player character is controlled to launch at least one projectile in a target direction through the shooting prop.
3. The method according to claim 1, characterized in that The display of the target player character holding the projectile includes: In response to the item selection operation, a target player character holding a projectile item of the selected function type is displayed.
4. The method according to claim 3, characterized in that Before displaying the target player character holding the projectile of the selected functional type, the method further includes: In the interface of the virtual scene, a prop selection control is displayed; In response to a prop viewing operation triggered based on the prop selection control, displaying at least two functional types of projection props; In response to a trigger operation for a projection item of a target function type, the projection item selection operation is received, wherein the projection item selection operation instructs the projection item of the target function type to be used as the projection item held by the target player character.
5. The method according to claim 1, characterized in that When the function type of the projection prop is a summoning function, before executing the target feedback operation corresponding to the target feedback event, the method further includes: In response to the projection result indicating that the projection item hits the first non-player character or does not hit the first non-player character, determining that the projection result triggers a summoning feedback event, and using the summoning feedback event as the target feedback event; The executing the target feedback operation corresponding to the target feedback event includes: A second non-player character is summoned at a target position, wherein the target player character owns the second non-player character, and the target position includes at least one of the following: a landing position of the projectile, a position within a distance range from the first non-player character, and an associated position of the target non-player character.
6. The method according to claim 5, characterized in that Before controlling the projection prop to project in a target direction in response to a projection triggering operation on the projection prop, the method further includes: In the interface of the virtual scene, displaying a character identification corresponding to at least one second non-player character owned by the target player character; In response to the character identifier selection operation, the second non-player character corresponding to the selected character identifier is used as the second non-player character summoned corresponding to the summon feedback event.
7. The method according to claim 5, characterized in that When there are multiple second non-player characters held by the target player character, summoning the second non-player characters at the target position includes: Acquire an influencing parameter for influencing the summoning priority of each of the second non-player characters, wherein the influencing parameter includes at least one of the following: an interaction feature, a confrontation degree with the first non-player character, and a matching degree with the target player character; Based on the influence parameter, calling a machine learning model to make a prediction to obtain the summoning priority of each second non-player character, wherein the machine learning model is trained based on the influence parameter of the sample non-player character and the annotated summoning priority; A second non-player character with the highest summoning priority is summoned at the target location.
8. The method according to claim 5, characterized in that After summoning the second non-player character at the target location, the method further includes: controlling the second non-player character to fight against the first non-player character; In response to the first non-player character being in an ownership transferable state and the second non-player character defeating the first non-player character, transferring the ownership of the first non-player character to the target player character; In response to the first non-player character being in an ownership non-transferable state and the second non-player character defeating the first non-player character, a virtual reward obtained by defeating the first non-player character is obtained.
9. The method according to claim 8, characterized in that The displaying of the first non-player character comprises: displaying a first non-player character in a first mode; wherein the first mode comprises at least one of the following autonomous modes: exploration mode, casual mode, sandbox mode; The controlling the second non-player character to fight against the first non-player character includes: The first mode is switched to a second mode, and the second non-player character is controlled to fight against the first non-player character in the second mode; wherein the second mode includes at least one of the following combat modes: turn-based combat mode, real-time combat mode, strategic combat mode, tactical combat mode, and fighting mode.
10. The method according to claim 1, characterized in that When the function type of the projection prop is an ownership acquisition function, before executing the target feedback operation corresponding to the target feedback event, the method further includes: In response to the first non-player character being in an ownership transferable state and the projection result indicating that the projection item hits the first non-player character, determining that the projection result triggers an ownership transfer event, and using the ownership transfer event as the target feedback event; The executing the target feedback operation corresponding to the target feedback event includes: Ownership of the first non-player character is transferred to the target player character.
11. The method according to claim 10, characterized in that After transferring the ownership of the first non-player character to the target player character, the method further includes: Displaying the projection prop at the display position of the first non-player character to replace the first non-player character; In response to the display time of the projection prop at the display position reaching the target time, an animation of the projection prop disappearing from the display position is displayed.
12. The method according to claim 1, characterized in that When the function type of the projection prop is an ownership acquisition function, before executing the target feedback operation corresponding to the target feedback event, the method further includes: In response to the projection result indicating that the projection item did not hit the first non-player character, determining that the projection result triggered an item pickup event, and using the item pickup event as the target feedback event; The executing the target feedback operation corresponding to the target feedback event includes: Displaying the projection prop at the landing position of the projection prop; In response to the prop picking operation, the target player character is controlled to move into the pickup range of the projectile prop and pick up the projectile prop.
13. The method according to claim 1, characterized in that Before executing the target feedback operation corresponding to the target feedback event, the method further includes: In response to the first non-player character being in a non-transferable ownership state and the projection result indicating that the projection prop hits the first non-player character, it is determined that the projection result triggers an interactive feedback event bound to the first non-player character, and the interactive feedback event bound to the first non-player character is used as the target feedback event.
14. The method according to claim 13, characterized in that The executing the target feedback operation corresponding to the target feedback event includes: In response to the interactive feedback event being a battle feedback event, controlling a third non-player character held by the target player character to fight against the first non-player character; Alternatively, in response to the interactive feedback event being a battle feedback event and the first non-player character belonging to a target virtual character, the target player character is controlled to utilize a third non-player character to battle against the first non-player character utilized by the target virtual character.
15. The method according to claim 14, characterized in that When the number of non-player characters possessed by the target player character is multiple, the method further includes: Filtering out a default non-player character from the plurality of non-player characters held by the target player character, and determining the filtered default non-player character as the third non-player character; Alternatively, the battle priority of each of the non-player characters held by the target player character is determined, and a non-player character whose battle priority is higher than a priority threshold is determined as the third non-player character.
16. The method according to claim 15, characterized in that The method further comprises: Obtaining an influencing factor for influencing the battle priority of each of the non-player characters, wherein the influencing factor includes at least one of the following: an interaction feature, a confrontation degree with the first non-player character, and a matching degree with the target player character; Based on the influencing factors, the corresponding relationship between different influencing factors and different combat priorities is queried, and the queried combat priority is used as the combat priority of the corresponding non-player character.
17. The method according to claim 13, characterized in that The executing the target feedback operation corresponding to the target feedback event includes: In response to the interactive feedback event being a plot interpretation feedback event, controlling the target player character to move to a position associated with the first non-player character; The target player character located at the associated position is controlled to perform a plot interpretation operation with the first non-player character.
18. The method according to claim 13, characterized in that The executing the target feedback operation corresponding to the target feedback event includes: In response to the interactive feedback event being a task execution feedback event, controlling the target player character or the first non-player character to execute the target task according to the task execution process; In response to the interactive feedback event being a mechanism challenge feedback event, the target player character or the first non-player character is controlled to execute a mechanism challenge operation corresponding to the mechanism challenge feedback event.
19. The method according to any one of claims 14 to 18, characterized in that After executing the target feedback operation corresponding to the target feedback event, the method further includes: In response to the ownership non-transferable state of the first non-player character being released, the ownership state of the first non-player character is controlled to be updated from the ownership non-transferable state to the ownership transferable state.
20. An interactive device for a virtual scene, characterized in that: The device comprises: A character display module, used to display the first non-player character and the target player character holding the projectile in the interface of the virtual scene; A projection control module, for controlling the target player character to project the projection prop in response to a projection trigger operation on the projection prop; A feedback execution module, configured to execute a target feedback operation corresponding to the target feedback event in response to a target feedback event being triggered by the projection result of the projection prop on the first non-player character; The target feedback event is determined based on the projection result, the function type of the projection item, and the ownership status of the first non-player character.
21. An electronic device, characterized in that: include: A memory for storing computer executable instructions or computer programs; A processor, configured to implement the virtual scene interaction method described in any one of claims 1 to 19 when executing the computer executable instructions or computer programs stored in the memory.
22. A computer-readable storage medium, characterized in that: Computer executable instructions or computer programs are stored, and when the computer executable instructions or computer programs are executed by a processor, the virtual scene interaction method described in any one of claims 1 to 19 is implemented.
23. A computer program product comprising a computer program or computer executable instructions, characterized in that When the computer program or computer executable instructions are executed by a processor, the virtual scene interaction method described in any one of claims 1 to 19 is implemented.
