CN113457169A - Virtual article display method and device - Google Patents

Virtual article display method and device Download PDF

Info

Publication number
CN113457169A
CN113457169A CN202110825399.7A CN202110825399A CN113457169A CN 113457169 A CN113457169 A CN 113457169A CN 202110825399 A CN202110825399 A CN 202110825399A CN 113457169 A CN113457169 A CN 113457169A
Authority
CN
China
Prior art keywords
attribute
type
target attribute
target
virtual
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
CN202110825399.7A
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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202110825399.7A priority Critical patent/CN113457169A/en
Publication of CN113457169A publication Critical patent/CN113457169A/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/85Providing additional services to players

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a virtual article display method and a device, firstly, obtaining type information of a virtual article to be displayed, and selecting a target attribute combination from a plurality of groups of attribute combinations matched with the type information; secondly, selecting at least one target attribute type from the target attribute combination based on first weight information of each attribute type in the target attribute combination; and finally, according to the attribute value range respectively corresponding to the selected at least one target attribute type, distributing the attribute value corresponding to the at least one target attribute type for the virtual article, and then displaying the image of the virtual article and the distributed attribute value. The embodiment of the disclosure can realize the automation of virtual article configuration, and improve the efficiency of configuring attributes of the virtual articles and displaying the virtual articles.

Description

