CN109568963B - Virtual resource data processing method and device, computer equipment and storage medium - Google Patents

Virtual resource data processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN109568963B
CN109568963B CN201710905161.9A CN201710905161A CN109568963B CN 109568963 B CN109568963 B CN 109568963B CN 201710905161 A CN201710905161 A CN 201710905161A CN 109568963 B CN109568963 B CN 109568963B
Authority
CN
China
Prior art keywords
virtual
skill
interactive
interaction
action
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710905161.9A
Other languages
Chinese (zh)
Other versions
CN109568963A (en
Inventor
林孔伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710905161.9A priority Critical patent/CN109568963B/en
Priority to PCT/CN2018/108338 priority patent/WO2019062855A1/en
Publication of CN109568963A publication Critical patent/CN109568963A/en
Application granted granted Critical
Publication of CN109568963B publication Critical patent/CN109568963B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/69Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by enabling or updating specific game elements, e.g. unlocking hidden features, items, levels or versions
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/55Details of game data or player data management
    • A63F2300/5526Game data structure
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/609Methods for processing data by generating or executing the game program for unlocking hidden game elements, e.g. features, items, levels

Abstract

The invention provides a virtual resource data processing method, which comprises the following steps: receiving an interactive instruction of a controlled virtual object in a current virtual interactive scene, and extracting a skill identifier carried in the interactive instruction; controlling the controlled virtual object to execute the interactive action corresponding to the skill identification according to the interactive instruction; receiving an interaction result, wherein the interaction result is determined according to the interaction action and the state of the interacted virtual object; and acquiring the user identification of the controlled virtual object, and updating the virtual resource corresponding to the user identification according to the interaction result. The updating of the virtual resources is associated with the result, so that the updating of the virtual resources is more accurate. In addition, a virtual resource data processing device, a computer device and a storage medium are also provided.

Description

Virtual resource data processing method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer processing, and in particular, to a method and an apparatus for processing virtual resource data, a computer device, and a storage medium.
Background
With the rapid development of the internet, network applications are becoming more and more diversified, and the commonly used network applications include video services, game services, and the like. In order to increase the interest of the service, virtual resources are usually configured in the service for exchanging some items or rights, etc. For example, in network games, users may redeem game skills, etc. through virtual resources.
The traditional virtual resource updating is often related to the occurrence of another type of data, but the occurrence of the data may not achieve the expected effect, so that the updating value of the virtual resource is inaccurate, and the traditional virtual resource updating has a vulnerability.
Disclosure of Invention
Therefore, it is necessary to provide a virtual resource data processing method, an apparatus, a computer device, and a storage medium, which can accurately update virtual resources, in order to solve the problem that the update value of the virtual resources is inaccurate.
A method of virtual resource data processing, the method comprising:
receiving an interactive instruction of a controlled virtual object in a current virtual interactive scene, and extracting a skill identifier carried in the interactive instruction;
controlling the controlled virtual object to execute the interactive action corresponding to the skill identification according to the interactive instruction;
receiving an interaction result, wherein the interaction result is determined according to the interaction action and the state of the interacted virtual object;
and acquiring the user identification of the controlled virtual object, and updating the virtual resource corresponding to the user identification according to the interaction result.
A virtual resource data processing apparatus, the apparatus comprising:
the extraction module is used for receiving an interactive instruction of a controlled virtual object in a current virtual interactive scene and extracting a skill identifier carried in the interactive instruction;
the control module is used for controlling the controlled virtual object to execute the interactive action corresponding to the skill identification according to the interactive instruction;
the determining module is used for receiving an interaction result, and the interaction result is determined according to the interaction action and the state of the interacted virtual object;
and the updating module is used for acquiring the user identification of the controlled virtual object and updating the virtual resource corresponding to the user identification according to the interaction result.
A computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions which, when executed by the processor, cause the processor to carry out the following steps when executing the computer program:
receiving an interactive instruction of a controlled virtual object in a current virtual interactive scene, and extracting a skill identifier carried in the interactive instruction;
controlling the controlled virtual object to execute the interactive action corresponding to the skill identification according to the interactive instruction;
receiving an interaction result, wherein the interaction result is determined according to the interaction action and the state of the interacted virtual object;
and acquiring the user identification of the controlled virtual object, and updating the virtual resource corresponding to the user identification according to the interaction result.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving an interactive instruction of a controlled virtual object in a current virtual interactive scene, and extracting a skill identifier carried in the interactive instruction;
controlling the controlled virtual object to execute the interactive action corresponding to the skill identification according to the interactive instruction;
receiving an interaction result, wherein the interaction result is determined according to the interaction action and the state of the interacted virtual object;
and acquiring the user identification of the controlled virtual object, and updating the virtual resource corresponding to the user identification according to the interaction result.
According to the virtual resource data processing method, the virtual resource data processing device, the computer equipment and the storage medium, after the virtual object is controlled to execute the interactive action corresponding to the skill identification according to the interactive instruction, the interactive result also needs to be received, the interactive result is determined according to the interactive action and the state of the interactive virtual object, and then the virtual resource corresponding to the user identification is updated according to the interactive result. Compared with the traditional method that the virtual resources are updated only by initiating corresponding interaction, the updating of the virtual resources is inaccurate, and the updating of the virtual resources is not only associated with the interaction action, but also associated with the corresponding interaction result. By updating according to the interaction result, the virtual resources can be updated more accurately.
Drawings
FIG. 1 is a flow diagram of a method for virtual resource data processing in one embodiment;
FIG. 2A is a schematic diagram of an embodiment of a virtual resource data processing method;
FIG. 2B is a second schematic interface diagram illustrating a virtual resource data processing method according to an embodiment;
FIG. 2C is a third schematic interface diagram illustrating a virtual resource data processing method according to an embodiment;
FIG. 3 is a flowchart of a method for processing virtual resource data in another embodiment;
FIG. 4 is a flowchart illustrating a method for controlling a corresponding virtual object to perform an interactive action corresponding to a skill identification in response to an interactive command according to an embodiment;
FIG. 5 is a flowchart of a virtual resource data processing method in yet another embodiment;
FIG. 6 is a flowchart of a virtual resource data processing method in yet another embodiment;
FIG. 7 is a block diagram of an embodiment of a virtual resource data processing apparatus;
FIG. 8 is a block diagram showing the construction of a virtual resource data processing apparatus according to another embodiment;
FIG. 9 is a block diagram showing a configuration of a virtual resource data processing apparatus in another embodiment;
FIG. 10 is a diagram showing an internal configuration of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, a method for processing virtual resource data is provided, which specifically includes the following steps:
and 102, receiving an interactive instruction of a controlled virtual object in the current virtual interactive scene, and extracting a skill identifier carried in the interactive instruction.
The virtual object is a digital object operable by the computer device, such as a virtual character in a game scene. The controlled virtual object refers to a virtual object that can be operated by the current end user. The virtual interactive scene is a scene which is provided for a virtual object and can be interacted, and can be a two-dimensional interactive scene or a three-dimensional interactive scene. For example, an environment is provided for two parties to play against each other in a game. The interactive instruction is used for controlling the controlled virtual object to execute corresponding action. The generation of the interaction instruction may be generated by receiving a click operation of a keyboard or a mouse, or by detecting a sliding or click operation of a touch screen, and in another embodiment, the interaction instruction may also be generated by detecting a gesture of a user, for example, in a three-dimensional interaction scenario, the interaction instruction may be generated according to a given gesture of the user. Skill identification is used to uniquely identify a skill. Many skills are often available in a game scenario, including attack skills and avoidance skills, each of which corresponds to a skill identification. The interactive instruction refers to interactive operation initiated by a user and is used for controlling the controlled virtual object to execute corresponding interactive action. The interaction comprises attack interaction, evasion interaction and the like, wherein the attack can be divided into short-distance attack and long-distance attack.
Specifically, the terminal receives an interactive instruction for operating a controlled virtual object in the current virtual interactive scene, the interactive instruction carries a corresponding skill identifier, and the skill identifier in the interactive instruction is extracted. The skill identification can be a unique number assigned to the skill by the system, a skill name identification code, or the like, as long as one skill can be uniquely identified.
And 104, controlling the controlled virtual object to execute the interactive action corresponding to the skill identification according to the interactive instruction.
The interactive instruction is interactive operation initiated by a user through an input device, and is used for controlling the controlled virtual object to execute corresponding action. The input device may be a touch layer covered on a display screen, a key, a track ball or a touch pad arranged on a casing of the computer device, or an external keyboard, a touch pad or a mouse. That is to say, the initiation of the interactive instruction may be an operation initiated by the user through the keyboard, an interactive operation triggered by a click operation of the touch screen, or an interactive operation triggered by other manners, and the operation of the interactive instruction is not limited here. The interactive action refers to an action which is controlled to be executed by the controlled virtual object and corresponds to the skill identification. The skill identification is used to uniquely identify a skill, and each skill corresponds to a corresponding performance action.
Specifically, a corresponding script file is obtained according to the skill identification, and then the controlled virtual object is controlled to execute a corresponding interactive action through the script file corresponding to the skill identification.
And 106, receiving an interaction result, wherein the interaction result is determined according to the interaction action and the state of the interacted virtual object.
Wherein the state of the interacted virtual object comprises at least one of a coordinate position of the interacted virtual object, a level type of the interacted virtual object, the number of the interacted virtual objects and the like. The level type refers to the level of the interacted virtual object, and the higher the level is, the higher the skill possessed by the virtual object is, and the lower the probability that the corresponding virtual object is hit is. The interactive action comprises at least one of a coordinate position corresponding to the interactive action, a type of the interactive action and the like. The interaction result includes at least one of whether the interacted virtual object is hit, a level type and a number of the hit interacted virtual object, and the like.
In one embodiment, whether the interacted virtual object is hit is judged according to the coordinate positions of the interactive action and the interacted virtual object, when the interactive action and the interacted virtual object have coordinate superposition, the interactive action and the interacted virtual object are collided, namely the interactive action hits the interacted virtual object, and the corresponding interaction result is that the interacted virtual object is hit. In another embodiment, after it is determined that the hit is hit on the interacted virtual object, the interaction result is further determined according to the level type of the interacted virtual object or the number of the interacted virtual objects. Since the higher the level of the interacted virtual object is, the lower the probability of being hit is, if the interacted virtual object with the higher level is hit, more virtual resources can be awarded correspondingly subsequently. When the number of the interacted virtual objects is multiple, the interaction action may hit multiple interacted objects at one time, and the more the interacted virtual objects hit, the more virtual resources awarded can be defined.
In one embodiment, the interaction result is determined by the terminal, for example, the terminal determines whether to hit the interacted virtual object by detecting the coordinate position of the interacted action and the interacted virtual object. In another embodiment, the interaction result may also be determined by the server, and then the determined interaction result is sent to the terminal, for example, the server determines whether the interaction action uploaded by the terminal and the coordinate position of the interacted virtual object coincide with each other, if the coincidence indicates that the interaction action hits the interacted virtual object, then the interaction result is returned to the terminal.
And 108, acquiring the user identification of the controlled virtual object, and updating the virtual resource corresponding to the user identification according to the interaction result.
In particular, a virtual resource refers to a resource that may be used to redeem a prop or skill in a particular scenario. For example, in a game scenario, when a user wins a game, the user may be rewarded with some virtual beans that the user may use to redeem for props or skills in the game scenario. The user identifier is used for uniquely identifying one user, and each player has the user identifier of the player in a game scene. The interaction result includes at least one of whether the interacted virtual object is hit and a level type, a number, etc. of the hit interacted virtual object. The interaction result and the reward rule of the virtual resource can be customized. For example, it may be set that whenever a controlled virtual object is hit, the corresponding virtual resource is rewarded. In another embodiment, the amount of virtual resources awarded may also be determined according to the level type or amount of virtual objects hit. For example, it may be set that the higher the level of the interacted virtual objects, the more virtual resources are awarded correspondingly, the greater the number of the interacted virtual objects, and the more virtual resources are awarded correspondingly. Of course, it can also be set that if the interacted virtual object is not hit, the corresponding virtual resource is deducted.
In another embodiment, the updating of the virtual resource is managed by the server, and specifically, after the interaction result is determined, a virtual resource updating request is generated according to the interaction result and the user identifier of the controlled virtual object, and the virtual resource updating request is sent to the server, so that the server updates the virtual resource corresponding to the user identifier according to the virtual resource updating request. That is, after the interaction result is determined, the terminal generates a virtual resource update request according to the interaction result and the user identifier of the controlled virtual object, and sends the virtual resource update request to the server, and the server sends the corresponding virtual resource to the account corresponding to the user identifier according to the interaction result.
According to the virtual resource data processing method, after the virtual object is controlled to execute the interactive action corresponding to the skill identification according to the interactive instruction, the interactive result corresponding to the interactive action is determined according to the interactive action and the state of the interacted virtual object, and then the virtual resource corresponding to the user identification is updated according to the interactive result. Compared with the traditional method that the virtual resources are updated only by initiating corresponding interaction, so that the updating of the virtual resources is inaccurate, the updating of the virtual resources is not only associated with the interaction action, but also associated with the corresponding interaction result, namely, only when the user initiates the interaction and hits the other party, the virtual resources are allowed to be updated, namely, the updating of the virtual resources can be more accurate by updating according to the interaction result.
As shown in fig. 2A, in a specific embodiment, 2 players respectively control different virtual objects, and the corresponding virtual objects may be referred to as ninja, that is, 2 players respectively control different ninja to play a 1-to-1 fighting game in the horizontal version 2D map, each ninja having a respective name and having a respective ninja skill. When a game starts, an interactive scene of a horizontal 2D fighting map is entered, the two players 201 and 202 corresponding to the two players are respectively at the two ends of the map, the two players are in a full blood state in an initial state, and the virtual resources 210 are both 0 (all diamond boxes representing the virtual resources in the figure are empty), and the corresponding virtual resources can be called as Olympic points (210). Both parties may launch attacks using respective ninja skills. When an attack is launched and the other party is hit, the Olympic Point may be added. If the attack is launched and the other side is not hit, the attack is invalid, and the Olympic point cannot be increased. Fig. 2B is a schematic diagram of an embodiment in which after the left ninja hits the right ninja, an Olympic point is added (the diamond in the corresponding diagram is shown as black), and the right ninja is attacked to reduce the blood volume.
As shown in FIG. 3, in one embodiment, the virtual resource is an aged virtual resource; the virtual resource data processing method further comprises the following steps:
and step 110, judging whether the aging time limit corresponding to the virtual resource is reached, if so, entering step 111, and if not, ending.
And step 111, emptying the virtual resources corresponding to the user identification, wherein the aging period comprises the end time point of the current virtual interactive scene.
The virtual resource is an aging virtual resource, the aging virtual resource means that the use of the virtual resource has a certain time limit, and when the time limit is exceeded, the virtual resource is emptied. In one embodiment, the aging period is the end time point of the current virtual interaction scenario, that is, once the current virtual interaction scenario ends, the virtual resource corresponding to the user identifier is automatically emptied. In another embodiment, the specific duration of the virtual resource may also be set, for example, the duration of the virtual resource is set to 10 minutes, that is, if the virtual resource is not used within 10 minutes, the virtual resource will automatically expire. By setting the time efficiency of the virtual resources, the user can be encouraged to use the corresponding virtual resources to exchange corresponding skills in time, the interaction interest and the interaction intensity are improved, and meanwhile inequality of resisting both parties caused by malicious accumulation of the virtual resources is avoided.
In one embodiment, the step of controlling the corresponding virtual object to execute the interactive action corresponding to the skill identification according to the interactive instruction includes: and when the skill identification is associated with the interactive object information, controlling the controlled virtual object to execute corresponding interactive action and generating a remote interactive object corresponding to the interactive object information.
Specifically, some interaction skills are accompanied by the generation of remote interactive objects (things), for example, when remote interaction is performed, a corresponding weapon (e.g., dagger) is thrown out. After the skill identification is obtained, firstly, whether the skill identification is associated with the interactive object information is judged, if yes, the controlled virtual object is controlled to execute corresponding interactive action, and meanwhile, the remote interactive object corresponding to the interactive object information is generated.
In one embodiment, the virtual resource data processing method further includes: and when the remote interactive object is associated with the sub-interactive object information, generating a corresponding remote sub-interactive object according to the sub-interactive object information.
In particular, the generated remote interactors may continue to generate some remote sub-interactors, for example, after a dagger is thrown, the dagger may generate many daggers to interact with each other. Therefore, when it is necessary to determine whether the remote interactive object is associated with the sub-interactive object information, if the remote interactive object is associated with the sub-interactive object information, the corresponding remote sub-interactive object is generated according to the sub-interactive object information.
As shown in fig. 4, in an embodiment, the step 104 of controlling the corresponding virtual object to perform the interaction action corresponding to the skill identification according to the interaction instruction includes:
and 104A, acquiring a script file corresponding to the skill identification according to the interactive instruction.
Specifically, a script file refers to an executable file written according to a certain format using a specific descriptive language. The script file corresponding to the skill identification is used for controlling the controlled virtual object to execute the corresponding interactive action. After an interactive instruction initiated by a user is received, the script file corresponding to the skill identification is obtained, and the controlled virtual object can be controlled to execute corresponding actions according to the interactive code which is written in the script file in advance.
And step 104B, judging whether the script file contains script information for generating the remote interactive object, if so, entering step 104C, and if not, entering step 104D.
And 104C, controlling the controlled virtual object to execute corresponding interactive actions according to the script file and simultaneously generating the remote interactive object corresponding to the script information.
And step 104D, controlling the controlled virtual object to execute corresponding interactive action according to the script file.
Specifically, some interaction skills are accompanied by the generation of remote interactive objects (things), such as throwing out corresponding weapons (e.g., dagger) when performing remote interaction. Therefore, after the script file corresponding to the skill identification is acquired, whether script information for generating the remote interactive object exists in the script file corresponding to the skill identification needs to be searched, and if the script information exists, the controlled virtual object is controlled to execute corresponding interactive action and simultaneously generate the remote interactive object corresponding to the script information. If the script file does not exist, the controlled virtual object is controlled to execute corresponding interactive action (such as punching a fist) according to the script file.
And step 104E, acquiring a script file corresponding to the remote interactive object, detecting whether the script file contains script information for generating the remote sub-interactive object, if so, entering step 104F, and if not, ending.
And step 104F, generating a corresponding remote sub-interactors according to the script information for generating the remote sub-interactors.
Specifically, after the remote interactable is generated, the remote interactable may continue to generate some remote sub-interactables. For example, after a dagger is thrown, the dagger can generate a plurality of daggers to interact with each other. Therefore, the script file corresponding to the remote interactive object may include script information for generating a remote sub-interactive object in addition to the script information for controlling the execution of the remote interactive object. And if the script file contains script information for generating the remote sub-interactive object, continuously generating the corresponding remote sub-interactive object according to the script information of the remote sub-interactive object. If the script information for generating the remote sub-interactors is not contained in the script file, the motion of the remote interactors (for example, the motion direction and the speed of the interactors) is controlled directly according to the execution codes of the remote interactors in the script file. It is understood that in another embodiment, the remote sub-interactors may also continue to generate sub-interactors, as described above.
In one embodiment, the interactive actions include close-body interactive actions and/or remote interactive actions; the step 106 of determining an interaction result corresponding to the interaction action according to the states of the interaction action and the interacted virtual object includes: when the interactive action is the close-to-body interactive action, if the controlled virtual object collides with the interacted virtual object, the effective interactive result is judged; and/or when the interaction action is a remote interaction action, if a remote interaction object corresponding to the remote interaction action collides with the interacted virtual object, determining that an effective interaction result is obtained.
Specifically, the interactive skills are classified into a near-body (near distance) interaction and a remote (far distance) interaction according to whether or not a remote interactive object is generated. The corresponding interaction includes a close-body interaction and/or a remote interaction. Wherein, the close-up interactive action refers to the interaction which is directly carried out without using weapons, and comprises the following steps: go out the interaction of bare-handed empty fist such as fist, fly and play, sweep the leg. Remote interaction refers to interaction with a weapon, including: dagger, lightning, grenade and other properties. When the interactive action is a close-body interactive action, directly judging whether the controlled virtual object and the interacted virtual object collide, if so, indicating that the interacted virtual object is hit, and judging that the interactive action is an effective interactive action (namely an effective interactive result). And when the interaction action is a remote interaction action, judging whether the generated remote interaction object (including a remote sub-interaction object) collides with the interacted virtual object, and if so, judging the interaction action as an effective interaction action (namely an effective interaction result). In one embodiment, the detection of whether a collision occurs between virtual objects and whether a collision occurs between a remote interactive object and an interacted virtual object is obtained by detecting whether the collision occurs to the corresponding cube frame. Specifically, in order to detect whether two virtual objects collide with each other and whether a remote interactive object collides with an interacted virtual object, a cube frame corresponding to each virtual object needs to be set in advance, for example, two cube frames may be set correspondingly for each virtual object, one cube frame covers a position of the head, and the other cube frame covers a portion of the body. When detecting whether two virtual objects collide, it is actually detected whether the respective corresponding cube frames overlap, that is, whether the coordinates corresponding to the respective corresponding cube frames overlap is determined, and if so, it is determined that the two virtual objects collide. Similarly, the cube frame corresponding to the remote interactive object can be preset, and then whether the cube frame corresponding to the remote interactive object is overlapped with the cube frame corresponding to the interacted virtual object is judged, if yes, the fact that the cube frame and the interacted virtual object are collided is indicated. In another embodiment, for more precise detection, each virtual object may be set to correspond to 5 small cube boxes, wherein the head portion corresponds to one cube box separately, the limbs correspond to one cube box respectively, and the rest of the middle body portion corresponds to one cube box. And judging that the two virtual objects collide as long as the cube frames corresponding to the two virtual objects are overlapped.
As shown in fig. 5, in an embodiment, the virtual resource data processing method further includes:
and 112, acquiring the quantity of the virtual resources corresponding to the user identifier, and judging whether the quantity of the virtual resources reaches a preset first threshold value, if so, entering the step 113, and if not, ending.
And step 113, starting a corresponding skill exchange function.
Specifically, the acquired virtual resources can be used for exchanging corresponding skills, a first threshold value is preset, and a corresponding skill exchange function is started only when the number of the virtual resources corresponding to the user identifier reaches the first threshold value. The number of virtual resources required for different skill exchanges is different, i.e. the first threshold value for different skills is different. And when the number of the virtual resources in the user identification reaches the number of certain skill exchange, automatically starting a corresponding skill exchange function. For example, some skills only need 1 virtual resource, some skills need 4 virtual resources, when the number of the virtual resources is 1, the corresponding function only needing one virtual resource can be started, and when the number of the virtual resources is 4, the skill exchange function needing 4 virtual resources can be continuously started, that is, only the number of the virtual resources meets the skill exchange condition, the corresponding skill exchange function can be started. Similarly, if one virtual resource is consumed and 3 virtual resources are consumed, the skill exchange function which needs 4 virtual resources is automatically closed.
And step 114, receiving the exchange request, and extracting the exchange skill identification carried in the exchange request.
Specifically, a skill exchange request initiated by a user is received, and a skill identifier carried in the exchange request is extracted. In order to facilitate operation, the user initiates the exchange request and simultaneously triggers a corresponding interaction instruction to extract the exchange skill identification carried in the exchange request, so that subsequent interaction can be directly performed according to the exchange skill corresponding to the exchange skill identification.
And step 116, controlling the controlled virtual object to execute the exchange skill action corresponding to the exchange skill identification according to the exchange skill identification, and completing corresponding skill exchange.
Wherein the redemption skill identification is used to uniquely identify a redemption skill. Specifically, a corresponding script file is obtained according to the extracted skill exchange identification, and the controlled virtual object is controlled to execute the skill exchange action corresponding to the skill exchange identification according to the set interaction action in the script file, so that the corresponding skill exchange is completed. It should be noted that, when the redemption request occurs, the corresponding virtual resources are deducted, that is, if the redemption skill requires 4 virtual resources, 4 virtual resources are deducted as redemption conditions.
In a specific embodiment, referring to fig. 2C, in the process of interaction between two people who live on the game, each time the other is hit, an oenological point (virtual resource) is correspondingly obtained, and after a certain amount of virtual resource is obtained, the virtual resource can be used to exchange corresponding skills. For example, when 4 points are collected, the corresponding olympic skills 221 can be exchanged, and the olympic skills refer to high-intensity skills used by consuming the olympic points (the black circles in the figure represent that the olympic skills are in an exchangeable state). While the avoidance skills may also be redeemed using Olympic points, for example, 1 Olympic point may be redeemed for the corresponding avatar 222. Substitution refers to the skill that allows one to escape from sustained injury or initiate counterattack while in an interacted state by an enemy. In a specific game interaction scene, when the ninja gambler is full of 4 Olympic points, the Olympic skill 221 can be exchanged by using the 4 Olympic points to attack the other party (when the circular box corresponding to the Olympic skill is black, the Olympic skill is in an exchangeable state). When the other person is attacked by the other person, the other person can use the alternate technique to avoid continuous injury, and because one point of the Olympic point is consumed when the alternate technique is used, the alternate technique can be used only under the condition that the Olympic point exists (when the corresponding circular frame 222 is black, the conversion state is indicated). Through the restriction relation between the substitution technique, the Olympic skill and the Olympic point, the updating of the virtual resources can be controlled in a strategic way, and the waste of the virtual resources is prevented.
In one embodiment, the redemption skill action includes a redemption interaction action; controlling the controlled virtual object to execute the exchange skill action corresponding to the exchange skill identification according to the exchange skill identification, and completing the corresponding skill exchange step, and then, the method further comprises the following steps: and judging whether the exchange skill action is a valid interaction action, if the exchange skill action is a invalid interaction action, ending the exchange, if the exchange skill action is a valid interaction action, judging whether the exchange skill action consumes all the current energy of the interacted virtual object, if the exchange skill action consumes all the current energy of the interacted object, issuing corresponding virtual resources as initial virtual resources of the next round, and if the exchange skill action does not consume all the current energy of the interacted object, ending the exchange.
Specifically, in order to encourage users to strategically play to acquire corresponding virtual resources and then reasonably use corresponding exchange skills, when the opposite party is hit by using the exchange skill action and all the current energy of the interacted virtual object is consumed, that is, the interacted virtual object is hit and killed by using the exchange skill finally, the system rewards some virtual resources as the initial virtual resources of the next round. Namely, the user is enabled to take a certain advantage on the virtual resources at the beginning of the next round of spelling. In one embodiment, in a game scenario, a game often requires multiple PK rounds, and when a PK is played in the current round, if the partner is finally killed by using the exchanged skills, the system will award some virtual resources as initial virtual resources for the next round. If the last used is that the common skill kills the counterpart (i.e., the counterpart is exhausted), the virtual resource is not awarded as the initial virtual resource for the next round. Through the pointed reward of the virtual resources, the users can carry out PK more strategically, namely, through effectively controlling the update of the virtual resources, the waste of the virtual resources can be avoided, and the virtual resources are reasonably utilized to the maximum extent.
In one embodiment, before the steps of obtaining the user identifier of the controlled virtual object and updating the virtual resource corresponding to the user identifier according to the interaction result, the method further includes: acquiring the quantity of the current virtual resources corresponding to the user identification; and judging whether the number of the current virtual resources is smaller than a preset second threshold value, if so, entering a step of acquiring a user identifier of the controlled virtual object, updating the virtual resources corresponding to the user identifier according to an interaction result, and if not, ending the step.
In order to prevent the virtual resources from being maliciously accumulated, exchange skills with stronger offensive power are continuously used for the interacted virtual objects. And presetting a threshold value of the virtual resource quantity corresponding to the user identifier, namely a second threshold value. When this preset second threshold is reached, no new virtual resources are released even if the interacted virtual object is hit again. Specifically, the number of the current virtual resources corresponding to the user identifier is obtained, whether the number of the current virtual resources is smaller than a preset virtual resource threshold value is judged, and if yes, the virtual resources corresponding to the user identifier are continuously updated according to the interaction result. And if the number of the current virtual resources reaches the virtual resource threshold value, the corresponding virtual resources are not updated according to the interaction result.
For example, assuming that 4 virtual resources are set as corresponding thresholds, if the user is currently full of 4 virtual resources, no new virtual resources are released after the interactive virtual object is hit again. And if the number of the current virtual resources is less than 4, updating the virtual resources corresponding to the user identification according to the interaction result. By the method for setting the virtual resource threshold, malicious virtual resource accumulation can be prevented, and meanwhile, users are encouraged to exchange skills in time, so that effective control over the virtual resources is realized.
In one embodiment, after the step of controlling the controlled virtual object to perform the interaction action corresponding to the skill identification in response to the interaction instruction, the method further includes: judging whether the skill corresponding to the skill identification belongs to the virtual resource updating skill, if the skill corresponding to the skill identification belongs to the virtual resource updating skill, entering a step of determining an interaction result corresponding to the interaction action according to the interaction action and the state of the interacted virtual object, and if not, ending the step.
Specifically, the virtual resource updating skill refers to a skill by which the use of the skill can update the corresponding virtual resource. The update rule of the virtual resource can be customized. In one embodiment, to encourage users to use certain functions, the corresponding functions may be set to virtual resource update skills, by which hitting an interacted virtual object may reward the corresponding virtual resource. If the virtual resource updating skill is not used, the corresponding virtual resource cannot be acquired even if the opposite side is hit. And the user can be encouraged to use the corresponding skills for interaction by setting the virtual resource updating skills. In another embodiment, in order to avoid that the user frequently uses a certain function, the corresponding function may also be set to update the skill for the virtual resource, and when the user hits the opposite party with the corresponding skill, a certain amount of the virtual resource is deducted accordingly. Through the updating of the virtual resources, the data updating of the virtual resources can be more accurate, and the virtual resources can be used for guiding the user to perform corresponding operation.
As shown in fig. 6, in an embodiment, a virtual resource data processing method is provided, and the method includes:
step 601, receiving an interactive instruction of a controlled virtual object in a current virtual interactive scene, and extracting a skill identifier carried in the interactive instruction.
Step 602, acquiring a script file corresponding to the skill identifier according to the interaction instruction, and judging whether the script file contains script information for generating the remote interactive object, if so, entering step 603, and if not, entering step 604.
Step 603, controlling the controlled virtual object to execute corresponding interaction actions according to the script file, generating a remote interactive object corresponding to the script information, judging whether the remote interactive object collides with the interacted virtual object, if so, entering step 605, and if not, ending.
Step 604, controlling the controlled virtual object to execute a corresponding interaction action according to the script file, and judging whether the controlled virtual object and the interacted virtual object collide, if so, entering step 705, and if not, ending;
step 605, obtaining the amount of the current virtual resource corresponding to the user identifier.
Step 606, determining whether the number of the current virtual resources is smaller than a preset second threshold, if so, entering step 607, and if not, ending.
Step 607, obtaining the user identifier of the controlled virtual object, updating the virtual resource corresponding to the user identifier according to the interaction result, wherein the virtual resource is an effective virtual resource, and emptying the virtual resource corresponding to the user identifier when the aging period corresponding to the virtual resource is reached, wherein the aging period comprises the end time point of the current virtual interaction scene.
Step 608, determining whether the number of the virtual resources corresponding to the user identifier reaches a preset first threshold, if yes, going to step 609, and if not, ending.
And step 609, starting a corresponding skill exchange function.
And step 610, receiving the exchange request, and extracting the exchange skill identification carried in the exchange request.
Step 611, controlling the controlled virtual object to execute the exchange skill action corresponding to the exchange skill identification according to the exchange skill identification, and completing the corresponding skill exchange.
And step 612, judging whether the exchange skill action is an effective interactive action, if so, entering step 713, and if not, ending.
Step 613, judging whether the exchange skill action consumes all the current energy of the interacted virtual object, if so, entering step 614, and if not, ending.
And step 614, issuing the corresponding virtual resource as the initial virtual resource of the next round.
As shown in fig. 7, in one embodiment, a virtual resource data processing apparatus is provided, the apparatus comprising:
an extracting module 702, configured to receive an interaction instruction of a controlled virtual object in a current virtual interaction scene, and extract a skill identifier carried in the interaction instruction;
a control module 704, configured to control, according to the interaction instruction, the controlled virtual object to execute an interaction action corresponding to the skill identifier;
a determining module 706, configured to receive an interaction result, where the interaction result is determined according to the interaction action and a state of the interacted virtual object;
an updating module 708, configured to obtain a user identifier of the controlled virtual object, and update the virtual resource corresponding to the user identifier according to the interaction result.
As shown in fig. 8, in one embodiment, the virtual resource is an aged virtual resource; the virtual resource data processing apparatus further includes:
a clearing module 710, configured to clear the virtual resource corresponding to the user identifier when an aging period corresponding to the virtual resource arrives, where the aging period includes a current virtual interaction scene end time point.
In one embodiment, the control module 704 is further configured to control the controlled virtual object to perform a corresponding interactive action and generate a remote interactive object corresponding to the interactive object information when the skill identification is associated with interactive object information.
In one embodiment, the control module 704 is further configured to generate a corresponding remote sub-interactable according to sub-interactable information when the remote interactable is associated with sub-interactable information. In an embodiment, the control module 704 is further configured to obtain a script file corresponding to the skill identifier according to the interaction instruction, control the controlled virtual object to execute a corresponding interaction action and generate a remote interactive object corresponding to the script information if the script file includes script information for generating an interactive object, and generate a corresponding remote sub-interactive object according to the script information for generating a remote sub-interactive object if the script file corresponding to the remote interactive object includes script information for generating a remote sub-interactive object.
In one embodiment, the interactive actions include close-body interactive actions and/or remote interactive actions; the determining module 706 is further configured to determine that an interaction result is valid if the controlled virtual object collides with the interacted virtual object when the interaction is performed as a close-body interaction; and/or when the interaction is taken as a remote interaction action, if a remote interaction object corresponding to the remote interaction action collides with the interacted virtual object, determining that an effective interaction result is obtained.
As shown in fig. 9, in an embodiment, the virtual object data processing apparatus further includes:
a function starting module 712, configured to start a corresponding skill exchange function when the number of virtual resources corresponding to the user identifier reaches a preset threshold;
a receiving module 714, configured to receive a redemption request, and extract a redemption skill identifier carried in the redemption request;
and the redemption module 716 is configured to control the controlled virtual object to execute a redemption skill action corresponding to the redemption skill identifier according to the redemption skill identifier, so as to complete corresponding skill redemption.
In one embodiment, the redemption skill action includes a redemption interaction action; the virtual resource data processing apparatus further includes: and the virtual resource issuing module is used for issuing corresponding virtual resources as the initial virtual resources of the next round if the exchange skills are taken as effective interactive actions and the exchange skills consume all the current energy of the interacted virtual objects.
In one embodiment, the virtual resource data processing apparatus further includes: and the virtual resource quantity obtaining module is used for obtaining the quantity of the current virtual resources corresponding to the user identification, if the quantity of the current virtual resources is smaller than a preset virtual resource threshold value, the updating module is informed to obtain the user identification of the controlled virtual object, and the virtual resources corresponding to the user identification are updated according to the interaction result.
In one embodiment, the virtual resource data processing apparatus further includes: and the virtual resource updating skill judgment module is used for informing the determination module to determine an interaction result corresponding to the interaction action according to the states of the interaction action and the interacted virtual object if the skill corresponding to the skill identification belongs to the virtual resource updating skill.
Fig. 10 is a schematic diagram of an internal structure of the computer device in one embodiment. The computer device can be a terminal, wherein the terminal can be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant and a wearable device. Referring to fig. 10, the computer apparatus includes a processor, a non-volatile storage medium, an internal memory, a display screen, an input device, and a network interface, which are connected through a system bus. Among other things, the non-volatile storage medium of the computer device may store an operating system and computer readable instructions that, when executed, may cause a processor to perform a virtual resource data processing method. The processor of the computer device is used for providing calculation and control capability and supporting the operation of the whole computer device. The internal memory may have stored therein computer readable instructions that, when executed by the processor, cause the processor to perform a virtual resource data processing method. The network interface of the computer device is used for network communication. The display screen of the computer device is used for displaying the interactive action executed by the controlled virtual object according to the interactive instruction and the like. The input means of the computer device are used for receiving interaction instructions and the like. Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the mobile terminal to which the disclosed aspects apply, and that a particular computer device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the virtual resource data processing apparatus provided in the present application may be implemented in a form of a computer program, the computer program may be executed on a computer device as shown in fig. 10, and the nonvolatile storage medium of the computer device may store various program modules constituting the virtual resource data processing apparatus, such as the extraction module 702, the control module 704, the determination module 706, and the update module 708 in fig. 7. Each program module includes computer readable instructions, where the computer readable instructions are used to enable a computer device to execute the steps in the virtual resource data processing method described in each embodiment of the present application described in this specification, and a processor in the computer device can call each program module of the virtual resource data processing apparatus stored in a non-volatile storage medium of the computer device, and run corresponding readable instructions, so as to implement the corresponding function of each module of the virtual resource data processing apparatus in this specification. For example, the computer device may receive an interactive instruction of a controlled virtual object in a current virtual interaction scene through an extraction module 702 in the virtual resource data processing apparatus shown in fig. 7, and extract a skill identifier carried in the interactive instruction; responding to the interaction instruction through a control module 704 to control the controlled virtual object to execute the interaction action corresponding to the skill identification; determining an interaction result corresponding to the interaction action according to the states of the interaction action and the interacted virtual object through a determining module 706; the user identifier of the controlled virtual object is obtained through the updating module 708, and the virtual resource corresponding to the user identifier is updated according to the interaction result.
In one embodiment, a computer device is proposed, comprising a memory and a processor, the memory having stored therein computer-readable instructions which, when executed by the processor, cause the processor to carry out the following steps when executing the computer program: receiving an interactive instruction of a controlled virtual object in a current virtual interactive scene, and extracting a skill identifier carried in the interactive instruction; controlling the controlled virtual object to execute the interactive action corresponding to the skill identification according to the interactive instruction; receiving an interaction result, wherein the interaction result is determined according to the interaction action and the state of the interacted virtual object; and acquiring the user identification of the controlled virtual object, and updating the virtual resource corresponding to the user identification according to the interaction result.
In one embodiment, the virtual resource is an aged virtual resource; the computer readable instructions cause the processor to further perform the steps of: and when the aging time limit corresponding to the virtual resource is reached, emptying the virtual resource corresponding to the user identifier, wherein the aging time limit comprises the end time point of the current virtual interaction scene.
In an embodiment, the controlling, according to the interaction instruction, the corresponding virtual object to perform the interaction action corresponding to the skill identification includes: and when the skill identification is associated with the interactive object information, controlling the controlled virtual object to execute corresponding interactive action and generating a remote interactive object corresponding to the interactive object information.
In one embodiment, the computer readable instructions cause the processor to further perform the steps of: and when the remote interactive object is associated with the sub-interactive object information, generating a corresponding remote sub-interactive object according to the sub-interactive object information.
In one embodiment, the interactive actions include close-body interactive actions and/or remote interactive actions; receiving an interaction result, wherein the step of determining the interaction result according to the interaction action and the state of the interacted virtual object comprises the following steps: when the interaction is taken as a close-body interaction action, if the controlled virtual object collides with the interacted virtual object, determining that an effective interaction result is obtained; and/or when the interaction is taken as a remote interaction action, if a remote interaction object corresponding to the remote interaction action collides with the interacted virtual object, determining that an effective interaction result is obtained.
In one embodiment, the computer readable instructions cause the processor to further perform the steps of: when the number of the virtual resources corresponding to the user identification reaches a preset first threshold value, starting a corresponding skill exchange function; receiving a redemption request, and extracting a redemption skill identifier carried in the redemption request; and controlling the controlled virtual object to execute the exchange skill action corresponding to the exchange skill identification according to the exchange skill identification, and finishing corresponding skill exchange.
In one embodiment, the redemption skill action includes a redemption interaction action; the computer readable instructions enable the processor to control the controlled virtual object to execute the exchange skill action corresponding to the exchange skill identification according to the exchange skill identification, and after the step of corresponding skill exchange is completed, the following steps are also executed: and if the exchange skill can be used as an effective interactive action and the exchange skill action consumes all the current energy of the interacted virtual object, issuing corresponding virtual resources as the initial virtual resources of the next round.
In one embodiment, the computer readable instructions cause the processor to obtain a user identifier of the controlled virtual object, and before the step of updating the virtual resource corresponding to the user identifier according to the interaction result, further perform the following steps: acquiring the quantity of the current virtual resources corresponding to the user identification; and if the number of the current virtual resources is smaller than a preset second threshold value, the step of obtaining the user identification of the controlled virtual object and updating the virtual resources corresponding to the user identification according to the interaction result is carried out.
In one embodiment, after the step of controlling the controlled virtual object to perform the interactive action corresponding to the skill identification in response to the interactive instruction, the processor further performs the following steps: and if the skill corresponding to the skill identification belongs to the virtual resource updating skill, determining an interaction result corresponding to the interaction action according to the states of the interaction action and the interacted virtual object.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of: receiving an interactive instruction of a controlled virtual object in a current virtual interactive scene, and extracting a skill identifier carried in the interactive instruction; controlling the controlled virtual object to execute the interactive action corresponding to the skill identification according to the interactive instruction; receiving an interaction result, wherein the interaction result is determined according to the interaction action and the state of the interacted virtual object; and acquiring the user identification of the controlled virtual object, and updating the virtual resource corresponding to the user identification according to the interaction result.
In one embodiment, the virtual resource is an aged virtual resource; the computer readable instructions cause the processor to further perform the steps of: and when the aging time limit corresponding to the virtual resource is reached, emptying the virtual resource corresponding to the user identifier, wherein the aging time limit comprises the end time point of the current virtual interaction scene.
In an embodiment, the controlling, according to the interaction instruction, the corresponding virtual object to perform the interaction action corresponding to the skill identification includes: and when the skill identification is associated with the interactive object information, controlling the controlled virtual object to execute corresponding interactive action and generating a remote interactive object corresponding to the interactive object information.
In one embodiment, the computer readable instructions cause the processor to further perform the steps of: and when the remote interactive object is associated with the sub-interactive object information, generating a corresponding remote sub-interactive object according to the sub-interactive object information.
In one embodiment, the interactive actions include close-body interactive actions and/or remote interactive actions; receiving an interaction result, wherein the step of determining the interaction result corresponding to the interaction action according to the states of the interaction action and the interacted virtual object comprises the following steps: when the interaction is taken as a close-body interaction action, if the controlled virtual object collides with the interacted virtual object, determining that an effective interaction result is obtained; and/or when the interaction is taken as a remote interaction action, if a remote interaction object corresponding to the remote interaction action collides with the interacted virtual object, determining that an effective interaction result is obtained.
In one embodiment, the computer readable instructions cause the processor to further perform the steps of: when the number of the virtual resources corresponding to the user identification reaches a preset first threshold value, starting a corresponding skill exchange function; receiving a redemption request, and extracting a redemption skill identifier carried in the redemption request; and controlling the controlled virtual object to execute the exchange skill action corresponding to the exchange skill identification according to the exchange skill identification, and finishing corresponding skill exchange.
In one embodiment, the redemption skill action includes a redemption interaction action; the computer readable instructions enable the processor to control the controlled virtual object to execute the exchange skill action corresponding to the exchange skill identification according to the exchange skill identification, and after the corresponding skill exchange step is completed, the following steps are also executed: and if the exchange skill can be used as an effective interactive action and the exchange skill action consumes all the current energy of the interacted virtual object, issuing corresponding virtual resources as the initial virtual resources of the next round.
In one embodiment, the computer readable instructions cause the processor to obtain a user identifier of the controlled virtual object, and before the step of updating the virtual resource corresponding to the user identifier according to the interaction result, further perform the following steps: acquiring the quantity of the current virtual resources corresponding to the user identification; and if the number of the current virtual resources is smaller than a preset second threshold value, the step of obtaining the user identification of the controlled virtual object and updating the virtual resources corresponding to the user identification according to the interaction result is carried out.
In one embodiment, after the step of controlling the controlled virtual object to perform the interactive action corresponding to the skill identification in response to the interactive instruction, the processor further performs the following steps: and if the skill corresponding to the skill identification belongs to the virtual resource updating skill, determining an interaction result corresponding to the interaction action according to the states of the interaction action and the interacted virtual object.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (20)

1. A method of virtual resource data processing, the method comprising:
receiving an interactive instruction of a controlled virtual object in a current virtual interactive scene, and extracting a skill identifier carried in the interactive instruction;
controlling the controlled virtual object to execute the interactive action corresponding to the skill identification according to the interactive instruction;
receiving an interaction result, wherein the interaction result is determined according to the interaction action and the state of the interacted virtual objects, and after the interacted virtual objects are determined to be hit, the interaction result is determined according to the level type of the interacted virtual objects or the number of the interacted virtual objects;
acquiring a user identifier of the controlled virtual object, updating virtual resources corresponding to the user identifier according to the interaction result, rewarding corresponding virtual resources when the interaction result is that the interacted virtual object is hit, the interacted virtual object with higher level is hit, the more virtual resources are rewarded, the more interacted virtual objects are hit in one interaction action, the more virtual resources are rewarded, and the virtual resources are used for exchanging props or skills in a specific scene;
and when the virtual resource corresponding to the user identification reaches a preset threshold value, exchanging an avoiding skill by using the virtual resource corresponding to the user identification, wherein the avoiding skill is used for enabling the controlled virtual object to escape from continuous injury or launching counterattack when the controlled virtual object is under continuous attack of the interacted virtual object.
2. The method of claim 1, wherein the virtual resource is an aged virtual resource;
the method further comprises the following steps: and when the aging time limit corresponding to the virtual resource is reached, emptying the virtual resource corresponding to the user identifier, wherein the aging time limit comprises the end time point of the current virtual interaction scene.
3. The method according to claim 1, wherein the step of controlling the corresponding virtual object to execute the interactive action corresponding to the skill identification according to the interactive instruction comprises:
and when the skill identification is associated with the interactive object information, controlling the controlled virtual object to execute corresponding interactive action and generating a remote interactive object corresponding to the interactive object information.
4. The method of claim 3, further comprising:
and when the remote interactive object is associated with the sub-interactive object information, generating a corresponding remote sub-interactive object according to the sub-interactive object information.
5. The method of claim 3, wherein the interactive action comprises a close-body interactive action and/or a remote interactive action;
receiving an interaction result, wherein the step of determining the interaction result according to the interaction action and the state of the interacted virtual object comprises the following steps:
when the interaction is taken as a close-body interaction action, if the controlled virtual object collides with the interacted virtual object, determining that an effective interaction result is obtained; and/or
When the interaction is used as a remote interaction, if a remote interaction object corresponding to the remote interaction is collided with the interacted virtual object, determining that an effective interaction result is obtained.
6. The method of claim 1, further comprising:
when the number of the virtual resources corresponding to the user identification reaches a preset first threshold value, starting a corresponding skill exchange function;
receiving a redemption request, and extracting a redemption skill identifier carried in the redemption request;
and controlling the controlled virtual object to execute the exchange skill action corresponding to the exchange skill identification according to the exchange skill identification, and finishing corresponding skill exchange.
7. The method of claim 6, wherein the redemption skill action comprises a redemption interactive action;
after the step of controlling the controlled virtual object to execute the redemption skill action corresponding to the redemption skill identifier according to the redemption skill identifier and completing the corresponding skill redemption, the method further comprises the following steps:
and if the exchange skill can be used as an effective interactive action and the exchange skill action consumes all the current energy of the interacted virtual object, issuing corresponding virtual resources as the initial virtual resources of the next round.
8. The method according to claim 1, wherein before the step of obtaining the user identifier of the controlled virtual object and updating the virtual resource corresponding to the user identifier according to the interaction result, the method further comprises:
acquiring the quantity of the current virtual resources corresponding to the user identification;
and if the number of the current virtual resources is smaller than a preset second threshold value, the step of obtaining the user identification of the controlled virtual object and updating the virtual resources corresponding to the user identification according to the interaction result is carried out.
9. The method according to claim 1, further comprising, after the step of controlling the controlled virtual object to perform the interactive action corresponding to the skill identification according to the interactive instruction:
and if the skill corresponding to the skill identification belongs to the virtual resource updating skill, determining an interaction result corresponding to the interaction action according to the states of the interaction action and the interacted virtual object.
10. A virtual resource data processing apparatus, the apparatus comprising:
the extraction module is used for receiving an interactive instruction of a controlled virtual object in a current virtual interactive scene and extracting a skill identifier carried in the interactive instruction;
the control module is used for controlling the controlled virtual object to execute the interactive action corresponding to the skill identification according to the interactive instruction;
the determining module is used for receiving an interaction result, wherein the interaction result is determined according to the interaction action and the state of the interacted virtual objects, and after the interacted virtual objects are determined to be hit, the interaction result is determined according to the level type of the interacted virtual objects or the number of the interacted virtual objects;
the updating module is used for acquiring a user identifier of the controlled virtual object, updating virtual resources corresponding to the user identifier according to the interaction result, rewarding corresponding virtual resources when the interaction result is that the interacted virtual object is hit, rewarding more virtual resources when the interacted virtual object with higher level is hit, rewarding more virtual resources when the interacted virtual object is hit at one time by the interaction action, wherein the virtual resources refer to resources used for exchanging props or skills in a specific scene, exchanging the virtual resources corresponding to the user identifier for avoiding skills when the virtual resources corresponding to the user identifier reach a preset threshold value, and the avoiding skills are used for enabling the controlled virtual object to escape from continuous injury or initiate counterattack when the controlled virtual object is continuously attacked by the interacted virtual object.
11. The apparatus of claim 10, wherein the virtual resource is an aging virtual resource; the device further comprises:
and the clearing module is used for clearing the virtual resource corresponding to the user identifier when the aging time limit corresponding to the virtual resource is reached, wherein the aging time limit comprises the end time point of the current virtual interactive scene.
12. The device of claim 10, wherein the control module is further configured to control the controlled virtual object to perform a corresponding interactive action and generate a remote interactive object corresponding to the interactive object information when the skill identifier is associated with interactive object information.
13. The apparatus of claim 12, wherein the control module is further configured to generate a corresponding remote sub-interactable according to sub-interactable information when the remote interactable is associated with sub-interactable information.
14. The apparatus of claim 12, wherein the interactive action comprises a close-body interactive action and/or a remote interactive action; the determining module is further configured to determine, when the interaction is a close-body interaction, an effective interaction result if the controlled virtual object collides with the interacted virtual object; and/or when the interaction is taken as a remote interaction action, if a remote interaction object corresponding to the remote interaction action collides with the interacted virtual object, determining that an effective interaction result is obtained.
15. The apparatus of claim 10, further comprising:
the function starting module is used for starting a corresponding skill exchange function when the number of the virtual resources corresponding to the user identification reaches a preset first threshold value;
the receiving module is used for receiving the exchange request and extracting the exchange skill identification carried in the exchange request;
and the exchange module is used for controlling the controlled virtual object to execute the exchange skill action corresponding to the exchange skill identification according to the exchange skill identification so as to complete corresponding skill exchange.
16. The apparatus of claim 15, wherein the redemption skill action comprises a redemption interactive action; the device further comprises:
and the virtual resource issuing module is used for issuing corresponding virtual resources as the initial virtual resources of the next round if the exchange skills are taken as effective interactive actions and the exchange skills consume all the current energy of the interacted virtual objects.
17. The apparatus of claim 10, further comprising:
and the virtual resource quantity obtaining module is used for obtaining the quantity of the current virtual resources corresponding to the user identifier, if the quantity of the current virtual resources is smaller than a preset second threshold value, the updating module is informed to obtain the user identifier of the controlled virtual object, and the virtual resources corresponding to the user identifier are updated according to the interaction result.
18. The apparatus of claim 10, further comprising:
and the virtual resource updating skill judgment module is used for informing the determination module to determine an interaction result corresponding to the interaction action according to the states of the interaction action and the interacted virtual object if the skill corresponding to the skill identification belongs to the virtual resource updating skill.
19. A computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions which, when executed by the processor, cause the processor to carry out the steps of the method of any one of claims 1 to 9 when executing the computer program.
20. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 9.
CN201710905161.9A 2017-09-29 2017-09-29 Virtual resource data processing method and device, computer equipment and storage medium Active CN109568963B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710905161.9A CN109568963B (en) 2017-09-29 2017-09-29 Virtual resource data processing method and device, computer equipment and storage medium
PCT/CN2018/108338 WO2019062855A1 (en) 2017-09-29 2018-09-28 Virtual resource data processing method, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710905161.9A CN109568963B (en) 2017-09-29 2017-09-29 Virtual resource data processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109568963A CN109568963A (en) 2019-04-05
CN109568963B true CN109568963B (en) 2021-12-03

Family

ID=65900744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710905161.9A Active CN109568963B (en) 2017-09-29 2017-09-29 Virtual resource data processing method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN109568963B (en)
WO (1) WO2019062855A1 (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110782525B (en) * 2019-11-08 2023-04-25 腾讯科技(深圳)有限公司 Method, device and medium for identifying virtual object in virtual environment
CN111182355B (en) * 2020-01-06 2021-05-04 腾讯科技(深圳)有限公司 Interaction method, special effect display method and related device
CN111249732A (en) * 2020-01-08 2020-06-09 腾讯科技(深圳)有限公司 Virtual object acquisition method and device, storage medium and electronic device
CN111228807B (en) * 2020-01-08 2022-07-15 腾讯科技(深圳)有限公司 Control method and device of virtual operation object, storage medium and electronic device
CN111462335B (en) * 2020-03-18 2023-12-05 Oppo广东移动通信有限公司 Equipment control method and device based on virtual object interaction, medium and equipment
CN111589150B (en) * 2020-04-22 2023-03-24 腾讯科技(深圳)有限公司 Control method and device of virtual prop, electronic equipment and storage medium
CN111626768B (en) * 2020-04-30 2024-03-05 口碑(上海)信息技术有限公司 Virtual credential updating method, device, computer equipment and readable storage medium
CN112256424A (en) * 2020-09-22 2021-01-22 北京达佳互联信息技术有限公司 Virtual resource processing method, device and system, electronic equipment and storage medium
CN112337096B (en) * 2020-11-25 2022-08-30 深圳市腾讯计算机系统有限公司 Control method and device of virtual role, electronic equipment and storage medium
CN112587918A (en) * 2020-12-29 2021-04-02 珠海金山网络游戏科技有限公司 Game skill release method and device
CN112965598B (en) * 2021-03-03 2023-08-04 北京百度网讯科技有限公司 Interaction method, device, system, electronic equipment and storage medium
CN113144617B (en) * 2021-05-13 2023-04-11 腾讯科技(深圳)有限公司 Control method, device and equipment of virtual object and computer readable storage medium
CN113457155A (en) * 2021-06-25 2021-10-01 网易(杭州)网络有限公司 Display control method and device in game, electronic equipment and readable storage medium
CN113518240B (en) * 2021-07-20 2023-08-08 北京达佳互联信息技术有限公司 Live interaction, virtual resource configuration and virtual resource processing method and device
CN113713390B (en) * 2021-09-14 2023-03-21 北京字跳网络技术有限公司 Interaction method, interaction device and computer storage medium
CN113975800A (en) * 2021-11-05 2022-01-28 北京字跳网络技术有限公司 Interaction control method and device, computer equipment and storage medium
CN115052174B (en) * 2022-06-13 2023-12-19 北京达佳互联信息技术有限公司 Resource transfer method, device, electronic equipment and storage medium
CN117654041A (en) * 2022-08-30 2024-03-08 腾讯科技(深圳)有限公司 Skill acquisition method, device, equipment, medium and product based on virtual scene
CN115374141A (en) * 2022-09-20 2022-11-22 支付宝(杭州)信息技术有限公司 Virtual image updating method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101010123A (en) * 2004-09-22 2007-08-01 科乐美数码娱乐株式会社 Game device, information storage medium, and game device control method
WO2014120558A1 (en) * 2013-01-29 2014-08-07 Sony Computer Entertainment America Llc Methods and apparatus for hiding latency in network multiplayer games
CN104203360A (en) * 2012-03-30 2014-12-10 喀普康有限公司 Computer device, recording medium, and control method
CN104394400A (en) * 2014-12-09 2015-03-04 山东大学 Virtual simulation system and method of antagonistic event with net based on three-dimensional multi-image display
CN105677452A (en) * 2014-11-19 2016-06-15 腾讯科技(上海)有限公司 Task processing method and device for task platform

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3991583B2 (en) * 2000-11-24 2007-10-17 株式会社セガ Image display method, computer game processing method, and recording medium
JP3977162B2 (en) * 2002-06-21 2007-09-19 株式会社バンダイナムコゲームス Character information management device, program, and information storage medium
JP2005230266A (en) * 2004-02-19 2005-09-02 Sega Corp Game machine, game control method, program, and recording medium
CN105338081B (en) * 2015-10-29 2019-03-01 网易(杭州)网络有限公司 Data processing method, system, client and the server end of turn-based game
CN106492457A (en) * 2016-10-20 2017-03-15 北京乐动卓越科技有限公司 A kind of implementation method of full 3D actions mobile phone games fight interactive system and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101010123A (en) * 2004-09-22 2007-08-01 科乐美数码娱乐株式会社 Game device, information storage medium, and game device control method
CN104203360A (en) * 2012-03-30 2014-12-10 喀普康有限公司 Computer device, recording medium, and control method
WO2014120558A1 (en) * 2013-01-29 2014-08-07 Sony Computer Entertainment America Llc Methods and apparatus for hiding latency in network multiplayer games
CN105677452A (en) * 2014-11-19 2016-06-15 腾讯科技(上海)有限公司 Task processing method and device for task platform
CN104394400A (en) * 2014-12-09 2015-03-04 山东大学 Virtual simulation system and method of antagonistic event with net based on three-dimensional multi-image display

Also Published As

Publication number Publication date
CN109568963A (en) 2019-04-05
WO2019062855A1 (en) 2019-04-04

Similar Documents

Publication Publication Date Title
CN109568963B (en) Virtual resource data processing method and device, computer equipment and storage medium
CN111265872B (en) Virtual object control method, device, terminal and storage medium
WO2018024258A1 (en) Virtual application attribute update method and apparatus, and storage medium
CN110134375B (en) Game character behavior control method and device and readable storage medium
RU2015131040A (en) METHODS AND HARDWARE TO INTRODUCE THE DELAY IN NETWORK MULTIPLAYER GAMES
CN110559663B (en) Display control method and device for virtual rounds in game
CN111359222B (en) Virtual prop obtaining method and device, storage medium and electronic device
CN109960545B (en) Virtual object control method, system, device, medium and electronic equipment
CN111298430A (en) Virtual item control method and device, storage medium and electronic device
CN111282284A (en) Virtual object control method, device, terminal and storage medium
CN110711380A (en) State processing method and related device
CN111298437A (en) Control method and device for virtual attack prop
WO2022166475A1 (en) Method and apparatus for controlling virtual object, and terminal, storage medium and computer program product
CN112337090A (en) Event message broadcasting method and device, storage medium and electronic device
JP5461723B1 (en) GAME MANAGEMENT DEVICE AND GAME MANAGEMENT DEVICE PROGRAM
US20130344953A1 (en) Game server, game controlling method thereof, non-transitory computer-readable medium and game system
EP4257219A1 (en) Character interaction control method and apparatus, and computer device and storage medium
CN114504815A (en) Method and device for controlling virtual object, electronic equipment and storage medium
TW202231326A (en) Message display method, device, electronic apparatus, computer readable storage medium, and computer program product
CN111228805B (en) Virtual operation object control method and device, storage medium and electronic device
CN111265870A (en) Control method and device of virtual operation object and storage medium
JP6190189B2 (en) GAME PROGRAM AND GAME DEVICE
JP6211667B1 (en) System, method, and program for providing game
CN111228806B (en) Control method and device of virtual operation object, storage medium and electronic device
JP6241308B2 (en) Computer game system, computer game program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant