CN115089970A - Data processing method and device for virtual props in game and electronic equipment - Google Patents

Data processing method and device for virtual props in game and electronic equipment Download PDF

Info

Publication number
CN115089970A
CN115089970A CN202210828442.XA CN202210828442A CN115089970A CN 115089970 A CN115089970 A CN 115089970A CN 202210828442 A CN202210828442 A CN 202210828442A CN 115089970 A CN115089970 A CN 115089970A
Authority
CN
China
Prior art keywords
nft
target
virtual
rule
prop
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.)
Pending
Application number
CN202210828442.XA
Other languages
Chinese (zh)
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202210828442.XA priority Critical patent/CN115089970A/en
Publication of CN115089970A publication Critical patent/CN115089970A/en
Pending legal-status Critical Current

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/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/63Generating 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 the player, e.g. authoring using a level editor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The disclosure provides a data processing method and device for virtual props in games and electronic equipment, relates to the technical field of games, and solves the technical problem that the controllability of players on the data of the virtual props is low. The method comprises the following steps: determining a prop NFT corresponding to the virtual prop; writing the attribute rule of the virtual prop into an intelligent contract of the prop NFT to obtain the written intelligent contract; and generating a virtual prop corresponding to the prop NFT in a game scene based on the prop NFT with the written intelligent contract.

Description