Virtual article display method and device
Technical Field
The disclosure relates to the technical field of computers, in particular to a virtual article display method and device.
Background
With the rapid progress of computer technology and the increasing mental demand, electronic games have become one of the mainstream entertainment methods. In some electronic games, there are many virtual items, the types of which may include virtual consumables, virtual equipment, and the like. These virtual articles are typically capable of providing some virtual capabilities or virtual attributes, e.g., in virtual equipment, virtual weapons typically provide attack attributes, such as power of attack, speed of attack, etc., and virtual defensive equipment is capable of providing defense attributes, such as power of defense, endurance, etc.
In some games, the attribute values that can be provided by the virtual articles are not fixed, and even though the virtual articles have the same name and the same type, the provided attribute types and attribute values may be different, and when the virtual articles are displayed, the corresponding attribute values need to be displayed at the same time, so how to quickly and accurately determine the attribute values of the virtual articles and display the attribute values becomes a key problem.
Disclosure of Invention
The embodiment of the disclosure at least provides a virtual article display method and device.
In a first aspect, an embodiment of the present disclosure provides a virtual article display method, including:
acquiring type information of a virtual article to be displayed, and selecting a target attribute combination from a plurality of groups of attribute combinations matched with the type information;
selecting at least one target attribute type from the target attribute combination based on first weight information of each attribute type in the target attribute combination;
distributing an attribute value corresponding to at least one target attribute type to the virtual article according to the attribute value range corresponding to the selected at least one target attribute type;
and displaying the image of the virtual article and the attribute value corresponding to the at least one target attribute type to which the virtual article is assigned.
In an alternative embodiment, the type information includes multi-level type information of the virtual article; determining a plurality of sets of attribute combinations matching the type information by:
determining multiple groups of attribute combinations matched with the multi-level type information in a mapping table based on the multi-level type information; wherein, in the mapping table, each upper level type information corresponds to a plurality of lower level type information.
In an optional embodiment, the selecting a target attribute combination from the plurality of sets of attribute combinations matched with the type information includes:
and randomly extracting a group of attribute combinations from the plurality of groups of attribute combinations as the target attribute combination based on the second weight information of each group of attribute combinations in the plurality of groups of attribute combinations.
In an optional embodiment, the selecting at least one target attribute type from the target attribute combination based on the first weight information of each attribute type includes:
screening out at least one attribute type to be extracted from each attribute type based on the residual extraction times corresponding to each attribute type;
based on first weight information corresponding to the at least one attribute type to be extracted, randomly extracting the target attribute type from the at least one attribute type to be extracted, and updating the residual extraction times corresponding to the target attribute type;
and repeating the steps until the number of the extracted target attribute types is equal to the preset number.
In an optional implementation manner, the updating the remaining extraction times corresponding to the target attribute type includes:
subtracting one from the residual extraction times corresponding to the target attribute type; alternatively, the first and second electrodes may be,
returning the residual extraction times corresponding to the target attribute type to zero; alternatively, the first and second electrodes may be,
the remaining number of extractions is kept constant.
In an alternative embodiment, the virtual item is virtual equipment in a game.
In a second aspect, an embodiment of the present disclosure further provides a virtual article display device, including:
the acquisition module is used for acquiring the type information of the virtual article to be displayed and selecting a target attribute combination from a plurality of groups of attribute combinations matched with the type information;
the selecting module is used for selecting at least one target attribute type from the target attribute combination based on the first weight information of each attribute type in the target attribute combination;
the configuration module is used for distributing the attribute value corresponding to the at least one target attribute type to the virtual article according to the attribute value range corresponding to the selected at least one target attribute type;
and the display module is used for displaying the image of the virtual article and the attribute value corresponding to the at least one target attribute type allocated to the virtual article.
In an alternative embodiment, the type information includes multi-level type information of the virtual article; the selecting module is further configured to:
determining multiple groups of attribute combinations matched with the multi-level type information in a mapping table based on the multi-level type information; wherein, in the mapping table, each upper level type information corresponds to a plurality of lower level type information.
In an optional implementation manner, when the obtaining module selects a target attribute combination from a plurality of sets of attribute combinations matched with the type information, the obtaining module is configured to:
and randomly extracting a group of attribute combinations from the plurality of groups of attribute combinations as the target attribute combination based on the second weight information of each group of attribute combinations in the plurality of groups of attribute combinations.
In an optional implementation manner, the selecting module is specifically configured to:
screening out at least one attribute type to be extracted from each attribute type based on the residual extraction times corresponding to each attribute type;
based on first weight information corresponding to the at least one attribute type to be extracted, randomly extracting the target attribute type from the at least one attribute type to be extracted, and updating the residual extraction times corresponding to the target attribute type;
and repeating the steps until the number of the extracted target attribute types is equal to the preset number.
In an optional implementation manner, when the selection module updates the remaining extraction times corresponding to the target attribute type, the selection module is configured to:
subtracting one from the residual extraction times corresponding to the target attribute type; alternatively, the first and second electrodes may be,
returning the residual extraction times corresponding to the target attribute type to zero; alternatively, the first and second electrodes may be,
the remaining number of extractions is kept constant.
In an alternative embodiment, the virtual item is virtual equipment in a game.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect described above, or any possible implementation of the first aspect.
In a fourth aspect, this disclosed embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps in the first aspect or any one of the possible implementation manners of the first aspect.
The virtual article display method and the device provided by the embodiment of the disclosure are characterized in that firstly, type information of a virtual article to be displayed is obtained, and a target attribute combination is selected from a plurality of groups of attribute combinations matched with the type information; secondly, selecting at least one target attribute type from the target attribute combination based on first weight information of each attribute type in the target attribute combination; then, according to the attribute value ranges respectively corresponding to the selected at least one target attribute type, distributing the attribute value corresponding to the at least one target attribute type for the virtual article; and finally, displaying the image of the virtual article and the attribute value corresponding to the at least one target attribute type to which the virtual article is assigned. According to the method and the device, the target attribute combination is selected from the multiple sets of attribute combinations through the type information of the virtual article, at least one target attribute type is selected according to the first weight information of each attribute type in the target attribute combination, the attribute value corresponding to each target attribute type is finally determined to be distributed to the virtual article, the image of the virtual article and the distributed attribute value are displayed, the automation of virtual article configuration is achieved, and the efficiency of configuring the attributes of the virtual article and displaying the virtual article is improved.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 shows a flowchart of a virtual article display method provided by an embodiment of the present disclosure;
FIG. 2 illustrates a schematic diagram of attribute values of a virtual article provided by embodiments of the present disclosure;
FIG. 3 illustrates a schematic view of a virtual good display apparatus provided by an embodiment of the present disclosure;
fig. 4 shows a schematic diagram of an electronic device provided by an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
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.
The term "and/or" herein merely describes an associative relationship, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
It has been found that in some games, the attribute values that can be provided by the virtual articles are not fixed, and even though the virtual articles have the same name and the same type, the types and the attribute values of the provided attributes may be different, and in such a scenario, it is difficult to configure appropriate attributes for the virtual articles.
Based on the research, the present disclosure provides a virtual article display method, which selects a target attribute combination from a plurality of attribute combinations according to type information of a virtual article, selects at least one target attribute type according to first weight information of each attribute type in the target attribute combination, finally determines an attribute value corresponding to each target attribute type to allocate to the virtual article, and displays an image and the allocated attribute value of the virtual article, thereby implementing automation of virtual article configuration and improving efficiency of configuring attributes of the virtual article and displaying the virtual article.
To facilitate understanding of the present embodiment, first, a virtual article display method disclosed in the embodiments of the present disclosure is described in detail, where an execution subject of the virtual article display method provided in the embodiments of the present disclosure is generally a computer device with certain computing capability, and the computer device includes, for example: terminal equipment or servers or other processing devices. In some possible implementations, the virtual article display method may be implemented by a processor calling computer readable instructions stored in a memory.
Referring to fig. 1, a flowchart of a virtual article displaying method provided in the embodiment of the present disclosure is shown, where the method includes steps S101 to S104, where:
s101, obtaining type information of a virtual article to be displayed, and selecting a target attribute combination from a plurality of groups of attribute combinations matched with the type information.
The virtual article may be a virtual article in an electronic game, and the type of the virtual article may include virtual equipment, a virtual article and the like. When the virtual equipment is generated, attribute entries need to be distributed to the virtual equipment, each attribute entry can be used for representing an attribute value given to the virtual object by the virtual equipment, and the attribute values can comprise basic attributes, inherent attributes, random attributes, characteristics, special effects and the like, and can comprise attack force, defense force, attack rate, attack injury, armor protection value, endurance value, attack special effect, special attack damage increment and the like.
In the embodiment of the present disclosure, the attribute values configured for the generated virtual equipment are randomly generated within a certain range, different types of virtual equipment may correspond to different attribute type ranges, for example, the attribute type corresponding to the virtual equipment of the weapon type is an attack attribute, the attribute type corresponding to the virtual equipment of the defense type is a defense attribute, the weapon type may be an upper level type, and the upper level type may include a plurality of lower level types, for example, the weapon type may include a sword, a gun, and the like. Therefore, the attribute combination corresponding to the type information matcher of the virtual article can be used.
Specifically, one type of information may correspond to a plurality of sets of attribute combinations, each set of attribute combination may include a plurality of attribute types, and the plurality of sets of attribute combinations matched with the type of information may be determined through the following steps:
determining multiple groups of attribute combinations matched with the multi-level type information in a mapping table based on the multi-level type information; wherein, in the mapping table, each upper level type information corresponds to a plurality of lower level type information.
The mapping table may include mapping relationships between each type of information and the sets of attribute combinations, and may be pre-configured.
In some possible embodiments, at least one attribute combination may be randomly extracted from the plurality of attribute combinations as the target attribute combination based on the second weight information of each of the plurality of attribute combinations.
After the plurality of sets of attribute combinations are determined, a target attribute combination may be selected from the plurality of sets of attribute combinations, specifically, at least one target attribute combination may be extracted from the plurality of attribute combinations according to the second weight information of each attribute combination in the plurality of sets of attribute combinations, and the attribute types in each target attribute combination may be different, for example, one target attribute combination may be selected from the attribute combinations corresponding to the plurality of basic attributes, one target attribute combination may be selected from the attribute combinations corresponding to the plurality of inherent attributes, and one target attribute combination may be respectively extracted from the attribute combinations corresponding to the random attribute, the special effect, and the characteristic. Alternatively, a target attribute combination may be directly selected from a plurality of attribute combinations.
Illustratively, the target attribute combination may be determined according to the following table 1:
type information Type information Attribute combination Attribute combination Attribute combination
Weapon Submachine gun Combination a Combination b Combination c
Weapon Knife and sword Combination d Combination e Combination f
TABLE 1
Specifically, the corresponding sets of attribute combinations are determined by matching with the multi-level type information in table 1, for example, if the type information of a virtual article includes a weapon and a submachine gun, the corresponding attribute combinations include a combination a, a combination b, and a combination c, and then an attribute combination can be randomly selected from the combinations a, b, and c as a target attribute combination according to the weight information of each attribute combination.
S102, based on the first weight information of each attribute type in the target attribute combination, at least one target attribute type is selected from the target attribute combination.
In this step, the target attribute combination may include a plurality of attribute types, each attribute type is configured with corresponding first weight information, and at least one target attribute type may be selected from the target attribute combination according to the first weight information, where the number of the target attribute types may be preset or determined according to a preset value range, for example, if the value range of the number of the target attribute types corresponding to one target attribute combination may be 2 to 4, a value may be randomly extracted from 2, 3, and 4 as the number of the target attribute types, and then a corresponding number of the target attribute types are extracted from the target attribute combination.
In the process of decimating the target attribute types, the same attribute types may be decimated as the target attribute types, for example, the target attribute combination includes A, B, C three attribute types, and the corresponding first weight information is 3, 2, and 1, respectively, so that in one possible case, the total number of decimated target attribute types is 3, and the target attribute types may be A, A, B, where the probability value of decimating to a is higher since the first weight information of a is 3, which may be the case.
Further, the remaining extraction times may be configured for each attribute type, and the target attribute type may be specifically selected through the following steps:
screening out at least one attribute type to be extracted from each attribute type based on the residual extraction times corresponding to each attribute type;
based on first weight information corresponding to the at least one attribute type to be extracted, randomly extracting the target attribute type from the at least one attribute type to be extracted, and updating the residual extraction times corresponding to the target attribute type;
and repeating the steps until the number of the extracted target attribute types is equal to the preset number.
The initial value of the remaining extraction times can be preset, the attribute type to be extracted which can be extracted can be screened out according to the remaining extraction times corresponding to the attribute types, the remaining extraction times of the attribute type to be extracted can be larger than 0, and after the attribute type corresponding to the attribute type is extracted, the remaining extraction times corresponding to the attribute type can be updated.
Further, the remaining extraction times corresponding to the target attribute type may be updated by:
subtracting one from the residual extraction times corresponding to the target attribute type; alternatively, the first and second electrodes may be,
returning the residual extraction times corresponding to the target attribute type to zero; alternatively, the first and second electrodes may be,
the remaining number of extractions is kept constant.
Here, the manner of updating the remaining extraction times may be determined according to a mapping relationship between the remaining extraction times and the target attribute type or the type information of the virtual article, and in the manner of subtracting one from the remaining extraction times corresponding to the target attribute type, if the remaining extraction times of an attribute type are more, the attribute type is taken as the target attribute type for a plurality of times; in the mode of returning the residual extraction times corresponding to the target attribute type to zero, once a certain attribute type is extracted as the target attribute type, the residual extraction times of the attribute type can be returned to zero, and the attribute type cannot be used as the target attribute type again in the subsequent extraction step; in the mode of keeping the remaining extraction times unchanged, the remaining extraction times of the extracted attribute types are unchanged, and subsequent extraction is not influenced.
Illustratively, the target attribute type may be determined based on the following table 2:
Figure BDA0003173387230000101
TABLE 2
Specifically, as shown in table 2, the entries include quality, number of entries, attribute pool, extraction manner, weight, and remaining number, where the data under the columns of extraction manner, weight, and remaining number is the definition of the data under the previous attribute pool. Based on the table 2, the quality of the virtual article may be determined, if the quality of the virtual article is high, the number of corresponding entries may be 4, 2 attributes may be extracted from the plurality of attribute pools according to the weights of the attribute pools, and extraction may be performed from the attribute pool whose remaining number is greater than 0, for example, the weight of the attribute 1 is 2, and the weight of the attribute 2 is 1, the probability of extracting the attribute 1 is greater than the probability of extracting the attribute 1, if the attribute 1 is extracted, the remaining number corresponding to the attribute may be reduced by 1 because the corresponding extraction manner is not put-back extraction, and if the attribute 2 is extracted, the corresponding extraction manner is put-back extraction, and the corresponding remaining number may not be changed, so that the extraction is repeated for multiple times until the number of extracted attributes is equal to the number of entries, and at least one target attribute type may be obtained.
S103, distributing the attribute value corresponding to the at least one target attribute type to the virtual article according to the attribute value range corresponding to the selected at least one target attribute type.
In this step, each target attribute type may be configured with a corresponding attribute value range, for example, if the target attribute type is attack power, and the attribute value range is greater than or equal to 100 and less than or equal to 200, the extracted attribute values may be 150, 100, 200, and the like; if the target attribute type is attack special effect, the attribute value range is 'prop drop rate is increased by 3 percent' and 'attack consumes money', the extracted attribute value can be one of 'prop drop rate is increased by 3 percent' and 'attack consumes money'.
S104, displaying the image of the virtual article and the attribute value corresponding to the at least one target attribute type to which the virtual article is assigned.
In this step, the image of the virtual item and the assigned attribute value of the virtual item may be displayed in a user interface through a display device for a user to view.
As shown in fig. 2, which is a schematic diagram of a user interface in the embodiment of the present disclosure, an image a of a virtual item and an assigned attribute value B of the virtual item are displayed in the user interface.
The virtual article display method provided by the embodiment of the disclosure comprises the steps of firstly obtaining type information of a virtual article to be displayed, and selecting a target attribute combination from a plurality of groups of attribute combinations matched with the type information; secondly, selecting at least one target attribute type from the target attribute combination based on first weight information of each attribute type in the target attribute combination; then, according to the attribute value ranges respectively corresponding to the selected at least one target attribute type, distributing the attribute value corresponding to the at least one target attribute type for the virtual article; and finally, displaying the image of the virtual article and the attribute value corresponding to the at least one target attribute type to which the virtual article is assigned. According to the method and the device, the target attribute combination is selected from the multiple sets of attribute combinations through the type information of the virtual article, at least one target attribute type is selected according to the first weight information of each attribute type in the target attribute combination, the attribute value corresponding to each target attribute type is finally determined to be distributed to the virtual article, the image of the virtual article and the distributed attribute value are displayed, the automation of virtual article configuration is achieved, and the efficiency of configuring the attributes of the virtual article and displaying the virtual article is improved.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, a virtual article display apparatus corresponding to the virtual article display method is also provided in the embodiments of the present disclosure, and because the principle of the apparatus in the embodiments of the present disclosure for solving the problem is similar to the virtual article display method described above in the embodiments of the present disclosure, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not described again.
Referring to fig. 3, a schematic diagram of a virtual article configuration provided in an embodiment of the present disclosure is shown, where the apparatus includes:
an obtaining module 310, configured to obtain type information of a virtual article to be displayed, and select a target attribute combination from multiple sets of attribute combinations matched with the type information;
a selecting module 320, configured to select at least one target attribute type from the target attribute combination based on the first weight information of each attribute type in the target attribute combination;
the configuration module 330 is configured to allocate an attribute value corresponding to at least one target attribute type to the virtual article according to an attribute value range corresponding to each of the selected at least one target attribute type;
a displaying module 340, configured to display the image of the virtual item and the attribute value corresponding to the at least one target attribute type to which the virtual item is assigned.
In an alternative embodiment, the type information includes multi-level type information of the virtual article; the selecting module 320 is further configured to:
determining multiple groups of attribute combinations matched with the multi-level type information in a mapping table based on the multi-level type information; wherein, in the mapping table, each upper level type information corresponds to a plurality of lower level type information.
In an optional implementation manner, when the obtaining module 310 selects a target attribute combination from multiple sets of attribute combinations matched with the type information, the obtaining module is configured to:
and randomly extracting a group of attribute combinations from the plurality of groups of attribute combinations as the target attribute combination based on the second weight information of each group of attribute combinations in the plurality of groups of attribute combinations.
In an optional implementation manner, the selecting module 320 is specifically configured to:
screening out at least one attribute type to be extracted from each attribute type based on the residual extraction times corresponding to each attribute type;
based on first weight information corresponding to the at least one attribute type to be extracted, randomly extracting the target attribute type from the at least one attribute type to be extracted, and updating the residual extraction times corresponding to the target attribute type;
and repeating the steps until the number of the extracted target attribute types is equal to the preset number.
In an optional implementation manner, when the selecting module 320 updates the remaining extraction times corresponding to the target attribute type, it is configured to:
subtracting one from the residual extraction times corresponding to the target attribute type; alternatively, the first and second electrodes may be,
returning the residual extraction times corresponding to the target attribute type to zero; alternatively, the first and second electrodes may be,
the remaining number of extractions is kept constant.
In an alternative embodiment, the virtual item is virtual equipment in a game.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Corresponding to the virtual article display method in fig. 1, an embodiment of the present disclosure further provides an electronic device 400, as shown in fig. 4, a schematic structural diagram of the electronic device 400 provided in the embodiment of the present disclosure includes:
a processor 41, a memory 42, and a bus 43; the memory 42 is used for storing execution instructions and includes a memory 421 and an external memory 422; the memory 421 is also referred to as an internal memory, and is used for temporarily storing the operation data in the processor 41 and the data exchanged with the external memory 422 such as a hard disk, the processor 41 exchanges data with the external memory 422 through the memory 421, and when the electronic device 400 operates, the processor 41 communicates with the memory 42 through the bus 43, so that the processor 41 executes the following instructions:
acquiring type information of a virtual article to be displayed, and selecting a target attribute combination from a plurality of groups of attribute combinations matched with the type information;
selecting at least one target attribute type from the target attribute combination based on first weight information of each attribute type in the target attribute combination;
distributing an attribute value corresponding to at least one target attribute type to the virtual article according to the attribute value range corresponding to the selected at least one target attribute type;
and displaying the image of the virtual article and the attribute value corresponding to the at least one target attribute type to which the virtual article is assigned.
In an alternative embodiment, processor 41 executes instructions in which the type information includes multi-level type information of the virtual article; determining a plurality of sets of attribute combinations matching the type information by:
determining multiple groups of attribute combinations matched with the multi-level type information in a mapping table based on the multi-level type information; wherein, in the mapping table, each upper level type information corresponds to a plurality of lower level type information.
In an alternative embodiment, the selecting, by the processor 41, a target attribute combination from the plurality of sets of attribute combinations matched with the type information includes:
and randomly extracting a group of attribute combinations from the plurality of groups of attribute combinations as the target attribute combination based on the second weight information of each group of attribute combinations in the plurality of groups of attribute combinations.
In an alternative embodiment, the instruction executed by processor 41 for selecting at least one target attribute type from the target attribute combinations based on the first weight information of each attribute type includes:
screening out at least one attribute type to be extracted from each attribute type based on the residual extraction times corresponding to each attribute type;
based on first weight information corresponding to the at least one attribute type to be extracted, randomly extracting the target attribute type from the at least one attribute type to be extracted, and updating the residual extraction times corresponding to the target attribute type;
and repeating the steps until the number of the extracted target attribute types is equal to the preset number.
In an optional implementation manner, in the instruction executed by the processor 41, the updating the remaining extraction times corresponding to the target attribute type includes:
subtracting one from the residual extraction times corresponding to the target attribute type; alternatively, the first and second electrodes may be,
returning the residual extraction times corresponding to the target attribute type to zero; alternatively, the first and second electrodes may be,
the remaining number of extractions is kept constant.
In an alternative embodiment, processor 41 executes instructions wherein the virtual item is virtual equipment in a game.
The embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the virtual article display method in the above method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The embodiments of the present disclosure also provide a computer program product, where the computer program product carries a program code, and instructions included in the program code may be used to execute the steps of the virtual article display method in the foregoing method embodiments, which may be referred to specifically in the foregoing method embodiments, and are not described herein again.
The computer program product may be implemented by hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, 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.
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 place, or may be distributed on a plurality of 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 of 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, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes 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 method 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.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, 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 skilled 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 embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A virtual article display method, comprising:
acquiring type information of a virtual article to be displayed, and selecting a target attribute combination from a plurality of groups of attribute combinations matched with the type information;
selecting at least one target attribute type from the target attribute combination based on first weight information of each attribute type in the target attribute combination;
distributing an attribute value corresponding to at least one target attribute type to the virtual article according to the attribute value range corresponding to the selected at least one target attribute type;
and displaying the image of the virtual article and the attribute value corresponding to the at least one target attribute type to which the virtual article is assigned.
2. The method of claim 1, wherein the type information comprises multi-level type information of the virtual item; determining a plurality of sets of attribute combinations matching the type information by:
determining multiple groups of attribute combinations matched with the multi-level type information in a mapping table based on the multi-level type information; wherein, in the mapping table, each upper level type information corresponds to a plurality of lower level type information.
3. The method according to claim 1, wherein said selecting a target attribute combination from a plurality of sets of attribute combinations matched with said type information comprises:
and randomly extracting a group of attribute combinations from the plurality of groups of attribute combinations as the target attribute combination based on the second weight information of each group of attribute combinations in the plurality of groups of attribute combinations.
4. The method according to claim 1, wherein the selecting at least one target attribute type from the target attribute combination based on the first weight information of each attribute type comprises:
screening out at least one attribute type to be extracted from each attribute type based on the residual extraction times corresponding to each attribute type;
based on first weight information corresponding to the at least one attribute type to be extracted, randomly extracting the target attribute type from the at least one attribute type to be extracted, and updating the residual extraction times corresponding to the target attribute type;
and repeating the steps until the number of the extracted target attribute types is equal to the preset number.
5. The method according to claim 4, wherein the updating the remaining number of extractions corresponding to the target attribute type comprises:
subtracting one from the residual extraction times corresponding to the target attribute type; alternatively, the first and second electrodes may be,
returning the residual extraction times corresponding to the target attribute type to zero; alternatively, the first and second electrodes may be,
the remaining number of extractions is kept constant.
6. The method of any one of claims 1 to 5, wherein the virtual item is virtual equipment in a game.
7. A virtual good display device, comprising:
the acquisition module is used for acquiring the type information of the virtual article to be displayed and selecting a target attribute combination from a plurality of groups of attribute combinations matched with the type information;
the selecting module is used for selecting at least one target attribute type from the target attribute combination based on the first weight information of each attribute type in the target attribute combination;
the configuration module is used for distributing the attribute value corresponding to the at least one target attribute type to the virtual article according to the attribute value range corresponding to the selected at least one target attribute type;
and the display module is used for displaying the image of the virtual article and the attribute value corresponding to the at least one target attribute type allocated to the virtual article.
8. The apparatus of claim 7, wherein the type information comprises multi-level type information of the virtual item; the selecting module is further configured to:
determining multiple groups of attribute combinations matched with the multi-level type information in a mapping table based on the multi-level type information; wherein, in the mapping table, each upper level type information corresponds to a plurality of lower level type information.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of the virtual article display method according to any one of claims 1 to 6.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, is adapted to carry out the steps of the virtual good presentation method according to any one of claims 1 to 6.
CN202110825399.7A 2021-07-21 2021-07-21 Virtual article display method and device Pending CN113457169A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110825399.7A CN113457169A (en) 2021-07-21 2021-07-21 Virtual article display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110825399.7A CN113457169A (en) 2021-07-21 2021-07-21 Virtual article display method and device