Data processing method and device for virtual props in game and electronic equipment
Technical Field
The present disclosure relates to the field of game technologies, and in particular, to a data processing method and apparatus for a virtual item in a game, and an electronic device.
Background
Non-interchangeable Tokens (NFTs) are also known as Non-homogeneous Tokens, as are art work, each piece being unique. The method has the technical advantages of decentralized, tamper-proof, timestamp and the like based on the block chain technology, the value pairs of the articles under the chain are marked with NFT, and the ownership right of the articles and the inquiry of the transaction can be realized.
The NFT mainly comprises games in application scenes, and the NFT based on the block chain technology can record the state and achievement of a player in the games and save a list of items obtained in the games, such as weapons, power supplies, vehicles, characters and the like. However, the prior art has the technical problem that the controllability degree of the player on the virtual item data is low.
Disclosure of Invention
The present disclosure is directed to a method and an apparatus for processing data of a virtual item in a game, and an electronic device, so as to alleviate a technical problem that a player has a low controllability on data of the virtual item.
In a first aspect, an embodiment of the present disclosure provides a data processing method for a virtual item in a game, where a game scene of the game corresponds to a virtual item to be generated; the data processing method of the virtual item in the game comprises the following steps:
determining a prop NFT corresponding to the virtual prop;
writing the attribute rule of the virtual prop into an intelligent contract of the prop NFT to obtain the written intelligent contract;
and generating a virtual prop corresponding to the prop NFT in the game scene based on the prop NFT with the written intelligent contract.
In one possible implementation, the attribute rules include any one or more of:
the virtual property is composed of a grade rule, a classification rule, an issuing rule, an obtaining rule, a synthesis rule, an upgrading rule, a decomposition rule, a use rule and a transaction rule of the virtual property.
In one possible implementation, the writing the attribute rule of the virtual prop into the intelligent contract of the prop NFT to obtain a written intelligent contract, including:
and writing the attribute rule of the virtual prop into an intelligent contract of the prop NFT, and disclosing the attribute rule to obtain the intelligent contract written with the attribute rule.
In a second aspect, an embodiment of the present disclosure provides a data processing method for a virtual item in a game, where a game scene of the game includes the virtual item and a virtual character controlled by a terminal device, each virtual item is represented by an item NFT, each item NFT corresponds to an intelligent contract, and the intelligent contract includes an attribute rule of the virtual item; the data processing method of the virtual item in the game comprises the following steps:
responding to a game event of a target item NFT acquired by the virtual character, and determining a target intelligent contract corresponding to the target item NFT;
determining a target attribute rule corresponding to the target prop NFT through the target intelligent contract;
and responding to a processing instruction aiming at the target prop NFT, and processing the target prop NFT based on the target attribute rule to obtain a target prop NFT processing result.
In one possible implementation, the determining, by the target intelligent contract, a target attribute rule corresponding to the target prop NFT includes:
and determining a target attribute rule corresponding to the target prop NFT by calling a contract interface of the target intelligent contract.
In one possible implementation, the processing the target item NFT based on the target attribute rule in response to the processing instruction for the target item NFT to obtain a target item NFT processing result, including:
and in response to the synthesis instruction aiming at the target props NFT, synthesizing the target props NFT based on the synthesis rule in the target attribute rule to obtain a target prop NFT synthesis result.
In one possible implementation, the synthesizing, in response to a synthesizing instruction for a plurality of target property NFTs and based on a synthesizing rule in the target attribute rule, the synthesizing a plurality of target property NFTs to obtain a target property NFT synthesizing result includes:
responding to a synthesis instruction aiming at the target props NFT, and if a synthesis request corresponding to the synthesis instruction accords with a synthesis rule in the target attribute rule, synthesizing the target props NFT to obtain a target prop NFT synthesis result.
In one possible implementation, the method further includes:
responding to a synthesis instruction aiming at a plurality of target props NFT, and if a synthesis request corresponding to the synthesis instruction does not accord with a synthesis rule in the target attribute rules, returning a synthesis failure result.
In one possible implementation, the synthesizing a plurality of target items NFT to obtain a target item NFT synthesis result includes:
and synthesizing the plurality of target props NFT to obtain a synthesized target prop NFT, and eliminating the target prop NFT before synthesis.
In one possible implementation, the composition rule includes any one or more of:
a synthesis quantity rule, a synthesis type rule and a synthesis grade rule.
In one possible implementation, the synthetic instruction is generated by the virtual character; the synthesizing, in response to the synthesis instruction for the target items NFT, if the synthesis request corresponding to the synthesis instruction conforms to the synthesis rule in the target attribute rule, synthesizing the target items NFT to obtain a target item NFT synthesis result, including:
responding to a synthesis instruction aiming at the target props NFT, verifying whether the target props NFT belong to the virtual characters in the game scene through signatures, and if the target props NFT belong to the virtual characters, synthesizing the target props NFT to obtain target prop NFT synthesis results.
In a third aspect, an embodiment of the present disclosure provides a data processing apparatus for a virtual item in a game, where a game scene of the game corresponds to a virtual item to be generated; the data processing device for the virtual item in the game comprises:
the determining module is used for determining a prop NFT corresponding to the virtual prop;
the writing module is used for writing the attribute rule of the virtual prop into an intelligent contract of the prop NFT to obtain a written intelligent contract;
and the generating module is used for generating a virtual item corresponding to the item NFT in the game scene based on the item NFT with the written intelligent contract.
In a fourth aspect, an embodiment of the present disclosure provides a data processing apparatus for a virtual item in a game, where a game scene of the game includes the virtual item and a virtual character controlled by a terminal device, each virtual item is represented by an item NFT, each item NFT corresponds to an intelligent contract, and the intelligent contract includes an attribute rule of the virtual item; the data processing device of the virtual item in the game comprises:
the first determining module is used for responding to a game event of a target prop NFT obtained by the virtual character and determining a target intelligent contract corresponding to the target prop NFT;
the second determining module is used for determining a target attribute rule corresponding to the target prop NFT through the target intelligent contract;
and the processing module is used for responding to the processing instruction aiming at the target prop NFT and processing the target prop NFT based on the target attribute rule to obtain a target prop NFT processing result.
In a fifth aspect, this disclosed embodiment further provides an electronic device, including a memory and a processor, where the memory stores a computer program executable on the processor, and the processor executes the computer program to implement the steps of the method in the first aspect and the second aspect.
In a sixth aspect, the disclosed embodiments further provide a computer-readable storage medium storing computer executable instructions, which, when invoked and executed by a processor, cause the processor to perform the method of the first and second aspects.
The embodiment of the disclosure brings the following beneficial effects:
according to the data processing method and device for the virtual props in the games and the electronic equipment, the props NFT corresponding to the virtual props are determined, the attribute rules of the virtual props are written into the intelligent contracts of the props NFT to obtain the written intelligent contracts, and then the virtual props corresponding to the props NFT are generated in the game scene based on the props NFT with the written intelligent contracts. In the scheme, before the property NFT is issued, the attribute rule of the virtual property is written into an intelligent contract, for example, the value rule, the issuing rule, the synthesis rule and the like of the virtual property, the intelligent contract written with the attribute rule is obtained, further, the virtual property corresponding to the property NFT can be generated in a game scene based on the property NFT carrying the intelligent contract with the attribute rule, the attribute rule of the virtual property is written into the intelligent contract of the property NFT corresponding to the virtual property, and the virtual property generated based on the virtual property enables a player to process the virtual property in a game according to the attribute rule.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic view of an application scenario provided by an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic view of a usage scenario of an electronic device according to an embodiment of the present disclosure;
fig. 4 is a schematic flow chart of a data processing method for a virtual item in a game according to an embodiment of the present disclosure;
fig. 5 is a schematic flow chart of another method for processing data of a virtual item in a game according to an embodiment of the present disclosure;
FIG. 6 is a structural diagram of a data processing apparatus for a virtual item in a game according to an embodiment of the present disclosure;
fig. 7 is a structural diagram of another data processing device for virtual items in a game according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the embodiments of the present disclosure will be described in detail and completely with reference to the accompanying drawings. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The terms "comprising" and "having," and any variations thereof, as referred to in the embodiments of the present disclosure, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
At present, NFT mainly has three bottom-layer protocol standards, namely intelligent contract standards, namely ERC721, ERC1155 and ERC998, and there are differences between the three bottom-layer protocol standards. ERC721 is the first NFT underlying protocol standard and is also the most commonly used general form of NFT ecosystem in the present stage. The ERC1155 standard has the characteristics of a semi-homogeneous token (semi-solid token), which differs from ERC721 by: the Identity identification number (ID) is not an article any more, but a category, and the intelligent contract is sent based on a category, so that the transfer speed can be obviously improved, and the flexible application under different scenes can be met. The ERC-1155 token protocol standard stands out in that it may enable cross-chain compatibility compared to ERC-20 and other standards. ERC998 means that non-homogeneous tokens (CNFTs) can be combined, and the protocol standard may contain multiple tokens in the form of ERC721 and ERC 20. Generating tokens using this agreement standard enables one transfer to pack all different types of tokens. The function of the three underlying protocol standards of NFT is the gradual upgrading process, and the transfer transaction of the token can be realized more conveniently and at low cost from ERC721 to ERC 1155; from ERC1155 to ERC998, the packaging transaction and multi-scenario application of tokens can be realized. However, currently ERC721 is still the most commonly used general form of NFT ecological scenario.
One of the main application scenarios of NFT is gaming. The NFT based on the blockchain technology can record the status and achievement of a player in a game, and keep a list of items, such as weapons, power supplies, vehicles, characters, etc., obtained in the game. However, in the prior art, for a centralized server device, the synthesis and upgrade logic of virtual properties such as property equipment is mainly determined by a game manufacturer, the game manufacturer has absolute control right on various data of the equipment and a player, and the player cannot control own user data. Meanwhile, because NFT issues game equipment, one NFT represents one equipment, but the equipment lacks connection, value cannot be conducted, and linkage is lacked, for example, the NFT game equipment cannot be synthesized, upgraded and the like, and the playability of a player is reduced.
Based on this, the embodiments of the present disclosure provide a method and an apparatus for processing data of a virtual item in a game, and an electronic device.
In one embodiment of the present disclosure, the data processing method for the virtual item in the game may be executed on a local terminal device or a server. When the data processing method of the virtual item in the game runs on the server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an optional embodiment, various cloud applications may be run under the cloud interaction system, for example: and (6) cloud games. Taking a cloud game as an example, the cloud game refers to a game mode based on cloud computing. In the running mode of the cloud game, the running main body of the game program and the game picture presenting main body are separated, the storage and the running of the data processing method of the virtual item in the game are finished on a cloud game server, and the client equipment is used for receiving and sending data and presenting the game picture, for example, the client equipment can be display equipment with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the cloud game server which performs information processing is a cloud. When a game is played, a player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, data such as game pictures and the like are encoded and compressed, the data are returned to the client device through a network, and finally the data are decoded through the client device and the game pictures are output.
In an optional implementation manner, taking a game as an example, the local terminal device stores a game program and is used for presenting a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through an electronic device conventionally. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the player by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.
In a possible implementation manner, an embodiment of the present disclosure provides a data processing method for a virtual item in a game, where a graphical user interface is provided by a terminal device, where the terminal device may be the aforementioned local terminal device, and may also be the aforementioned client device in a cloud interaction system.
For example, as shown in fig. 1, fig. 1 is a schematic view of an application scenario provided by the embodiment of the present disclosure. The application scenario may include an electronic terminal (e.g., a cell phone 102) and a server 101, and the electronic terminal may communicate with the server 101 through a wired network or a wireless network. The electronic terminal is used for running a virtual desktop, and can interact with the server 101 through the virtual desktop to control the virtual role in the server 101.
The electronic terminal of the embodiment is described by taking the mobile phone 102 as an example. The handset 102 includes Radio Frequency (RF) circuitry 210, memory 220, a touch screen 230, a processor 240, and the like. Those skilled in the art will appreciate that the handset configuration shown in fig. 2 is not intended to be limiting and may include more or fewer components than those shown, or may combine certain components, or split certain components, or arranged in different components. Those skilled in the art will appreciate that the touch screen 230 is part of a User Interface (UI) and that the cell phone 102 may include fewer than or the same User Interface shown.
RF circuitry 210 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 220 may be used for storing software programs and modules, and the processor 240 executes various functional applications and data processing of the cellular phone 102 by operating the software programs and modules stored in the memory 220. The memory 220 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the stored data area may store data created from use of the handset 102, and the like. Further, the memory 220 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The touch screen 230 may be used to display a graphical user interface and receive user operations with respect to the graphical user interface. A particular touch screen 230 may include a display panel and a touch panel. The Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may collect contact or non-contact operations of a user on or near the touch panel (for example, as shown in fig. 3, operations of the user on or near the touch panel using any suitable object or accessory such as a finger 301, a stylus pen, etc.), and generate preset operation instructions. In addition, the touch panel may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction and gesture of a user, detects signals brought by touch operation and transmits the signals to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into information that can be processed by the processor, sends the information to the processor 240, and receives and executes commands sent from the processor 240. In addition, the touch panel may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, a surface acoustic wave, and the like, and may also be implemented by any technology developed in the future. Further, the touch panel may cover the display panel, a user may operate on or near the touch panel covered on the display panel according to a graphical user interface displayed by the display panel, the touch panel detects an operation thereon or nearby and transmits the operation to the processor 240 to determine a user input, and the processor 240 provides a corresponding visual output on the display panel in response to the user input. In addition, the touch panel and the display panel can be realized as two independent components or can be integrated.
The processor 240 is the control center of the handset 102, connects various parts of the entire handset using various interfaces and lines, and performs various functions and processes of the handset 102 by running or executing software programs and/or modules stored in the memory 220 and calling data stored in the memory 220, thereby performing overall monitoring of the handset.
Embodiments of the present disclosure are further described below with reference to the accompanying drawings.
Fig. 4 is a schematic flow chart of a data processing method for a virtual item in a game according to an embodiment of the present disclosure. Wherein, the game scene of the game corresponds to the virtual item to be generated. As shown in fig. 4, the data processing method of the virtual item in the game includes:
step S410, determining a property NFT corresponding to the virtual property.
For example, since one of the main application scenarios of NFT is game, game equipment can be issued based on NFT, one item NFT represents one virtual item, and each virtual item is unique. Before generating a virtual item, an item NFT corresponding to the virtual item needs to be determined.
And step S420, writing the attribute rule of the virtual prop into the intelligent contract of the prop NFT to obtain the written intelligent contract.
It should be noted that the NFT functions by relying on the intelligent contracts that support it, which are based on a piece of code of a block chain, so that an application can store information from NFT transactions, and after the setting is completed, a user can access the information at any time. Smart contracts also ensure that the saved information is both accessible and immutable. The smart contracts also do not require third parties to act as intermediaries, thereby reducing commission costs and shortening transaction times.
In practical applications, the category of the attribute rule may include various rules related to the virtual item, such as a rating rule, a classification rule, an issuing rule, an obtaining rule, a synthesizing rule, an upgrading rule, a decomposing rule, a using rule, a trading rule, and the like of the virtual item.
For example, a game maker may write a code according to a functional requirement, for example, based on the ERC721 standard, which is a blue book, write an attribute rule that a property NFT needs to have, write the attribute rule of a virtual property into an intelligent contract of the property NFT, that is, add a characteristic content that needs to have into the intelligent contract, thereby obtaining the written intelligent contract.
And step S430, generating a virtual prop corresponding to the prop NFT in the game scene based on the prop NFT with the written intelligent contract.
For example, after the written intelligent contract is obtained, based on the difference of the written attribute rules, the system may obtain different properties NFT with the written intelligent contract, so that different virtual properties corresponding to different properties NFT may be generated in a game scene.
Based on different props NFT, virtual props of different grades, different classifications, and different attributes may be generated. Each prop is generated based on a unique prop NFT, for example, according to a written intelligent contract, a virtual prop corresponding to a first prop NFT is a common shoe, a virtual prop corresponding to a second prop NFT is a rare helmet, and the like.
In the embodiment of the disclosure, a prop NFT corresponding to a virtual prop is determined first, before the prop NFT is issued, an attribute rule of the virtual prop is written into an intelligent contract, such as value rules, issuing rules, synthesizing rules and the like of the virtual props, the intelligent contracts written with the attribute rules are obtained, and further, the intelligent contracts can be obtained based on the props NFT carrying the intelligent contracts of the attribute rules, generating a virtual item corresponding to the item NFT in a game scene, writing the attribute rule of the virtual item into an intelligent contract of the item NFT corresponding to the virtual item, the virtual item generated based on the method enables the player to process the virtual item according to the attribute rule in the game, so that decentralized management of the virtual item can be realized by using NFT, the player can master own game equipment data in the game, and the technical problem that the controllability of the player on the virtual item data is low is solved.
The above steps are described in detail below.
In some embodiments, the types of the attribute rules may include multiple types, so that the functions are more comprehensive, and the attribute rules include multiple types, so that richer contents can be written into the intelligent contract, and then corresponding virtual props are generated based on the prop NFT with the written intelligent contract, so that game contents are enriched, and game experience of players is improved. Illustratively, the attribute rules include any one or more of:
the virtual property classification rules, the issuing rules, the obtaining rules, the synthesis rules, the upgrading rules, the decomposition rules, the use rules and the transaction rules.
As one example, attribute rules may include rules for the level of a virtual item, e.g., virtual items may be defined into four levels: white, green, purple and orange, and the property of the prop is gradually increased according to the grade.
As another example, attribute rules may include classification rules for virtual items, e.g., virtual items may be classified into three categories, shoes, helmets, and weapons. Diversified virtual props can be obtained based on the grade rules and the classification rules, for example, shoes can be divided into white shoes with 10-point moving speed, green shoes with 18-point moving speed, purple shoes with 30-point moving speed and orange shoes with 45-point moving speed; the helmet can be divided into a white helmet with 10 points of armor, a green helmet with 25 points of armor, a purple helmet with 40 points of armor, and an orange helmet with 60 points of armor; the weapon can be divided into a white weapon which increases 100-point attack power, a green weapon which increases 200-point attack power, a purple weapon which increases 500-point attack power and an orange weapon which increases 800-point attack power.
As another example, an attribute rule may include a issuance rule for a virtual item, e.g., a number of issuances. Generally, the higher the grade of the virtual prop is set, the smaller the number of the virtual props is, 100 pieces of white virtual props (100 pieces of shoes, helmets and weapons), 5 pieces of green virtual props (5 pieces of shoes, helmets and weapons), 5 pieces of purple virtual props (5 pieces of shoes, helmets and weapons) and 100 pieces of orange virtual props (100 pieces of shoes, helmets and weapons) can be set.
As another example, the attribute rules may include virtual item acquisition rules, such as whether randomly acquired in the game, acquired by defeating an enemy, acquired by completing a special achievement, acquired by a virtual currency purchase, acquired by a blind box within the game, and so forth.
As another example, the attribute rules may include a composition rule of virtual items, that is, a rule that a low-level virtual item is composed of a high-level virtual item, for example, 4 white virtual items may be composed of 1 green virtual item, 4 green virtual items may be composed of 1 purple virtual item, and 10 purple virtual items may be composed of 1 orange virtual item. But also can define that only the same type of virtual props can be synthesized, for example, 4 white shoes and 1 green shoe can be synthesized. If the combination of 2 white shoes and 2 white weapons is performed, the combination fails. If the shoes are 3 white shoes, the synthesis will fail.
As another example, the attribute rules may include an upgrade rule for the virtual items, for example, defining some preset conditions, and the virtual items may be upgraded when the preset conditions are met in the game. Taking a white weapon as an example, it may be set that a player is required to defeat a preset number of enemies using the white weapon, and the white weapon may be upgraded to a higher-level white weapon or to a green weapon by spending a preset number of virtual money.
As another example, the attribute rule may include a decomposition rule of the virtual item, for example, after 4 white virtual items are successfully synthesized into 1 green virtual item, 4 white virtual items consumed by the synthesis need to be decomposed and destroyed.
As another example, attribute rules may include usage rules for virtual props, which may be defined, e.g., shoes may be fitted only to the feet of a virtual character, helmets may be fitted only to the head of a virtual character, different kinds of weapons may only fit into a corresponding game profession, and so on.
As another example, attribute rules may include transaction rules for virtual items, e.g., a value for each virtual item may be defined, a white virtual item may be purchased in 10 virtual currency, a green virtual item may be purchased in 100 virtual currency, etc.
The attribute rules comprise multiple types, so that the functions are more comprehensive, richer contents can be written into the intelligent contract, and then the corresponding virtual props are generated based on the props NFT with the written intelligent contract, the game contents are enriched, and the game experience of players is improved.
In some embodiments, the intelligent contract written with the attribute rule can be obtained in a flexible manner, so that the player can control the game data of the player, for example, the attribute rule of the virtual item can be written into the intelligent contract of the item NFT, and then the attribute rule is published in a game community, so that a corresponding intelligent contract is obtained, and diversified game equipment is obtained. As an example, the step S420 may specifically include the following steps:
step a), writing the attribute rule of the virtual prop into the intelligent contract of the prop NFT and disclosing the attribute rule to obtain the intelligent contract written with the attribute rule.
For example, the attribute rules may be written into the smart contract and published in the game community, thereby enabling deployment of the smart contract. Once the intelligent contract is deployed, the attribute rules are completed according to the intelligent contract, and the player can not modify the attribute rules. After the intelligent contract is deployed, the attribute rules cannot be modified under the condition that the intelligent contract is not upgraded.
In practical applications, the intelligent contract can provide an upgrading interface, and whether upgrading is decided by the voting of the game community rather than the unilateral decision of the service provider. Specific upgrades may include: adding new equipment types to the game, or providing new equipment composite routes, etc.
The attribute rules of the virtual props are written into the intelligent contract of the props NFT and are disclosed, so that the intelligent contract written with the attribute rules is obtained, players can master own game data, whether the attribute rules can be modified and upgraded or not can be determined, and the playability of games is improved. Moreover, the attribute rules are written into the intelligent contracts and are disclosed in the communities, once the intelligent contracts are deployed, the rules can not be modified any more, and the intelligent contracts determine the rules.
Fig. 5 is a schematic flow chart of a data processing method for a virtual item in a game according to an embodiment of the present disclosure. The game scene of the game comprises virtual props and virtual roles controlled by terminal equipment, each virtual prop is represented by a prop NFT, each prop NFT corresponds to an intelligent contract, and the intelligent contract comprises attribute rules of the virtual props. As shown in fig. 5, the data processing method of the virtual item in the game includes:
step S510, in response to the game event of the target property NFT acquired by the virtual character, determining a target intelligent contract corresponding to the target property NFT.
Illustratively, each virtual item in the game corresponds to a unique item NFT, so the acquisition of a virtual item in the game is essentially the acquisition of an item NFT. When a virtual character acquires a virtual property in a game, namely, a game event that the virtual character acquires the property NFT occurs in the game can be judged, and the system can determine a target intelligent contract corresponding to the property NFT.
And step S520, determining a target attribute rule corresponding to the target property NFT through the target intelligent contract.
For example, since the attribute rule is written into the intelligent contract in advance, and all the virtual props are generated based on the prop NFT with the written intelligent contract, the system can determine the target attribute rule corresponding to the target prop NFT after determining the target intelligent contract corresponding to the target prop NFT.
Step S530, responding to the processing instruction aiming at the target property NFT, processing the target property NFT based on the target property rule, and obtaining the processing result of the target property NFT.
For example, the system may respond to processing instructions from the player for a target item NFT to process the target item NFT based on target attribute rules. Specifically, the processing instruction may be that the player issues a synthesis instruction and a transaction instruction for the target item NFT, and the system synthesizes or transacts the target item NFT based on the target attribute rule.
In the embodiment of the disclosure, each virtual prop has a corresponding NFT, and each prop NFT carries an intelligent contract, so when a virtual character acquires a target prop in a game, a target intelligent contract corresponding to the target prop NFT can be determined, and thus a target attribute rule corresponding to the target prop NFT, such as a value rule, an issuing rule, a synthesizing rule, and the like of the virtual prop, is determined through the target intelligent contract, and further, based on the above rules, the target prop NFT is processed after a player issues a processing instruction, so as to obtain a processing result of the target prop NFT, so that the player can synthesize, upgrade, and the like the virtual props in the game, establish a connection among a plurality of virtual props, implement a value conduction linkage, and improve game experience of the player.
The above steps are described in detail below.
In some embodiments, the target attribute rule corresponding to the target property NFT may be determined in a flexible manner, so that the target property NFT may be accurately processed in the subsequent steps based on the target attribute rule, and the target attribute rule may be adjusted, for example, the target attribute rule corresponding to the target property NFT may be determined in a manner of calling a contract interface of a target intelligent contract. As an example, the step S520 may specifically include the following steps:
and b), determining a target attribute rule corresponding to the target prop NFT by calling a contract interface of the target intelligent contract.
Illustratively, the intelligent contract may include a plurality of interface functions, a plurality of interfaces are provided through the functions, and the system may determine the target attribute rule corresponding to the target property NFT by calling different contract interfaces, thereby implementing the corresponding function. For example, determine the holder of the prop NFT; determining the address of a holder of a prop NFT; calling a prop NFT synthesis/transaction method in the intelligent contract, checking a return value of the method, and if the intelligent contract does not have the synthesis method/transaction method or the return value is not correct, returning back to avoid losing the prop NFT and avoiding losing the virtual assets of the player; and the method can also realize the transaction in the NFT market by calling a standard NFT contract interface and authorizing the prop NFT to other players, wherein the transaction mode can be a general mode, such as an Opensea exchange.
By calling the contract interface of the target intelligent contract, the target attribute rule corresponding to the target property NFT can be determined more accurately, the target property NFT can be processed more accurately based on the target attribute rule, the target attribute rule can be adjusted, functions such as equipment synthesis and transaction are realized, and game experience of players is improved.
In some embodiments, the processing instructions may include multiple types, so that the functions are more comprehensive and the game content is richer, for example, the processing instructions may be synthesis instructions, and the multiple target items NFT may be synthesized based on the synthesis instructions for the multiple target items NFT, so as to implement value linkage between NFT game equipment. As an example, the step S530 may specifically include the following steps:
and c), in response to the synthesis instruction aiming at the target props NFT, synthesizing the target props NFT based on the synthesis rule in the target attribute rule to obtain the target prop NFT synthesis result.
Illustratively, each virtual item in the game corresponds to a unique item NFT, so the composition of a virtual item in the game is essentially the composition of an item NFT. When a player wants to synthesize a plurality of target items NFT, for example, the player adds 4 pieces of green equipment to a synthesis column in a game and wants to synthesize the target items into 1 piece of purple equipment, the system may synthesize the 4 pieces of green equipment and the corresponding items NFT based on a synthesis rule in a target attribute rule written previously in response to a synthesis instruction, and obtain a synthesis result, that is, 1 piece of purple equipment and the corresponding items NFT.
The system responds to the synthesis instruction of a player aiming at the target props NFT, and synthesizes the target props NFT based on the synthesis rule in the target attribute rule to obtain the synthesis result of the target props NFT, so that the synthesis function of the props NFT in a game is realized, and the value linkage among NFT game equipment is realized.
Based on the step c), the synthesizing process of the multiple target props NFT can be realized in a strict manner, for example, whether the synthesizing request corresponding to the synthesizing instruction meets the synthesizing rule or not can be judged at first, the synthesizing request meeting the rule is executed, the props are prevented from being synthesized by the player in a manner of violating the rule, and the maintenance of the fair game environment is realized. As an example, the step c) may specifically include the following steps:
and d), responding to the synthesis instruction aiming at the multiple target props NFT, and synthesizing the multiple target props NFT to obtain the target prop NFT synthesis result if the synthesis request corresponding to the synthesis instruction accords with the synthesis rule in the target attribute rule.
For example, assuming that 4 green shoes can be synthesized into 1 purple shoe in the synthesis rule in the game, when the player adds 4 green shoes to the synthesis column in the game, the system will determine that the synthesis request corresponding to the synthesis instruction conforms to the synthesis rule, and synthesize the 4 green shoes to obtain 1 purple shoe. The specific composition rule may be a quantity rule, a type rule, a level rule, and the like.
The system responds to the synthesis instruction of a player aiming at the multiple target props NFT, and when the synthesis request corresponding to the synthesis instruction meets the synthesis rule in the target attribute rule, the multiple target props NFT are synthesized to obtain the target prop NFT synthesis result. Not only can the player synthesize abundant virtual props, but also can avoid the player to synthesize the props in a mode of violating rules, and the maintenance of fair game environment is realized.
Based on the step d), after judging whether the synthesis request corresponding to the synthesis instruction conforms to the synthesis rule, the synthesis request which does not conform to the rule can be rejected, and a synthesis failure result is returned, so that the virtual assets of the player are prevented from being damaged, and the game experience of the player is improved. As an example, the method may further comprise the steps of:
and e), responding to the synthesis instruction aiming at the multiple target props NFT, and returning a synthesis failure result if the synthesis request corresponding to the synthesis instruction does not accord with the synthesis rule in the target attribute rules.
For example, assuming that 4 green shoes can be synthesized into 1 purple shoe in the game, when the player adds 2 green weapons and 2 green shoes to the in-game synthesis column, the system will determine that the synthesis request corresponding to the synthesis instruction does not meet the synthesis rule, synthesis is not possible, the system will return the result of the synthesis failure to the player, and return 2 green weapons and 2 green shoes to the player. For another example, when the player adds 3 green shoes to the in-game composition column, the system will determine that the composition request corresponding to the composition instruction does not meet the composition rule, and composition cannot be performed, and the system will return a result of composition failure to the player, and return 3 green shoes to the player.
By enabling the system to respond to the synthesis instruction of the player aiming at the multiple target properties NFT, if the synthesis request corresponding to the synthesis instruction does not accord with the synthesis rule in the target attribute rule, the result of synthesis failure is returned to the player, so that the maintenance of a fair game environment is realized, the virtual assets of the player are prevented from being damaged, and the game experience of the player is improved.
Based on the step d), after the plurality of target props NFT are successfully synthesized, the plurality of target props NFT before being synthesized can be destroyed, the condition that the synthetic material still exists is avoided, NFT data repetition is avoided, maintenance of fair game environment is achieved, and game experience of players is improved. As an example, the step of synthesizing a plurality of target props NFT to obtain a target prop NFT synthesis result may specifically include the following steps:
and f), synthesizing the multiple target props NFT to obtain the synthesized target props NFT, and eliminating the target props NFT before synthesis.
For example, after a plurality of virtual items are synthesized into 1 virtual item in a game, the plurality of virtual items as synthetic materials need to be eliminated. For example, a player synthesizes 4 pieces of green equipment and corresponding item NFT in a game to obtain 1 piece of synthesized purple equipment and corresponding item NFT. After the synthesis is successful, the system can eliminate 4 green virtual props as synthetic materials and corresponding props NFT.
The system synthesizes the multiple target props NFT, so that the synthesized target props NFT can be obtained, the target props NFT before synthesis are eliminated, NFT data repetition is avoided, virtual assets in a game are stable, maintenance of a fair game environment is achieved, and game experience of players is improved.
Based on the step d), the types of the synthesis rules can include various types, so that the functions are more comprehensive, and the synthesis rules include various types, so that the virtual props can be more flexibly synthesized by players in games based on different synthesis rules, the virtual props with rich types are generated, the game content is enriched, and the game experience of the players is improved. Illustratively, the composition rule includes any one or more of:
a composite number rule, a composite type rule, and a composite level rule.
As an example, a composition rule may include a composition quantity rule, e.g., specify that 4 green virtual items may compose 1 purple virtual item, or that 10 green virtual items may compose 1 purple virtual item, and so on.
As another example, the composition rule may include a composition type rule, and specifically, the virtual items of the same type may be combined. For example, specifying that 4 green shoes can be composed into 1 purple shoe, while 2 green weapons and 2 green shoes cannot be composed, the system will return a result to the player that the composition failed.
As another example, a composition rule may include a composition level rule, e.g., 4 white virtual items may compose 1 green virtual item, 4 green virtual items may compose 1 purple virtual item, 10 purple equipment compose 1 orange virtual item, etc.
The synthesis rules comprise multiple types, so that the functions are more comprehensive, the player can flexibly synthesize the virtual props based on different synthesis rules in the game, the virtual props with rich types are generated, the game content is enriched, and the game experience of the player is improved.
Based on the step d), the synthesis instruction in the game is generated by the virtual character, and the initiator of the synthesis request can be confirmed to be the equipment holder in a signature authentication mode, so that the virtual assets of the player are prevented from being damaged, the maintenance of a fair game environment is realized, and the game experience of the player is improved. As one example, the composition instruction is generated by a virtual character; the step d) may specifically include the following steps:
and g), responding to the synthesis instruction aiming at the multiple target props NFT, verifying whether the target props NFT belong to the virtual role in the game scene through signature, and synthesizing the multiple target props NFT to obtain the target prop NFT synthesis result if the target props NFT belong to the virtual role.
For example, the system may perform attribution judgment and signature verification on a plurality of target items NFT, before virtual item composition is performed, it is required that the related low-level virtual items NFT are all under the name of the virtual character of the player, and the initiator of composition is required to be the owner of the virtual items, that is, the virtual character of the player. For example, a player wants to synthesize 4 green virtual items into 1 purple virtual item, the system verifies whether the NFT of the 4 green virtual items belongs to the virtual character of the player in the game scene through signature verification, and if the NFT of the 4 green virtual items belongs to the virtual character of the player in the game scene, the system synthesizes to obtain 1 purple virtual item and generates a new item NFT. The newly generated purple virtual item may be used or traded in the game.
The system responds to the synthesis instruction of a player aiming at the target props NFT, verifies whether the target props NFT belong to the virtual characters in a game scene through signatures, synthesizes the target props NFT if the target props NFT belong to the virtual characters, obtains the synthesis result of the target props NFT, ensures that the player processes the virtual assets belonging to the player, avoids the damage of the virtual assets of the player, realizes the maintenance of a fair game environment, and improves the game experience of the player.
Fig. 6 is a schematic structural diagram of a data processing device for a virtual item in a game according to an embodiment of the present disclosure. Wherein, the game scene of the game corresponds to the virtual item to be generated. As shown in fig. 6, data processing apparatus 600 for in-game virtual items includes:
the determining module 601 is configured to determine an item NFT corresponding to the virtual item.
The writing module 602 is configured to write the attribute rule of the virtual prop into an intelligent contract of the prop NFT, so as to obtain a written intelligent contract.
The generating module 603 is configured to generate a virtual item corresponding to the item NFT in the game scene based on the item NFT with the written intelligent contract.
In some embodiments, the attribute rules include any one or more of:
the system comprises a grade rule, a classification rule, an issuing rule, an obtaining rule, a synthesis rule, an upgrading rule, a decomposition rule, a use rule and a transaction rule of the virtual prop.
In some embodiments, the writing module 602 is specifically configured to:
and writing the attribute rule of the virtual prop into an intelligent contract of the prop NFT and disclosing the attribute rule to obtain the intelligent contract written with the attribute rule.
The data processing device for the virtual item in the game provided by the embodiment of the disclosure has the same technical characteristics as the data processing method for the virtual item in the game provided by the embodiment of the disclosure, so that the same technical problems can be solved, and the same technical effects can be achieved. The method comprises the steps of firstly determining a property NFT corresponding to a virtual property, writing an attribute rule of the virtual property into an intelligent contract before issuing the property NFT, for example, a value rule, an issuing rule, a synthesis rule and the like of the virtual property, obtaining the intelligent contract after writing the attribute rule, and further generating the virtual property corresponding to the property NFT in a game scene based on the property NFT carrying the intelligent contract with the attribute rule, so that a player can obtain the virtual property in a game, the player can control own game equipment data in the game, and the technical problem that the controllability of the player on the virtual property data is low is solved.
Fig. 7 is a schematic structural diagram of another data processing device for a virtual item in a game according to an embodiment of the present disclosure. The game scene of the game comprises virtual props and virtual roles controlled by terminal equipment, each virtual prop is represented by a prop NFT, each prop NFT corresponds to an intelligent contract, and the intelligent contract comprises attribute rules of the virtual props. As shown in fig. 7, data processing apparatus 700 for in-game virtual items comprises:
the first determining module 701 is configured to determine a target intelligent contract corresponding to a target item NFT in response to a game event of the target item NFT acquired by a virtual character.
A second determining module 702, configured to determine, by using the target intelligent contract, a target attribute rule corresponding to the target prop NFT.
The processing module 703 is configured to, in response to the processing instruction for the target prop NFT, process the target prop NFT based on the target attribute rule, to obtain a target prop NFT processing result.
In some embodiments, the second determining module 702 is specifically configured to:
and determining a target attribute rule corresponding to the target prop NFT by calling a contract interface of the target intelligent contract.
In some embodiments, the processing module 703 is specifically configured to:
and responding to the synthesis instruction aiming at the multiple target props NFT, and synthesizing the multiple target props NFT based on the synthesis rule in the target attribute rule to obtain the target prop NFT synthesis result.
In some embodiments, the processing module 703 is specifically configured to:
responding to the synthesis instruction aiming at the multiple target props NFT, and if the synthesis request corresponding to the synthesis instruction accords with the synthesis rule in the target attribute rule, synthesizing the multiple target props NFT to obtain the target prop NFT synthesis result.
In some embodiments, the apparatus further comprises:
and the returning module is used for responding to the synthesis instruction aiming at the multiple target props NFT, and returning a synthesis failure result if the synthesis request corresponding to the synthesis instruction does not accord with the synthesis rule in the target attribute rule.
In some embodiments, the processing module 703 is specifically configured to:
and synthesizing the multiple target props NFT to obtain a synthesized target prop NFT, and eliminating the target prop NFT before synthesis.
In some embodiments, the processing module 703 is specifically configured to:
the synthesis rules include any one or more of the following:
a synthesis quantity rule, a synthesis type rule and a synthesis grade rule.
In some embodiments, the composition instructions are generated by a virtual character; the processing module 703 is specifically configured to:
responding to the synthesis instruction aiming at the target props NFT, verifying whether the target props NFT belong to the virtual role in the game scene through signature, and synthesizing the target props NFT to obtain the target props NFT synthesis result if the target props NFT belong to the virtual role.
The data processing device for the virtual item in the game provided by the embodiment of the disclosure has the same technical characteristics as the data processing method for the virtual item in the game provided by the embodiment of the disclosure, so that the same technical problems can be solved, and the same technical effects can be achieved. Because each virtual prop has a corresponding NFT and each prop NFT carries an intelligent contract, when a virtual character acquires a target prop in a game, a target intelligent contract corresponding to the target prop NFT can be determined, so that target attribute rules corresponding to the target prop NFT, such as a value rule, an issuing rule, a synthesizing rule and the like of the virtual prop, can be determined through the target intelligent contract, and further, based on the rules, the target prop NFT is processed after a player issues a processing instruction to obtain a target prop NFT processing result, so that the player can synthesize, upgrade and the like the virtual props in the game, contact among a plurality of virtual props is established, value conduction linkage is realized, and game experience of the player is improved.
The data processing device of the virtual item in the game provided by the embodiment of the disclosure may be specific hardware on the device, or software or firmware installed on the device, and the like. The device provided by the embodiment of the present disclosure has the same implementation principle and technical effect as the foregoing method embodiment, and for the sake of brief description, no mention is made in the device embodiment, and reference may be made to the corresponding contents in the foregoing method embodiment. It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the system, the apparatus and the unit described above may all refer to the corresponding processes in the method embodiments, and are not described herein again.
An embodiment of the present disclosure further provides an electronic device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device executes a method of data processing of a virtual item in a game as in the embodiments, the processor executing the machine-readable instructions, the preamble of the processor method item to perform the steps of:
determining a prop NFT corresponding to the virtual prop;
writing the attribute rule of the virtual prop into an intelligent contract of the prop NFT to obtain a written intelligent contract;
and generating a virtual prop corresponding to the prop NFT in the game scene based on the prop NFT with the written intelligent contract.
The specific embodiment and the specific working process thereof can refer to the corresponding processes in the above method embodiments, and are not described herein again.
In one possible embodiment, the attribute rules include any one or more of:
the virtual property is composed of a grade rule, a classification rule, an issuing rule, an obtaining rule, a synthesis rule, an upgrading rule, a decomposition rule, a use rule and a transaction rule of the virtual property.
In a possible embodiment, when the step of writing the attribute rule of the virtual item into the smart contract of the item NFT to obtain a written smart contract is executed, the processor is specifically configured to:
and writing the attribute rule of the virtual prop into an intelligent contract of the prop NFT, and disclosing the attribute rule to obtain the intelligent contract written with the attribute rule.
Through the method, the property NFT corresponding to the virtual property is determined at first, before the property NFT is issued, the attribute rule of the virtual property is written into an intelligent contract, for example, the value rule, the issuing rule, the synthesis rule and the like of the virtual property, the intelligent contract written with the attribute rule is obtained, and then the virtual property corresponding to the property NFT can be generated in a game scene based on the property NFT carrying the intelligent contract with the attribute rule, so that a player can obtain the virtual property in a game, the player can control own game equipment data in the game, and the technical problem that the player has low controllability on the virtual property data is solved.
An embodiment of the present disclosure provides another electronic device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device executes a method of data processing of virtual items in a game as in the embodiments, the processor executing the machine-readable instructions, the preamble of the processor method item to perform the steps of:
responding to a game event of a target item NFT acquired by the virtual character, and determining a target intelligent contract corresponding to the target item NFT;
determining a target attribute rule corresponding to the target prop NFT through the target intelligent contract;
and responding to a processing instruction aiming at the target prop NFT, and processing the target prop NFT based on the target attribute rule to obtain a target prop NFT processing result.
The specific embodiment and the specific working process thereof can refer to the corresponding process in the above method embodiment, and are not described herein again.
In a possible embodiment, when the processor executes the step of determining the target attribute rule corresponding to the target prop NFT by using the target intelligent contract, the processor is specifically configured to:
and determining a target attribute rule corresponding to the target prop NFT by calling a contract interface of the target intelligent contract.
In a possible embodiment, when the processor executes the step of processing the target item NFT based on the target attribute rule in response to the processing instruction for the target item NFT to obtain a processing result of the target item NFT, the processor is specifically configured to:
and in response to the synthesis instruction aiming at the target props NFT, synthesizing the target props NFT based on the synthesis rule in the target attribute rule to obtain a target prop NFT synthesis result.
In a possible embodiment, when the processor executes the step of synthesizing the plurality of target property NFTs based on a synthesis rule in the target attribute rule in response to the synthesis instruction for the plurality of target property NFTs to obtain a synthesis result of the target property NFTs, the processor is specifically configured to:
responding to a synthesis instruction aiming at the target props NFT, and if a synthesis request corresponding to the synthesis instruction accords with a synthesis rule in the target attribute rule, synthesizing the target props NFT to obtain a target prop NFT synthesis result.
In one possible embodiment, the processor is further configured to:
responding to a synthesis instruction aiming at a plurality of target props NFT, and if a synthesis request corresponding to the synthesis instruction does not accord with a synthesis rule in the target attribute rules, returning a synthesis failure result.
In a possible embodiment, when the step of synthesizing the plurality of target properties NFT to obtain a target property NFT synthesis result is executed, the processor is specifically configured to:
and synthesizing the plurality of target props NFT to obtain a synthesized target prop NFT, and eliminating the target prop NFT before synthesis.
In one possible embodiment, the synthesis rules include any one or more of:
a synthesis quantity rule, a synthesis type rule and a synthesis grade rule.
In one possible embodiment, the synthetic instruction is generated by the virtual character; when the processor executes the synthesis instruction responding to the multiple target item NFTs, and if a synthesis request corresponding to the synthesis instruction meets a synthesis rule in the target attribute rule, the processor is specifically configured to synthesize the multiple target item NFTs to obtain a synthesis result of the target item NFT:
responding to a synthesis instruction aiming at the target props NFT, verifying whether the target props NFT belong to the virtual characters in the game scene through signatures, and if the target props NFT belong to the virtual characters, synthesizing the target props NFT to obtain target prop NFT synthesis results.
Through the method, each virtual prop has the corresponding NFT, and each prop NFT carries the intelligent contract, so that when the virtual character acquires the target prop in the game, the target intelligent contract corresponding to the target prop NFT can be determined, and therefore the target attribute rule corresponding to the target prop NFT, such as the value rule, the issuing rule, the synthesizing rule and the like of the virtual prop, can be determined through the target intelligent contract, and further, based on the rules, the target prop NFT is processed after the player issues the processing instruction, the processing result of the target prop NFT is obtained, so that the player can synthesize, upgrade and the like the virtual props in the game, contact is established among a plurality of virtual props, value conduction linkage is realized, and the game experience of the player is improved.
Corresponding to the data processing method of the virtual item in the game, an embodiment of the present disclosure further provides a program product, for example, a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to perform the following steps:
determining a prop NFT corresponding to the virtual prop;
writing the attribute rule of the virtual prop into an intelligent contract of the prop NFT to obtain a written intelligent contract;
and generating a virtual prop corresponding to the prop NFT in the game scene based on the prop NFT with the written intelligent contract.
The specific embodiment and the specific working process thereof can refer to the corresponding process in the above method embodiment, and are not described herein again.
In one possible embodiment, the attribute rules include any one or more of:
the virtual property is composed of a grade rule, a classification rule, an issuing rule, an obtaining rule, a synthesis rule, an upgrading rule, a decomposition rule, a use rule and a transaction rule of the virtual property.
In a possible embodiment, when the processor executes the step of writing the attribute rule of the virtual item into the intelligent contract of the item NFT to obtain the written intelligent contract, the processor is specifically configured to:
and writing the attribute rule of the virtual prop into an intelligent contract of the prop NFT, and disclosing the attribute rule to obtain the intelligent contract written with the attribute rule.
Through the method, the property NFT corresponding to the virtual property is determined at first, before the property NFT is issued, the attribute rule of the virtual property is written into an intelligent contract, for example, the value rule, the issuing rule, the synthesis rule and the like of the virtual property, the intelligent contract written with the attribute rule is obtained, and then the virtual property corresponding to the property NFT can be generated in a game scene based on the property NFT carrying the intelligent contract with the attribute rule, so that a player can obtain the virtual property in a game, the player can control own game equipment data in the game, and the technical problem that the player has low controllability on the virtual property data is solved.
Corresponding to the data processing method of the virtual item in the game, the embodiment of the present disclosure further provides another program product, for example, a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to perform the following steps:
responding to a game event of a target item NFT acquired by the virtual character, and determining a target intelligent contract corresponding to the target item NFT;
determining a target attribute rule corresponding to the target prop NFT through the target intelligent contract;
and responding to a processing instruction aiming at the target prop NFT, and processing the target prop NFT based on the target attribute rule to obtain a target prop NFT processing result.
The specific embodiment and the specific working process thereof can refer to the corresponding process in the above method embodiment, and are not described herein again.
In a possible embodiment, when the step of determining the target attribute rule corresponding to the target prop NFT by the target smart contract is executed, the processor is specifically configured to:
and determining a target attribute rule corresponding to the target prop NFT by calling a contract interface of the target intelligent contract.
In a possible embodiment, when the processor executes the step of processing the target item NFT based on the target attribute rule in response to the processing instruction for the target item NFT to obtain a processing result of the target item NFT, the processor is specifically configured to:
and in response to the synthesis instruction aiming at the target props NFT, synthesizing the target props NFT based on the synthesis rule in the target attribute rule to obtain a target prop NFT synthesis result.
In a possible embodiment, when the processor executes the step of synthesizing the plurality of target property NFTs based on a synthesis rule in the target attribute rule in response to the synthesis instruction for the plurality of target property NFTs to obtain a synthesis result of the target property NFTs, the processor is specifically configured to:
responding to a synthesis instruction aiming at the target props NFT, and if a synthesis request corresponding to the synthesis instruction accords with a synthesis rule in the target attribute rule, synthesizing the target props NFT to obtain a target prop NFT synthesis result.
In one possible embodiment, the processor is further configured to:
responding to the synthesis instruction aiming at the multiple target props NFT, and if the synthesis request corresponding to the synthesis instruction does not accord with the synthesis rule in the target attribute rules, returning a synthesis failure result.
In a possible embodiment, when the step of synthesizing the plurality of target properties NFT to obtain a target property NFT synthesis result is executed, the processor is specifically configured to:
and synthesizing the plurality of target props NFT to obtain a synthesized target prop NFT, and eliminating the target prop NFT before synthesis.
In one possible embodiment, the synthesis rules include any one or more of:
a composite number rule, a composite type rule, and a composite level rule.
In one possible embodiment, the synthetic instruction is generated by the virtual character; when the processor executes the synthesis instruction for responding to the multiple target property NFTs, and if a synthesis request corresponding to the synthesis instruction conforms to a synthesis rule in the target attribute rule, the processor is specifically configured to synthesize the multiple target property NFTs to obtain a synthesis result of the target property NFT:
responding to a synthesis instruction aiming at the target props NFT, verifying whether the target props NFT belong to the virtual characters in the game scene through signatures, and if the target props NFT belong to the virtual characters, synthesizing the target props NFT to obtain target prop NFT synthesis results.
Through the method, each virtual prop has the corresponding NFT, and each prop NFT carries the intelligent contract, so that when the virtual character acquires the target prop in the game, the target intelligent contract corresponding to the target prop NFT can be determined, and therefore the target attribute rule corresponding to the target prop NFT, such as the value rule, the issuing rule, the synthesizing rule and the like of the virtual prop, can be determined through the target intelligent contract, and further, based on the rules, the target prop NFT is processed after the player issues the processing instruction, the processing result of the target prop NFT is obtained, so that the player can synthesize, upgrade and the like the virtual props in the game, contact is established among a plurality of virtual props, value conduction linkage is realized, and the game experience of the player is improved.
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
For another example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present disclosure may be substantially implemented or contributed to by the prior art, or parts of the technical solution may be embodied in the form of a software product, stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the data processing method of the virtual item in the game according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, but not to limit the technical solutions, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the present disclosure. Are intended to be covered by the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (15)

1. A data processing method of virtual props in games is characterized in that the game scenes of the games correspond to the virtual props to be generated; the data processing method of the virtual item in the game comprises the following steps:
determining a prop NFT corresponding to the virtual prop;
writing the attribute rule of the virtual prop into an intelligent contract of the prop NFT to obtain a written intelligent contract;
and generating a virtual prop corresponding to the prop NFT in the game scene based on the prop NFT with the written intelligent contract.
2. The method of claim 1, wherein the attribute rules include any one or more of:
the virtual property is composed of a grade rule, a classification rule, an issuing rule, an obtaining rule, a synthesis rule, an upgrading rule, a decomposition rule, a use rule and a transaction rule of the virtual property.
3. The method according to claim 1, wherein said writing the attribute rule of the virtual prop into the smart contract of the prop NFT, resulting in a written smart contract, comprises:
and writing the attribute rule of the virtual prop into an intelligent contract of the prop NFT, and disclosing the attribute rule to obtain the intelligent contract written with the attribute rule.
4. A data processing method of a virtual item in a game is characterized in that a game scene of the game comprises the virtual item and a virtual character controlled by a terminal device, each virtual item is represented by an item NFT, each item NFT corresponds to an intelligent contract, and the intelligent contract comprises an attribute rule of the virtual item; the data processing method of the virtual item in the game comprises the following steps:
responding to a game event of a target item NFT acquired by the virtual character, and determining a target intelligent contract corresponding to the target item NFT;
determining a target attribute rule corresponding to the target prop NFT through the target intelligent contract;
and responding to a processing instruction aiming at the target prop NFT, and processing the target prop NFT based on the target attribute rule to obtain a target prop NFT processing result.
5. The method according to claim 4, wherein the determining, by the target intelligent contract, a target attribute rule corresponding to the target prop NFT comprises:
and determining a target attribute rule corresponding to the target prop NFT by calling a contract interface of the target intelligent contract.
6. The method according to claim 4, wherein the processing the target item NFT based on the target attribute rule in response to the processing instruction for the target item NFT to obtain a target item NFT processing result comprises:
and in response to the synthesis instruction aiming at the target props NFT, synthesizing the target props NFT based on the synthesis rule in the target attribute rule to obtain a target prop NFT synthesis result.
7. The method according to claim 6, wherein the synthesizing, in response to the synthesis instruction for the target properties NFT, the target properties NFT based on the synthesis rule in the target attribute rules to obtain a target properties NFT synthesis result, comprises:
responding to a synthesis instruction aiming at the target props NFT, and if a synthesis request corresponding to the synthesis instruction accords with a synthesis rule in the target attribute rule, synthesizing the target props NFT to obtain a target prop NFT synthesis result.
8. The method of claim 7, further comprising:
responding to a synthesis instruction aiming at a plurality of target props NFT, and if a synthesis request corresponding to the synthesis instruction does not accord with a synthesis rule in the target attribute rules, returning a synthesis failure result.
9. The method according to claim 7, wherein the synthesizing the plurality of target properties NFT to obtain a target property NFT synthesis result comprises:
and synthesizing the plurality of target props NFT to obtain a synthesized target prop NFT, and eliminating the target prop NFT before synthesis.
10. The method of claim 7, wherein the synthesis rules include any one or more of:
a composite number rule, a composite type rule, and a composite level rule.
11. The method of claim 7, wherein the composition instruction is generated by the virtual character; the synthesizing, in response to the synthesis instruction for the target items NFT, if the synthesis request corresponding to the synthesis instruction conforms to the synthesis rule in the target attribute rule, synthesizing the target items NFT to obtain a target item NFT synthesis result, including:
responding to a synthesis instruction aiming at the target props NFT, verifying whether the target props NFT belong to the virtual roles in the game scene through signature, and if the target props NFT belong to the virtual roles, synthesizing the target props NFT to obtain target prop NFT synthesis results.
12. A data processing device of a virtual item in a game is characterized in that a game scene of the game corresponds to a virtual item to be generated; the data processing device for the virtual item in the game comprises:
the determining module is used for determining a prop NFT corresponding to the virtual prop;
the writing module is used for writing the attribute rule of the virtual prop into the intelligent contract of the prop NFT to obtain the written intelligent contract;
and the generating module is used for generating a virtual item corresponding to the item NFT in the game scene based on the item NFT with the written intelligent contract.
13. A data processing device of a virtual item in a game is characterized in that a game scene of the game comprises the virtual item and a virtual character controlled by a terminal device, each virtual item is represented by an item NFT, each item NFT corresponds to an intelligent contract, and the intelligent contract comprises an attribute rule of the virtual item; the data processing device of the virtual item in the game comprises:
the first determining module is used for responding to a game event of a target prop NFT obtained by the virtual character and determining a target intelligent contract corresponding to the target prop NFT;
the second determining module is used for determining a target attribute rule corresponding to the target prop NFT through the target intelligent contract;
and the processing module is used for responding to the processing instruction aiming at the target prop NFT and processing the target prop NFT based on the target attribute rule to obtain a target prop NFT processing result.
14. An electronic device comprising a memory and a processor, wherein the memory stores a computer program operable on the processor, and wherein the processor implements the steps of the method of any one of claims 1 to 11 when executing the computer program.
15. A computer readable storage medium having stored thereon computer executable instructions which, when invoked and executed by a processor, cause the processor to execute the method of any of claims 1 to 11.
CN202210828442.XA 2022-07-13 2022-07-13 Data processing method and device for virtual props in game and electronic equipment Pending CN115089970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210828442.XA CN115089970A (en) 2022-07-13 2022-07-13 Data processing method and device for virtual props in game and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210828442.XA CN115089970A (en) 2022-07-13 2022-07-13 Data processing method and device for virtual props in game and electronic equipment