Publications (1)

Publication Number Publication Date
CN113457169A true CN113457169A (en) 2021-10-01

Family

ID=77881567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110825399.7A Pending CN113457169A (en) 2021-07-21 2021-07-21 Virtual article display method and device

Country Status (1)

Country Link
CN (1) CN113457169A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018027151A (en) * 2016-08-16 2018-02-22 株式会社スクウェア・エニックス Battle game program and battle game method
CN108888956A (en) * 2018-06-27 2018-11-27 腾讯科技(深圳)有限公司 Virtual knapsack shows display methods, equipment and the storage medium at interface
US20190201789A1 (en) * 2016-12-06 2019-07-04 Tencent Technology (Shenzhen) Company Limited Method and apparatus for obtaining virtual resource of virtual object
CN111589132A (en) * 2020-04-26 2020-08-28 腾讯科技(深圳)有限公司 Virtual item display method, computer equipment and storage medium
CN111921190A (en) * 2020-08-26 2020-11-13 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for equipping props of virtual objects
CN112138393A (en) * 2020-10-15 2020-12-29 腾讯科技(深圳)有限公司 Configuration method, device, terminal and storage medium of virtual prop
CN112138383A (en) * 2020-10-15 2020-12-29 腾讯科技(深圳)有限公司 Virtual item display method, device, equipment and storage medium
CN112657189A (en) * 2020-12-21 2021-04-16 北京像素软件科技股份有限公司 Data processing method and device, server and storage medium
CN112755539A (en) * 2021-01-21 2021-05-07 北京字跳网络技术有限公司 Interactive display method and device and computer storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018027151A (en) * 2016-08-16 2018-02-22 株式会社スクウェア・エニックス Battle game program and battle game method
US20190201789A1 (en) * 2016-12-06 2019-07-04 Tencent Technology (Shenzhen) Company Limited Method and apparatus for obtaining virtual resource of virtual object
CN108888956A (en) * 2018-06-27 2018-11-27 腾讯科技(深圳)有限公司 Virtual knapsack shows display methods, equipment and the storage medium at interface
CN111589132A (en) * 2020-04-26 2020-08-28 腾讯科技(深圳)有限公司 Virtual item display method, computer equipment and storage medium
CN111921190A (en) * 2020-08-26 2020-11-13 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for equipping props of virtual objects
CN112138393A (en) * 2020-10-15 2020-12-29 腾讯科技(深圳)有限公司 Configuration method, device, terminal and storage medium of virtual prop
CN112138383A (en) * 2020-10-15 2020-12-29 腾讯科技(深圳)有限公司 Virtual item display method, device, equipment and storage medium
CN112657189A (en) * 2020-12-21 2021-04-16 北京像素软件科技股份有限公司 Data processing method and device, server and storage medium
CN112755539A (en) * 2021-01-21 2021-05-07 北京字跳网络技术有限公司 Interactive display method and device and computer storage medium