Publications (1)

Publication Number Publication Date
CN115089970A true CN115089970A (en) 2022-09-23

Family

ID=83296213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210828442.XA Pending CN115089970A (en) 2022-07-13 2022-07-13 Data processing method and device for virtual props in game and electronic equipment

Country Status (1)

Country Link
CN (1) CN115089970A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7448618B1 (en) 2022-12-08 2024-03-12 株式会社スクウェア・エニックス Token management program, token management system, and token management method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7448618B1 (en) 2022-12-08 2024-03-12 株式会社スクウェア・エニックス Token management program, token management system, and token management method

Similar Documents

Publication Publication Date Title
US10943208B2 (en) Methods and apparatus to emulate a toy
US10946291B1 (en) Granting and securing ownership of cross-application digital assets
CN111429145B (en) Risk control method and device for electronic transaction and electronic equipment
CN105246567A (en) Cache-influenced video games
CN105378662A (en) Bundle package generation
US11979485B2 (en) Electronic device providing blockchain account information and method of operating the same
CN109499069B (en) Operation result checking method and device, storage medium and electronic device
CN107038619B (en) Virtual resource management method and device
CN115089970A (en) Data processing method and device for virtual props in game and electronic equipment
US20240108990A1 (en) Fraud detection system
CN111265870A (en) Control method and device of virtual operation object and storage medium
US20230353355A1 (en) Tag-based authentication system and methods for use therewith
CN108038378A (en) High in the clouds detection function is by the method for malicious modification, terminal device and storage medium
CN112150145A (en) Game account transaction method, system and equipment
US20230119838A1 (en) Game platform using player token nfts and methods for use therewith
CN103854216A (en) Online application virtual resource issuing method and device
CN114118993A (en) Payment method and electronic equipment
KR20080017592A (en) Management system for game room with virtual money and method thereof
CN110585733A (en) Virtual asset transaction method and related device
US20140287837A1 (en) Method and server for providing item overlap effect
CN106600313A (en) Game reward method and terminal
US20170185995A1 (en) Module for emulating at least one payment card, corresponding method, payment device, computer program product and storage medium
CN110163596A (en) A kind of resource amount share system and method
US11786826B1 (en) Card customization via a gaming console
KR102550621B1 (en) Control method of electronic apparatus for generating virtual character based on unique number of non fungible token

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