Similar Documents

Publication Publication Date Title
US20230372822A1 (en) Game control method, game server, and program
JP6284105B1 (en) GAME DEVICE AND PROGRAM
JP5823641B2 (en) Server, game control method, and program
CN111659126B (en) Distribution method, device, server, terminal and storage medium of matching process
CN112843737A (en) Virtual object display method, device, terminal and storage medium
JP2018057963A (en) Game device and program
CN111773695B (en) Display control method and device in game
US20240082723A1 (en) Character interaction control method and apparatus, and computer device and storage medium
CN108031120A (en) A kind of scenario objects control method, device, electronic equipment and storage medium
CN113457169A (en) Virtual article display method and device
JP2020108596A (en) Electronic item lottery system and lottery program
CN108399266A (en) Data pick-up method, apparatus, electronic equipment and computer readable storage medium
CN112381234A (en) Resource distribution method, device, equipment and computer readable storage medium
Normoyle et al. Bayesian clustering of player styles for multiplayer games
CN112237742A (en) Game recommendation method and device, readable storage medium and computer equipment
US20220138244A1 (en) Medium recommendation system, table creation system, medium recommendation device, and table creation method
CN114741456A (en) Information storage method and device
CN113713396A (en) Method and device for displaying checkpoint information, computer equipment and storage medium
CN113038242B (en) Method, device and equipment for determining display position of live broadcast card and storage medium
JP7335739B2 (en) SYSTEM, METHOD AND PROGRAM FOR PROVIDING A GAME
CN105488070A (en) Data processing method and apparatus and electronic device
CN112445978A (en) Electronic book pushing method, electronic equipment and storage medium
CN106991337A (en) The desensitization method and device of a kind of date of birth data
CN110891097B (en) Cross-device user identification method and device
CN107320963B (en) Role attribute storage method and device, storage medium, processor and server

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