CN112090074B - Virtual article control method, device, equipment and medium in application - Google Patents

Virtual article control method, device, equipment and medium in application Download PDF

Info

Publication number
CN112090074B
CN112090074B CN202010985312.8A CN202010985312A CN112090074B CN 112090074 B CN112090074 B CN 112090074B CN 202010985312 A CN202010985312 A CN 202010985312A CN 112090074 B CN112090074 B CN 112090074B
Authority
CN
China
Prior art keywords
target
virtual
article
item
resource level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010985312.8A
Other languages
Chinese (zh)
Other versions
CN112090074A (en
Inventor
时振宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010985312.8A priority Critical patent/CN112090074B/en
Publication of CN112090074A publication Critical patent/CN112090074A/en
Application granted granted Critical
Publication of CN112090074B publication Critical patent/CN112090074B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • 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/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games
    • 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/80Special adaptations for executing a specific game genre or game mode
    • A63F13/843Special adaptations for executing a specific game genre or game mode involving concurrently two or more players on the same game device, e.g. requiring the use of a plurality of controllers or of a specific view of game data for each player
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/807Role playing or strategy games

Landscapes

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

Abstract

The application relates to the technical field of computers, and provides a virtual article control method, a virtual article control device, virtual article control equipment and a virtual article control medium in application. The method comprises the following steps: when a target object is detected to execute a target event in a target page of a target application, acquiring a resource level currently associated with the target object; determining at least one candidate virtual article matched with the resource grade from the virtual articles associated with the target event; the method comprises the steps of determining a target virtual article from at least one candidate virtual article and controlling the target virtual article to be displayed in a target page.

Description

Virtual article control method, device, equipment and medium in application
Technical Field
The application relates to the technical field of computers, in particular to the technical field of games, and provides a method, a device, equipment and a medium for controlling a virtual article in an application.
Background
In order to improve the interest of the game, most games are designed with a link of dropping game props for game characters, namely, a specific game event of a game character can trigger the game character to obtain additional game props.
Currently, the mechanism for dropping Game props in some games, such as a massively Multiplayer Online Role-Playing Game (MMORPG), is: a plurality of game props are preset in the game, and the game props fall down randomly according to game events of game roles. The way of dropping the game item randomly is to essentially establish different probability bases based on different game events, and the probability bases define the probability values of the appearance of each game item, which means that the probability bases are fixed under the condition that the game event performed by the game role is fixed, that is, various game items dropped under the same game event are determined in advance, so that the way of controlling the item to drop is not flexible enough.
Disclosure of Invention
The embodiment of the application provides a virtual article control method, device, equipment and medium in application, which are used for improving the flexibility of controlling virtual articles.
In one aspect, a virtual article control method in an application is provided, including:
when a target object is detected to execute a target event in a target page of a target application, acquiring a resource level currently associated with the target object;
determining at least one candidate virtual article matched with the resource grade from the virtual articles associated with the target event;
and determining a target virtual article from the at least one candidate virtual article, and controlling the target virtual article to be displayed in the target page.
An embodiment of the present application provides a virtual article control device in an application, including:
the acquisition module is used for acquiring the current associated resource level of a target object when the target object is detected to execute a target event in a target page of a target application;
the first determination module is used for determining at least one candidate virtual article matched with the resource level from the virtual articles associated with the target event;
a second determination module, configured to determine a target virtual item from the at least one candidate virtual item;
and the control module is used for controlling the target virtual article to be displayed in the target page.
In a possible embodiment, the resource level currently associated with the target object specifically includes the resource level associated with the target object in each item category; wherein: when the target object is a team member in a target team, the resource level associated with the target object under each item type is determined according to the resource level of each team member in the target team under the corresponding item type.
In a possible embodiment, the resource level associated with the target object in each item category is determined according to the resource level of each team member in the target team in the corresponding item category, and specifically includes:
the associated resource level of the target object under each article type is the highest resource level of each team member under the corresponding article type; or
The resource level associated with the target object under each item type is the result of weighted summation of the resource levels of the team members under the corresponding item type.
In a possible embodiment, the apparatus further includes an update module, where the update module is specifically configured to:
after a target virtual article is determined from the at least one candidate virtual article and the target virtual article is controlled to be displayed in the target page, when a specific event of the target object in the target application is detected, the resource levels of the target object and the article to which the target virtual article belongs are updated; wherein the specific event is related to the target virtual item.
In a possible embodiment, the second determining module is specifically configured to:
determining a probability base matching the at least one candidate virtual item; wherein the probability base comprises the number of each candidate virtual item in the at least one candidate virtual item and the probability of each candidate virtual item;
and generating a random number, and obtaining a target virtual article from the probability library according to the random number.
In a possible embodiment, the control module is specifically configured to:
generating indication information indicating the target virtual article according to the target virtual article, and sending the indication information to a terminal associated with the target application, so that the terminal displays the target virtual article in the target page according to the indication information; or the like, or, alternatively,
and displaying the target virtual article in the target page.
In a possible embodiment, the apparatus further comprises a write module, wherein:
the acquisition module is further used for acquiring transaction information related to the target virtual article; the transaction information comprises an account number associated with the target object, an item identifier of the target virtual item and a selling price corresponding to the target virtual item;
and the writing module is used for writing the transaction information into a block chain.
An embodiment of the present application provides a computer device, including:
at least one processor, and
a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the at least one processor implementing the method of any one of the aspects by executing the instructions stored by the memory.
Embodiments of the present application provide a storage medium storing computer instructions, which when executed on a computer, cause the computer to perform the method according to any one of the aspects.
Due to the adoption of the technical scheme, the embodiment of the application has at least the following technical effects:
in the embodiment of the application, possible candidate virtual articles are matched from virtual articles associated with a target event executed by a target object according to the resource level of the target object, and then the target virtual article is determined from the candidate virtual articles, so that the determined target virtual article is matched with the resource level associated with the target object, that is, the target virtual articles determined by different resource levels are different, so that the virtual articles can be controlled for different target objects, and the flexibility of controlling the virtual articles is improved. And the target virtual objects determined for each target object are related to the resource level of the target virtual object, so that the target objects with higher resource levels are more likely to obtain the target virtual objects with higher values, and the rationality of virtual object distribution is improved. In addition, since different virtual items can be arranged for different resource levels, the number, types, and the like of the virtual items can be enriched.
Drawings
Fig. 1 is an application scenario diagram of a virtual article control method in an application provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of an interaction between a single target client and a server according to an embodiment of the present application;
FIG. 3 is an exemplary diagram of resource levels of a target object provided by an embodiment of the present application;
FIG. 4 is a corresponding relationship between item levels and virtual items provided by embodiments of the present application;
fig. 5A is a first exemplary diagram illustrating a target virtual item at a target client according to an embodiment of the present application;
fig. 5B is a diagram illustrating an example of a target client displaying a target virtual item according to an embodiment of the present application;
FIG. 6 is a diagram illustrating an example process for trading a target virtual item according to an embodiment of the present application;
FIG. 7 is a schematic diagram of interactions between multiple target clients and a server according to an embodiment of the present application;
fig. 8 is a third exemplary diagram illustrating a target virtual item at a target client according to an embodiment of the present application;
FIG. 9 is a schematic diagram of interaction among multiple target clients according to an embodiment of the present application;
fig. 10 is a flowchart of a virtual article control method in an application provided in an embodiment of the present application;
FIG. 11A is a first diagram illustrating an example of determining a candidate prop according to an embodiment of the present disclosure;
FIG. 11B is a second exemplary diagram illustrating a method for determining a candidate prop according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of a virtual article control device in an application provided in an embodiment of the present application;
fig. 13 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to better understand the technical solutions provided by the embodiments of the present application, the following detailed description is made with reference to the drawings and specific embodiments.
To facilitate better understanding of the technical solutions of the present application for those skilled in the art, the following terms related to the present application are introduced.
The application comprises the following steps: the application in the embodiment of the present application refers to an application for implementing various functions, such as a game application, a learning application, and the like, and the learning application refers to an online classroom application, various reading applications, and the like. The application provided in the terminal is called a client, and the client is a carrier for implementing functions of the application, and includes but is not limited to a client installed in the terminal, or a client embedded in a third-party application, or a web page version client, and the like.
Network game: the online game means that game players can interact through a background server to realize the game. The network game can be a single-player game or a multi-player game.
A stand-alone game: corresponding to the network game, the game player can play the game without networking after downloading the game application. The single game can be a multiplayer game or a single game, and in the multiplayer game, all game players can play games with each other through a local area network.
Target object: the target object is an object which is configured in the application and can be controlled by a user, and the target object can perform corresponding behaviors in the application under the control of the user. Taking a game application as an example, a game is configured with a plurality of game characters, and a user can select a favorite game character to play the game. The game character selected by the user is an example of the target object, and after the user selects the game character, various game behaviors such as killing monsters, collecting plants and the like can be performed by using the game character.
Page in application: broadly refers to the interface presented by an application during use of the application. Taking the game application as an example, the game picture in the game process can be regarded as a page, and taking the learning application as an example, the picture presented by the application in a learning process can be regarded as a page. The content displayed by the page may vary, for example, the content presented by the page may vary as the field of view of the target object changes, or the content presented by the page may vary as the application is used.
Virtual object: corresponding to the target object, it means that the object configured in the application is not an object that the user can control. The behavior rules of the virtual object in the application are configured in advance, but the specific behavior of the virtual object in the application may be changed, for example, different behaviors of the virtual object are triggered as the user uses the application, or different behaviors of the virtual object are triggered by the user controlling the target object through the application to execute a specific behavior for the virtual object. For example, the virtual object may be a Non-Player controlled Character (NPC) in a game, and the NPC may attack a game Character according to a game setting, or the NPC may fall down under an attack of a game Character, for example.
Virtual article: refers to an item provided for a target object in an application. The application of virtual articles such as various raw materials, or various formed articles, does not limit the specific form of the article. The virtual articles can be classified into various article types, the article types refer to the major types of the virtual articles, for example, the virtual articles can be classified into herbs, minerals, precious stones, fiber cloth, blood, leather, and the like. Each item class can be subdivided into a plurality of class classes, a class being understood as the class to which the virtual item belongs under the item class, the higher the class, the higher the value of the virtual item, for example, the herb class comprises a first class and a second class, the second class is the daily herb class, for example, achyranthes bidentata, the first class is the rare herb class, for example, ginseng, i.e., the class of achyranthes bidentata is lower than the class of ginseng. For a virtual article belonging to one article category or for a virtual article belonging to the same category class under one article category, the virtual article may be further divided into a plurality of article classes, the higher the article class is, the higher the value of the virtual article is. For example, ginseng can be specifically classified into Leptoradix Ginseng, five-year Ginseng, ten-year Ginseng, and one-hundred-year Ginseng. It should be noted that the value of a virtual item can be understood as the value of the virtual item configured in the application, and the higher the value of the virtual item is, the greater the value of the virtual item is possibly used for the target object, and the configured value can be set by referring to the value of each item in daily life. After obtaining the virtual article, the target object may perform a specific action using the virtual article, for example, the target object may sell the virtual article in an application, or add its own capability using the virtual article.
Resource grade: which may also be referred to as a recognition level, is used to represent a criterion for determining the ability of the target object to acquire a virtual item in the target application. The resource level of the target object may be determined according to various types of behaviors of the target object with respect to the virtual object. Various types of behaviors such as the target object learning the relevant knowledge of the virtual item, trading the virtual item, or using the virtual item, etc. For example, in the case of a game-class application, the longer the duration of a virtual article learned by a target object in a game copy is, the more times the target object uses the virtual article is, and the higher the resource level of the target object for the virtual article is. Taking the learning-class application as an example, the longer the learning time of the target object in the learning-class application, the higher the resource level of the target object for the virtual article. In addition, the target object may be configured with a resource level indicating the capability of the target object for virtual articles of all article types, or the target object may be configured with a resource level corresponding to each of different types of virtual articles, each resource level indicating the capability of the target object for virtual articles of the article type.
Resource level associated with the target object:
(1) when the target object does not belong to the team, the resource level associated with the target object is the resource level of the target object, and if the target object is configured with one resource level under each article type, the resource level associated with the target object comprises the resource level under each article type. For example, the resource level of the target character A under the leather class is Lv2, and the resource level of the target character A under the herb class is Lv 3.
(2) When the target object belongs to the target team, the resource level associated with the target object may be the resource level of the target object, or may also be determined according to the resource levels of the team members in the target team, and if the resource level of each team member is one, the resource level may be weighted according to the resource levels of the team members in the target team, or the resource level of each team member includes the resource level under each item type, the resource level of the target object under each item type may be the result of weighting the resource levels of the team members under the corresponding item type, or the resource level under each item type may be the maximum resource level of the team members under the corresponding item type. For example, target role a belongs to a first team comprising target role a, target role B, and target role C, target role a has a resource level of Lv3, target role B has a resource level of Lv7, and target role C has a resource level of Lv5, and then the resource level associated with target role a may be the maximum resource level Lv 7.
Event: the method refers to any event of a target object in an application, and the target event is some events which may occur in the application by a pre-configured target object. The set target events may be the same, or partially the same, or completely different for different types of applications. In the case of a game application, the target event is, for example, killing a monster or collecting herbs, etc. Taking learning applications as an example, the target event is, for example, the completion of a specific learning.
Target team: the target objects are teams formed in a target application, and the target objects can be controlled by one user or respectively controlled by different users. In the case of a game application, game character a and the other three game characters B, C and D are a team, which is a target team.
The following is a description of the design concept of the embodiments of the present application.
Taking a game as an example, in the related art, when a game character performs a game event at different times and is fixed, the possibility of various items obtained by the game character is fixed, and for different game characters, the possibility of various items obtained by performing the same game event is also fixed, which can be seen that the way of producing the items is not flexible enough.
To this end, the embodiments of the present application provide a virtual article control method in an application, which sets a resource level of a target object in the application, after the target object executes a specific target event, obtaining a virtual article related to the target event, and according to the resource level of the target object, determining a candidate virtual object matched with the resource level from the virtual objects related to the target event, and then determining the target virtual object from the candidate virtual object, that is, the target virtual object determined for the target object is related to the resource level of the target object in addition to the target event, so that, even if the same target event is executed, the resource level of the target object and the finally determined target virtual article are different, so that the flexibility of controlling the virtual article is increased, and the unpredictability of the process of generating the virtual article is increased. And, because the virtual article obtained by different target objects may be different, the flexibility of controlling the virtual article is further improved. And the higher the resource level is, the higher the value of the corresponding matched virtual article is, the difference of each target object for obtaining the virtual article is established, so that each target object can obtain the virtual article matched with the target object, the fairness and the rationality of distributing the virtual article are improved, and the experience of using and applying by a user is further improved. In addition, the output of the virtual object is associated with the resource level growth of the target object, so that elements in the application can be enriched, and the experience of each user in using the application is improved.
Based on the above design concept, an application scenario of the virtual article control method in the application of the embodiment of the present application is described below.
Referring to fig. 1, an application scenario diagram of a virtual article control method in an application is shown, where the scenario diagram includes a plurality of terminals respectively connected to a server through a communication network, each terminal may be loaded with an application client, and a user may log in the server of the application through the client on the terminal. A plurality of terminals 110, such as a first terminal 110-1 and a second terminal 110-2, and a server for an application, such as a plurality of servers 120, wherein the plurality of servers 120 may be servers of one application or servers of different applications. The application clients that can be loaded on the terminal are, for example, a first target client 111-1 loaded in the first terminal 110-1 and a second target client 111-2 loaded in the second terminal 110-2. In this embodiment, the target client 111 is a client corresponding to a target application, and the server 120 is a background server corresponding to the target application. The terminals and the server 120 may communicate with each other through a communication network, which may be any type of network, and the present application is not limited thereto. In fig. 1, two terminals 110 and two servers 120 are taken as examples, and the number of the terminals and the servers is not limited in practice.
The terminal is, for example, a mobile phone, a tablet computer, a personal computer, a smart television, a game device, or a vehicle-mounted terminal. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and a big data and artificial intelligence platform.
In different scenarios, the interaction process between the devices in fig. 1 may be different, and the following is described separately:
in a first possible scenario: the target clients 111 need to interact with each other through the server 120, and this case can be subdivided into a case where only one target client or a plurality of target clients are included, which is described in the following cases.
The first sub-case:
when a user of the terminal 110 uses the target client 111 of the target application, the target client 111 corresponding to the user interacts with the server separately, the server 120 determines whether the virtual article needs to be controlled according to the relevant operation performed by the user on the target client 111, and when the virtual article needs to be controlled, the target client 111 is controlled to display corresponding content.
For example, the server 120 detects whether the target object performs a particular target event on the target page in the first target client 111-1. If the target event is detected, the server 120 determines a target virtual article for the target object, and issues indication information to the first target client 111-1. The indication information is used for the first target client 111-1 to display the target virtual article on a target page in the target application, so that the user can view the target virtual article through the first target client 111-1, or further perform subsequent actions on the target virtual article by controlling the target object, and the like. The manner in which the target virtual article is controlled is described below.
The second sub-case:
when each target client 111 can interact through the server, the server 120 determines whether the virtual article needs to be controlled according to the related operation of the user on the target client 111, and when the virtual article needs to be controlled, each target client 111 is controlled to display corresponding content.
For example, the server 120 detects whether a target object performs a specific target event on a target page of the first target client 111-1, and if the target event is detected, the server 120 determines a target virtual article for the target object and issues indication information to the first target client 111-1 and the second target client 111-2. The indication information is used for the target client 111 to display the target virtual item on a target page in the target application, so that the user can view the target virtual item through each target client 111, or further perform subsequent actions on the target virtual item by controlling the target object, and the like. The manner in which the target virtual article is controlled is described below.
In the first sub-case and the second sub-case, if the server 120 is embodied as a plurality of servers, the plurality of servers may share data through the blockchain, and each server corresponds to a node in the blockchain. Each server can retrieve the data sent by the corresponding target client 111 and write the data into the blockchain so that the other servers can synchronize the data.
For example, a user may perform a transaction operation on an obtained target virtual article, the first target client 111-1 obtains transaction information in response to the transaction operation, and reports the transaction information to the server 120, and after receiving the transaction information, the server 120 writes the transaction information into the blockchain, so that other servers can synchronize the transaction information from the blockchain.
In a second possible scenario, the target clients 111 do not need to interact with each other via the server 120, and the following description is given:
the target client 111 determines whether the virtual article needs to be controlled according to the related operation of the user on the target client 111, and when the virtual article needs to be controlled, the target client 111 is controlled to display corresponding content and to issue the corresponding display content to other clients 111.
For example, the first target client 111-1 detects whether a target event exists in response to various types of operations by the user. If the target event is detected, the target virtual item is determined from the virtual items associated with the target event and is displayed in the first target client 111-1.
Further, if the user is grouped with other users, the first target client 111-1 may also share the target virtual item with the second target client 111-2, so that the user corresponding to the second target client 111-2 can also view the target virtual item.
The virtual article control method in the embodiment of the application can be applied to various applications including but not limited to game applications and learning applications. The following describes a virtual article control method according to an embodiment of the present application, based on a first sub-situation in the first possible application scenario:
referring to fig. 2, a diagram of an interaction process between target client 111 and server 120 is shown, and is described below with reference to fig. 2:
s201, the target client 111 generates a data request of the target object according to the first operation of the user.
When a user wants to use a target application, a start operation may be performed, the target client 111 starts in response to the start operation, and the target client 111 automatically logs in the target client 111 according to the cached account information or logs in the target application according to the account information input by the user, and establishes communication with the server 120. The account information includes an application account for the user to log in the target application and a password for logging in the target application.
After logging in the target client 111, the target client 111 determines a target object associated with the user according to a selection operation of the user on a plurality of target objects or a target object selected by the user and cached before. The user may perform a first operation on the target object, where the first operation may be any operation, for example, a click operation for controlling the target object to attack, or a click operation for controlling the target object to collect a plant. Target client 111 generates a data request in response to the first operation. The data request is used for requesting feedback of relevant data corresponding to the first operation, and the data request may carry the application account, operation information corresponding to the first operation, and the like.
S202, the target client 111 sends the data request to the server 120.
After receiving the data request, the server 120 parses the application account and the operation information from the data request. The server 120 may determine, according to the operation information, a behavior of the target object to obtain related data corresponding to the data request, where the related data refers to data related to the target object, and specifically, for example, a display state of the target object in the target application, or a display state of a virtual object targeted by the target object.
Meanwhile, the server 120 may determine whether the target object performs the target event in the target page of the target application. Whether the target event is executed or not may be understood as whether the operation information of the target object triggers a preset target event or not, for example, whether a user kills a monster through a killing operation of the target object. And if the target object does not trigger the target event in the target application, feeding back data triggered by the operation information to the target client 111 so that the target client 111 receives and displays the related data of the target object. If the target object is determined to execute the target event in the target application, S203 is executed to obtain the resource level of the target object.
S203, if the server 120 determines that the target object executes the target event in the target application, the server acquires the resource level of the target object.
The server 120 may obtain the resource level of the target object from the pre-stored information of the application account according to the application account. The meaning of the resource level can refer to the content discussed above, and is not described herein again.
If a resource level is configured for a target object, then server 120 is able to obtain a resource level for the target object. If one resource level is configured for each item category, the server 120 may obtain the resource level of the target object for each item category.
As an embodiment, if the user controls multiple target objects in the target application, the resource level may be a resource level corresponding to the multiple target objects under the application account, that is, a resource level shared by the multiple target objects.
For example, the resource level of the target object obtained by the server 120 is specifically as shown in fig. 3, and the resource level of the target object specifically includes: the level of the herbal resources is two-level (level 2, Lv2), the level of the mineral resources is two-level (level 2, Lv2) and the level of the leather resources is not learned. The unlearned representation may represent Lv 0.
S204, the server 120 determines a virtual item associated with the target event.
The server 120 prestores virtual articles corresponding to various target events, and after determining a target event corresponding to a target object, may determine a virtual article associated with the target event. The categories of virtual items associated with any two target events may be identical, or partially identical, or completely different.
The target event is specifically corresponding to which virtual articles can be set at will, or can be set according to the output of the virtual object corresponding to the target event. The outcome of a virtual object may be understood as the item to which the virtual object attribute is associated. The meaning of the virtual object can refer to the content discussed in the foregoing, and is not described in detail here.
When the virtual item associated with the target event is set according to the output of the virtual object corresponding to the target event, the server 120 may first determine the virtual object corresponding to the target event, determine the virtual item that the virtual object can output, and determine the virtual item that the virtual object can output as the virtual item associated with the target event. And if one target event is associated with a plurality of virtual objects, taking the virtual article associated with each virtual object in the associated plurality of virtual objects as the virtual article associated with the target event.
Specifically, when the server 120 determines a target event executed by a target object, the server 120 may first determine each item type corresponding to a virtual object, where each item type includes at least one virtual item, and the server 120 determines, according to the virtual item associated with the virtual object, the virtual item included in each item type associated with the virtual object as the virtual item associated with the target event. The virtual items included in each item category include all virtual items under that item category.
For example, a category of items to which a virtual object is associated is represented by, for example, the following table 1:
TABLE 1
Virtual object name Kind of article
Monster A Fiber fabrics, minerals, and leathers
Monster B Minerals and leathers
Plant and method for producing the same Herbs and food materials
Referring to table 1, for example, when the virtual object related to the target object is a monster a, the article types related to the virtual object are specifically fiber cloth, ore, and leather.
The sequence of steps S203 and S204 may be arbitrary.
S205, the server 120 determines a candidate virtual item matching the resource level from the virtual items associated with the target event.
Since the virtual article associated with the target event is more than one virtual article, in this embodiment of the application, the server 120 may further screen out a candidate virtual article matching the resource level from the virtual articles associated with the target event according to the resource level of the target object, where specific matching manners may be various, and the following description is provided as an example.
The first method is as follows:
when each item type is arranged in a plurality of type ranks, the server 120 specifies a type rank matching the resource rank for each item type, and specifies a virtual item in the type rank as a candidate virtual item.
The server 120 may pre-store a first matching relationship between different resource levels and category levels, and after obtaining the resource level of the target object, the server 120 may determine a category level matching the resource level from the first matching relationship according to the resource level. And if the target object is associated with a resource grade, respectively matching a category grade under each article type according to the resource grade, and determining the virtual article under the category grade corresponding to each matched article type as a candidate virtual article. If the resource level associated with the target object includes a resource level for each article type, the server 120 matches a corresponding type level for each article type according to the resource level for each article type, and determines a virtual article for each article type in the matched type level as a candidate virtual article.
For example, a first matching relationship between different resource classes and category classes is illustrated in table 2 below:
TABLE 2
Resource ranking Class level
Not learning Class four
Lv1 Class three grade
Lv2 Class II grade
Lv3 Class one
Referring to table 1, if the server 120 obtains the resource level of the target object as Lv2, it determines the category level matching the resource level as Lv2 as the first category level according to the first matching relationship in table 2, and the server 120 determines all the virtual items under the first category level as the candidate virtual items.
For example, the first category class includes a rare herb class, and the server 120 thus determines that each herb under the rare herb class is determined as a candidate virtual item.
In the first embodiment, the matching category class is determined according to the resource class, and the virtual goods at the category class are determined as the candidate virtual goods, so that the candidate virtual goods selected for the target object are different when the resource class is different. In this way, the candidate virtual article having a higher category level can be matched to the target object having a higher resource level.
The second method comprises the following steps:
when a plurality of item classes are allocated to one item class, the server 120 determines an item class matching the resource class for each item class, and sets all virtual items at the item class as candidate virtual items.
Specifically, if the target object corresponds to a resource level, the resource level can be used to match the item level of each item type. If the resource level of the target object includes the resource level under each article type, the article levels under the article types can be respectively matched according to the resource level under each article type, so as to obtain the candidate virtual article.
For example, the server 120 may pre-store a second matching relationship between the resource level and the item level, and after obtaining the resource level of the target object, the server 120 may determine the item level matching the resource level from the second matching relationship, and determine all virtual items under the item level as candidate virtual items.
For example, please refer to a second matching relationship between the resource level and the item level shown in the following table 3:
TABLE 3
Resource ranking Item grade
Not learning Fourth grade
Lv1 Third grade
Lv2 Second grade
Lv3 First grade
Referring to table 3 above, the server 120 obtains the resource level Lv3 associated with the target object, and determines the item level matching the resource level Lv3 as the first level.
For example, the server 120 may store the correspondence between the item level and the virtual item as shown in fig. 4, the server 120 determines the item level matching the resource level of the target object as the first level, and the server 120 may determine the century people corresponding to the first level as the candidate virtual item according to the correspondence as shown in fig. 4.
In the second embodiment, the item class matching the resource class is determined according to the resource class, and the virtual item in the item class is determined as the candidate virtual item. In addition, a candidate virtual article with a higher article grade can be matched for a target object with a higher resource grade.
The third method comprises the following steps:
combining the first mode and the second mode to obtain a candidate virtual article:
specifically, the server 120 determines a category rank matching the resource rank for each item category, determines an item rank matching the resource rank for the category rank, and determines a virtual item for the matched item rank as a candidate virtual item. Or the server 120 may determine the item class matching the resource class for each item class, and then determine the class matching the resource class from the item class, thereby determining the virtual item at the matching class as the candidate virtual item.
The manner of determining the category level matching the resource level and determining the item level matching the resource level may refer to the content discussed above, and is not described herein again.
For example, the server 120 determines that the resource level of the target object is Lv2, and determines that the category level matching the resource level is the first category level. The first category class includes rare herbs, including, for example, ginseng. And determining the grade of the article matched with the resource grade to be three grades under the first category grade, wherein the article with the third grade corresponds to ten-year ginseng, and the candidate virtual article specifically comprises ten-year ginseng.
In the third mode, the candidate virtual articles whose category level and article level are both matched with the resource level can be screened out, so that in the case of different resource levels, the article levels and the category levels of the candidate virtual articles selected for the target object are both different, and the difference of virtual articles allocated between different target objects is established. Moreover, the candidate virtual article with higher article grade and type grade can be matched for the target object with higher resource grade.
As an example, in matching the candidate virtual item, the higher the resource level, the higher the value of the determined candidate virtual item. The values can be referred to the above discussion and will not be described in detail here. In the embodiment of the application, if the resource level of the target role is higher, the possibility that the target role is matched with a virtual article with higher value is higher, and the rationality of virtual article allocation is favorably improved.
S206, the server 120 determines a target virtual item from the candidate virtual items.
The server 120 may arbitrarily select one or more of the candidate virtual items as the target virtual item.
Alternatively, the server 120 determines the target virtual item from the candidate virtual items based on the probability library.
The probability base may be set for different target events, that is, one target event corresponds to one probability base. The probability library includes probabilities of various virtual items that may occur at the target event. Further, the probability library may also include the number of virtual items.
Specifically, the server 120 may have a probability library corresponding to a plurality of article grades, and after obtaining the candidate virtual article, the server 120 may determine the probability library corresponding to each article grade of the candidate virtual article and generate the random number. And selecting a target virtual article matched with the random number from the probability base based on the random number. Specifically, the virtual article corresponding to the probability interval in which the random number falls may be determined as the target virtual article.
The server 120 may also randomly generate a plurality of random numbers, and determine the virtual item corresponding to each random number as the target virtual item.
It should be noted that the probability of the occurrence of each virtual article in the probability library is uncertain, and thus the target virtual article may not be randomly drawn, or one or more target virtual articles may be randomly drawn, and the number and the type of the target virtual articles are not limited.
Further, since the probability base may include the number of each virtual item, the number of the target virtual item may be obtained at the same time as the target virtual item is obtained.
For example, the candidate virtual items include A, B and C, and the server 120 stores a plurality of probability libraries as shown in Table 4 below:
TABLE 4
Item grade Probability library
A(Lv1)+B(Lv2)+C(Lv1) A (0%) + B (0%) + C (100%, quantity 1)
A(Lv1)+B(Lv1)+C(Lv1) A (0%) + B (100%, amount 1) + C (0%)
A(Lv2)+B(Lv2)+C(Lv2) A (50%, amount 1) + B (50%, amount 1) + C (0%)
A(Lv1)+B(Lv2)+C(Lv2) A (40%, amount 1) + B (30%, amount 1) + C (30%)
For example, the server 120 determines A, B and the item level where C matches the resource level as Lv1, Lv2, Lv1, respectively, the server 120 generates a random number of 60, the 60 being greater than 0 and less than 100, thus determining the target virtual item as C.
S207, the server 120 generates instruction information according to the target virtual item.
After obtaining the target virtual article, the server 120 obtains an article identifier of the target virtual article, and carries the article identifier in the indication information. The item identifier may be used to indicate the target virtual item, the number of the target virtual items, and the like, or the server 120 carries display data required for displaying the target virtual item in the indication information, where the display data is, for example, a video or a picture of the target virtual item. The indication information is used for indicating the generation of the target virtual article.
S208, the server 120 sends the indication information to the target client 111.
S209, the target client 111 displays the target virtual item.
When the indication information carries an article identifier, the target client 111 may obtain display data of the target virtual article from pre-stored data by using the article identifier, so as to display the target virtual article according to the obtained display data. When the indication information includes display data, the target client 111 may present the target virtual item according to the indication information.
Further, the target client 111 may present the target virtual item in a target page corresponding to the target object executing the target event. The target virtual article may be displayed within a preset range of a virtual object targeted by the target object, or within a preset range of the target object. Or the target client 111 may present the target virtual item in a sub-page associated with the target page, for example, in a floating window, and prompt the user to obtain the target virtual item.
Further, after the target client 111 displays the target virtual article, the user performs an obtaining operation on the target virtual article, for example, clicks a pickup operation in the target page, and the target client 111 belongs the target virtual article to the target object in response to the obtaining operation, and may also display the target virtual article in a configuration article of the target object. Alternatively, the target client 111 automatically belongs the target virtual item to the target object after displaying the target virtual item.
For example, referring to the exemplary diagram of the target virtual item shown by the target client 111 shown in fig. 5A, the target virtual item is specifically the iron ore 510 shown in fig. 5A, and the target client 111 displays the iron ore 510 in the preset range of the target object for the user to view.
After the resource level of the target object is higher, the server 120 determines a target virtual object for the target object after the target object executes the same game event, specifically, the target virtual object is a yellow ore 520 shown in fig. 5B, and similarly, the target client 111 displays the yellow ore 520 within a preset range of the target object.
Target object after obtaining the target virtual item, the user may perform a specific event on the target virtual item by controlling the target object. Such as trading a target virtual item, or using a target virtual item, etc. The trading target virtual item is, for example, selling the target virtual item, exchanging the target virtual item with another target object, or the like. At this time, the server 120 may update the resource level of the target object according to the specific event.
In the embodiment of the present application, taking a specific event as an example of selling a target virtual article, an example of a process of updating a resource level of a target object by the server 120 is described as follows:
s210, the target client 111 generates a transaction request according to the second operation of the user.
When the user wants to trade the target virtual item, a second operation may be performed on the target virtual item, where the second operation is used to trade the target virtual item, for example, the user double-clicks on the virtual item to sell the target virtual item, which is equivalent to performing the second operation, or, for example, the user performs an operation to confirm that the transaction is performed. The target client 111 determines that the user wants to sell the target virtual item according to the second operation, and therefore may generate a transaction request, where the transaction request is used to request to sell the target virtual item, and the transaction request carries an application account number for logging in the target client 111 and an item identifier of the target virtual item. The article identification can refer to the foregoing content, and is not described in detail herein.
S211, the target client 111 sends the transaction request to the server 120.
S212, the server 120 generates a transaction result.
After obtaining the transaction request, the server 120 determines the selling price of the target virtual item, and generates a transaction result according to the selling price. The transaction result specifically includes a selling price.
Further, the server 120 may obtain transaction information and write the transaction information into the blockchain so that other servers may synchronize the transaction information. The transaction information refers to transaction information generated in the transaction process, and the transaction information comprises an application account number, an article identifier of a target virtual article and a selling price of the target virtual article.
S213, the server 120 updates the resource level of the target object.
After the server 120 receives the transaction request, it determines that the user performs a specific event with the target virtual object, and at this time, the server 120 may update the resource level of the target object according to the specific event. Updating the resource level may be, for example, increasing the resource level for the category of the item to which the target virtual item belongs. When the specific event includes a plurality of different specific events, the size of the resource level that each specific event may correspond to an increase or decrease may be different.
Since the target virtual item obtained by the target object may include multiple item types, the server 120 may update the resource level of the item type to which the target virtual item corresponding to the specific event belongs according to the target virtual item corresponding to the specific event, so as to achieve more targeted update of the resource level.
Here, the order of S212 and S213 may be arbitrary.
S214, the server 120 sends the transaction result and the updated resource level to the target client 111.
S215, the target client 111 displays the transaction result and the updated resource level.
After receiving the transaction result and the updated resource level, the target client can display the target transaction result and the updated resource level in time.
For example, referring to fig. 6, which is an exemplary diagram of a process of selling a target virtual item, referring to an exemplary diagram of an interface shown in a in fig. 6, a user clicks the target virtual item shown in a in fig. 6, and according to the click operation, the target client 111 displays a prompt interface shown in a in fig. 6. The prompting interface is used for prompting the user whether to sell the target virtual item, and specifically includes a first button 610 for confirming that the target virtual item is sold and a second button for confirming that the target virtual item is not sold. The target client 111 generates a transaction request in response to the user's clicking operation on the first button 610, and transmits the transaction request to the server 120.
After the target client 111 receives the transaction result and the updated resource level sent by the server 120, an interface shown in b in fig. 6 is displayed, and the interface includes a transaction result 630 and an updated resource level 620. The transaction result 630 represents the selling price of the target virtual item sold by the target object, specifically, "sell yellow ore, get 10 coins" as shown in b in fig. 6. It can be seen from a in fig. 6 to b in fig. 6 that the resource level of the target object is updated from Lv2 to Lv 3.
As an example, S209-S215 are optional components.
The virtual article control method according to the embodiment of the present application is described below based on the second sub-case discussed in fig. 1:
referring to fig. 7, a diagram of an interaction process between a plurality of target clients 111 and a server 120 is shown, and is described below with reference to fig. 7:
s701, the first target client 111-1 generates a data request of a target object according to a first operation of a user.
The content of the first operation, the data request, may refer to the content discussed above, and is not described herein again.
S702, the first target client 111-1 sends the data request to the server 120.
The server 120 determines whether the target object has a target event after obtaining the data request. And if the target event does not exist, generating data corresponding to the data request, and returning the data to the first target client 111-1 and the second target client 111-2, so that the first target client 111-1 and the second target client 111-2 update the display data in time. If the server 120 detects the target event, S703 is executed, that is, the resource level associated with the target object is obtained.
S703, if the server 120 determines that the target object has the target event, the server acquires a resource level associated with the target object.
The meaning of the target object can refer to the content discussed in the foregoing, and is not described in detail here. The server 120 obtains the resource level associated with the target object if it is determined that the target object has the target event.
Server 120 may determine the resource level of the target object as the resource level associated with the target object.
Alternatively, the server 120 may obtain the resource level associated with the target object according to the resource levels of the members of the target team in which the target object is located.
Specifically, when the target object belongs to a target team, the maximum resource level in the target team may be determined as the resource level associated with the target object, or the minimum resource level in the target team may be determined as the resource level associated with the target object, or a result of weighted summation of the resource levels of the team members in the target team may be determined as the resource level associated with the target object.
As an embodiment, when summing the weights of the resource levels of the team members, the weight corresponding to the resource level of each team member may be the same or different, for example, the weight corresponding to the resource level of the target object is greater than the weight corresponding to the resource level of other team members.
When the resource level of the target object is determined by using the resource level of each team member, how the server 120 obtains the resource level of the team members other than the target object is also involved, for example, the server 120 may request to obtain the resource level from each target client 111, or the server 120 prestores the resource level corresponding to each team member.
In the embodiment of the application, when the target object and other team members form a team to use the target application, the resource levels of the other team members are considered, so that more reasonable virtual articles can be determined for the target team subsequently.
For example, the correspondence between each team member in the target team and its resource level is shown in table 4 below:
TABLE 5
Team member Resource ranking
Target object Lv2
Team Member 1 Lv3
Team Member 2 Lv1
Team Member 3 Lv2
For example, the server 120 performs a weighted summation of the resource levels of the team members in table 5, which is specifically expressed as: 0.25 × (2+3+1+2) ═ 2, the server 120 determines the result of the weighted sum as the resource level associated with the target object, i.e., Lv 2.
S704, the server 120 determines a virtual item associated with the target event.
The content of the virtual object associated with the target event and the virtual object determined by the server 120 to be associated with the target event may refer to the content discussed above, and will not be described herein again.
S705, the server 120 determines a virtual item matching the resource level from the virtual items associated with the target event.
The resource level here is the resource level corresponding to the target object determined in S703. The manner of determining the virtual item matching the resource level can refer to the foregoing discussion, and is not described herein.
S706, the server 120 determines a target virtual item from the candidate virtual items.
The server 120 may refer to the foregoing discussion for determining the target virtual item from the candidate virtual items, and details thereof are not repeated here.
S707, the server 120 generates instruction information according to the target virtual item.
The content of the indication information and the manner of generating the indication information may refer to the content discussed above, and are not described herein again.
S708, the server 120 sends the indication information to each target client 111.
After obtaining the indication information, the server 120 may send the indication information to each target client 111, for example, may send the indication information to the first target client 111-1 and the second target client 111-2.
And S709, displaying the target virtual articles by each target client.
After receiving the target virtual goods, each target client displays the target virtual goods according to the indication information, so that users corresponding to each target client can view the target virtual goods.
S710, the first target client 111-1 generates a transaction request according to the second operation of the user.
The content of the second operation, the transaction request, can refer to the content discussed above, and is not described herein again.
S711, the first target client 111-1 sends the transaction request to the server 120.
S712, the server 120 generates a transaction result.
The transaction result and the manner of generating the transaction result may refer to the content discussed above, and are not described herein again.
S713, the server 120 updates the resource level of the target object.
The content of the server 120 updating the resource level can refer to the content discussed above, and is not described here.
S714, the server 120 may send the transaction result and the updated resource level to the first target client.
S715, the first target client 111-1 displays the transaction result and the updated resource level.
The first target client 111-1 may refer to the foregoing discussion for showing the transaction result and the updated resource level, and details thereof are not repeated herein.
It should be noted that S710 to S715 are optional portions.
For example, referring to fig. 8, an interface diagram of a target virtual article displayed for the first target client 111-1 is shown, where the target object is a game character shown by ID, the object shown by ID2 and the target object both belong to a target team, the resource level of the target object shown by ID1 is Lv2, the resource level shown by ID2 is Lv4, and the server 120 determines that the resource level matched with the target object is Lv 4. The server 120 determines the target virtual object according to the resource level and the above process, and the target virtual object is specifically the century ginseng 800 shown in fig. 8.
Based on the second possible application scenario, a virtual article control method related to the embodiment of the present application is introduced as follows:
referring to fig. 9, a process diagram of interaction among the target clients 111 is shown, and the following description is made of interaction between the first target client 111-1 and the second target client 111-2:
s901, the first target client 111-1 may determine whether a target event exists according to a first operation of a user.
The first operation can refer to the content discussed above, and is not described here. The first target client 111-1 determines the behavior of the target object after responding to the first operation, updates the state of the target object, and the like. At the same time, first target client 111-1 may determine whether a target event exists. And if the target event does not exist, directly displaying the updated state of the target object and the like. If the target event exists, S902 is executed, that is, the resource level associated with the target object is obtained.
S902, if the first target client 111-1 determines that the target object has the target event, the resource level associated with the target object is obtained.
The resource level associated with the target object may be the same as that discussed above, and will not be described herein. Which may relate to how the first target client 111-1 obtains the corresponding resource level in the target team other than the target object, for example, the first target client 111-1 may request the target client 111 corresponding to each team member to obtain the corresponding resource level.
S903, the first target client 111-1 determines a virtual article associated with the target event.
The manner in which the first target client determines the virtual item associated with the target event may refer to the foregoing discussion, and is not described herein again.
S904, the first target client 111-1 determines a candidate virtual item matching the resource level from the virtual items associated with the target event.
The candidate virtual object and the manner of determining the candidate virtual object may refer to the foregoing discussion, and are not described herein again.
S905, the first target client 111-1 determines the target virtual article from the candidate virtual articles.
The first target client 111-1 may select any one or more seating target virtual items from the candidate virtual items.
Or the first target client 111-1 may determine the target virtual article according to a pre-stored probability library. The probability base and the manner of determining the target virtual item may refer to the foregoing discussion, and are not described in detail herein.
S906, the first target client 111-1 generates indication information according to the target virtual article.
After the first target client determines the target virtual item, the indication information may be generated. The indication information is used for indicating other target clients to synchronously display the target virtual article.
S907, the first target client 111-1 sends the indication information to the second target client 111-2.
And S908, displaying the target virtual goods by each target client.
The sequence of the steps of the first target client 111-1 displaying the target virtual article and S907 may be arbitrary, and is not limited herein. And after receiving the indication information, the second target client 111-2 displays the target virtual article.
It should be noted that although the first target client 111-1 issues the indication information to each target client 111, since the currently displayed pages of each target client are different, even if some target clients 111 receive the indication information, the user cannot view the target virtual item from the page of the target client 111, and when the user adjusts the visual field, the user may view the target virtual item displayed by the target client 111.
Further, when the target object belongs to the target team, the target virtual article may belong to the target object by default, or the first target client 111-1 obtains the target virtual article in response to the obtaining operation of the user, or other target clients obtain the target virtual article in response to the obtaining operation of their corresponding users. That is, which team member of the target team the target virtual item ultimately belongs to needs to be determined according to the setting.
S909, the first target client 111-1 generates transaction information according to the second operation of the user.
If the target object obtains the target virtual object, the user may control the target object to perform a specific event on the target virtual object, and the content of the specific event may refer to the content discussed above, which is not described herein again. For example, the transaction is performed on the target virtual article, and the contents of the second operation and the transaction information involved in the transaction process may refer to the contents discussed above, which are not described herein again.
S910, the first target client 111-1 updates the resource level of the target object.
The manner of updating the resource level of the target object can refer to the content discussed above, and is not described herein again.
S911, the first target client 111-1 displays the transaction result and the updated resource level.
It should be noted that S909 to S911 are optional steps.
It should be noted that fig. 9 described above is an example for interaction between multiple target clients 111. If there is only one target client, S907 to S908 need not be performed.
The embodiment shown in fig. 9 is applicable to a case where multiple target clients 111 do not need to interact with each other via a server, for example, may be applicable to a stand-alone game scenario, in which the target clients 111 directly determine target virtual articles matching with resource levels according to the resource levels of the target objects, so that the determined target virtual articles are shared with other target clients, and not only the target virtual articles matching with the resource levels of the target objects can be provided for the target objects, but also assistance of the server is not needed.
Based on the first possible application scenario, taking the target application as the game application as an example, the following describes a process of the server 120 executing the virtual article control method according to the embodiment of the present application.
Referring to fig. 10, a flowchart of a virtual article control method in an application is shown, where the flowchart specifically includes:
s1001, the server 120 detects that the game character executes the target event, and determines the item type associated with the virtual object of the target event.
Wherein, a game character is an example of the target object in the foregoing. The contents of the target event, the virtual object of the target event, and the item type associated with the virtual object may refer to the contents discussed above, and are not described herein again.
S1002, the server 120 acquires resource levels of the game character for each item type.
Obtaining the resource level for each item type can refer to the above discussion, and will not be described herein.
S1003, determining candidate props matched with the resource grades under each article type.
The prop is an example of a virtual item as discussed above. The manner of determining candidate items matching the resource level for each item type can be found in the discussion above, and will not be described in detail here.
And S1004, determining the target prop from the candidate props.
The manner of determining the target prop may refer to the manner of determining the target virtual item discussed above, and will not be described herein again.
For example, referring to FIG. 11A, a schematic diagram illustrating a process for determining candidate props is shown, and referring to FIG. 11A, after a user controls a game character E to beat a monster, the server 120 determines the item type associated with the monster to include fiber cloth, minerals and leather. The server 120 determines that the resource level of the game role E corresponding to the fiber cloth class is 3 levels, the resource level of the game role E corresponding to the mineral class is not learned, the resource level of the game role E corresponding to the leather class is 1 level, the server 120 determines that the candidate virtual article matched with the 3 levels from the fiber cloth class is silk, determines that the candidate virtual article matched with the not-learned class from the mineral class is the chalcopyrite, and determines that the candidate virtual article matched with the 1 level from the leather class is rawhide.
For example, referring to FIG. 11B, a schematic diagram illustrating a process for determining candidate props is shown, and referring specifically to FIG. 11B, after a user controls a game character F to beat a monster, the server 120 determines that the category of items associated with the monster includes fiber cloth, minerals and leather. The server 120 respectively determines that the resource level of the game role F corresponding to the fiber cloth class is 1 level, the resource level of the game role B corresponding to the mineral class is 5 levels, the resource level of the game role F corresponding to the leather class is not learned, and then the server 120 determines that the candidate virtual article matched with the 1 level from the fiber cloth class is silk, determines that the candidate virtual article matched with the 5 level from the mineral class is chalcopyrite, and determines that the candidate virtual article matched with the not-learned level from the leather class is broken leather.
Based on the same inventive concept, an embodiment of the present application provides a virtual article control apparatus in an application, please refer to fig. 12, the apparatus includes:
an obtaining module 1201, configured to obtain a resource level currently associated with a target object when it is detected that the target object executes a target event in a target page of a target application;
a first determining module 1202, configured to determine, from the virtual articles associated with the target event, at least one candidate virtual article matching the resource level;
a second determining module 1203, configured to determine a target virtual item from the at least one candidate virtual item;
and a control module 1204, configured to control display of the target virtual item in the target page.
In one possible embodiment, the resource level with which the target object is currently associated includes the resource level with which the target object is associated with each item category; the first determining module 1202 is specifically configured to: determining various article types corresponding to the virtual object according to the virtual object associated with the target event, wherein the various article types are divided into different type grades, and each article type comprises at least one virtual article; matching a category grade matched with the resource grade of the target object under each article category according to each article category; and determining the virtual article associated with the matched category grade as at least one candidate virtual article.
In one possible embodiment, the virtual items associated with the target event are divided into different item levels; the resource level currently associated with the target object comprises the associated resource level of the target object under each item type; the first determining module 1202 is specifically configured to: matching an article grade matched with the resource grade of the target object under each article type according to each article type; and determining the virtual article associated with the matched article grade as at least one candidate virtual article.
In a possible embodiment, the first determining module 1202 is further configured to: before determining the virtual articles related to the matched article grades as at least one candidate virtual article, determining various article types corresponding to the virtual objects according to the virtual objects related to the target events, wherein each article type comprises at least one virtual article; and determining the virtual articles included in the article types corresponding to the virtual objects as the virtual articles related to the target events.
In a possible embodiment, the resource level currently associated with the target object specifically includes the resource level associated with the target object under each item category; wherein: when the target object is a team member in the target team, the resource level associated with the target object under each item category is determined according to the resource level of each team member in the target team under the corresponding item category.
In a possible embodiment, the resource level associated with the target object in each item category is determined according to the resource level of each team member in the target team in the corresponding item category, and specifically includes: the associated resource level of the target object under each article type is the highest resource level of each team member under the corresponding article type; or
The associated resource level of the target object under each item type is the result of weighted summation of the resource levels of the team members under the corresponding item type.
In a possible embodiment, the apparatus further includes an updating module 1205, where the updating module 1205 is specifically configured to: after a target virtual article is determined from at least one candidate virtual article and is controlled to be displayed in a target page, when a specific event of a target object in a target application is detected, resource levels of the target object and the target virtual article in the article types are updated; wherein the specific event is associated with the target virtual item.
In a possible embodiment, the second determining module 1203 is specifically configured to: determining a probability base matched with at least one candidate virtual article; the probability library comprises the number of each candidate virtual article in at least one candidate virtual article and the occurrence probability of each candidate virtual article; and generating a random number, and obtaining the target virtual article from the probability library according to the random number.
In one possible embodiment, the control module 1204 is specifically configured to: generating indication information indicating the target virtual article according to the target virtual article, and sending the indication information to a terminal associated with the target application, so that the terminal displays the target virtual article in a target page according to the indication information; or, the target virtual item is displayed in the target page.
In one possible embodiment, the apparatus further comprises a write module 1206, wherein:
the obtaining module 1201 is further configured to obtain transaction information associated with the target virtual article; the transaction information comprises an account number associated with the target object, an item identifier of the target virtual item and a selling price corresponding to the target virtual item;
a writing module 1206 is configured to write the transaction information into the block chain.
It should be noted that the apparatus shown in fig. 12 may also implement the virtual article control method in any application discussed above, and details are not described here.
Based on the same inventive concept, an embodiment of the present application provides a computer device 1300, please refer to fig. 13, which includes a processor 1301 and a memory 1302.
The processor 1301 may be a Central Processing Unit (CPU), a digital processing unit, or the like. The specific connection medium between the memory 1302 and the processor 1301 is not limited in the embodiments of the present application. In the embodiment of the present application, the memory 1302 and the processor 1301 are connected through a bus 1303 in fig. 13, the bus 1303 is shown by a thick line in fig. 13, and the connection manner between other components is merely an illustrative description and is not limited thereto. The bus 1303 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 13, but this is not intended to represent only one bus or type of bus.
The memory 1302 may be a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 1302 may also be a non-volatile memory (non-volatile memory) such as, but not limited to, a read-only memory (rom), a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD), or the memory 1302 may be any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Memory 1302 may be a combination of the above.
A processor 1301 for executing the virtual article control method in any of the applications as discussed above when invoking the computer program stored in the memory 1302.
It should be noted that the computer device 1300 may also be used to implement the functionality of the apparatus shown in fig. 12 above, or to implement the target client 111 in the foregoing, or to implement the functionality of the server 120 in the foregoing.
Based on the same inventive concept, embodiments of the present application provide a storage medium storing computer instructions, which, when executed on a computer, cause the computer to execute the virtual article control method in any one of the applications discussed above.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Based on the same inventive concept, the embodiments of the present application provide a computer program product, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the virtual article control method in any one of the applications.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and 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 methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (15)

1. A virtual article control method in an application, comprising:
when a target object is detected to execute a target event in a target page of a target application, acquiring a resource level currently associated with the target object; the resource level currently associated with the target object specifically includes a resource level associated with the target object under each item type, where: the target object is a team member in a target team, and the associated resource level of the target object under each article type is determined according to the resource level of each team member in the target team under the corresponding article type;
determining at least one candidate virtual article matched with the resource grade from the virtual articles associated with the target event;
and determining a target virtual article from the at least one candidate virtual article, and controlling the target virtual article to be displayed in the target page.
2. The method of claim 1, wherein the resource level with which the target object is currently associated comprises the resource level with which the target object is associated with each item category; the determining, from the virtual articles associated with the target event, at least one candidate virtual article matching the resource level specifically includes:
determining various article types corresponding to the virtual object according to the virtual object associated with the target event, wherein the various article types are divided into different type grades, and each article type comprises at least one virtual article;
matching a category grade matched with the resource grade of the target object under each article category according to each article category;
and determining the virtual article associated with the matched category grade as at least one candidate virtual article.
3. The method of claim 1, wherein the virtual items associated with the target event are classified into different item classes; the resource level currently associated with the target object comprises the resource level associated with the target object under each item category; the determining, from the virtual articles associated with the target event, at least one candidate virtual article matching the resource level specifically includes:
matching an article grade matched with the resource grade of the target object under each article type according to each article type;
and determining the virtual article associated with the matched article grade as at least one candidate virtual article.
4. The method of claim 3, wherein prior to said determining the virtual item associated with the matched item level as at least one candidate virtual item, the method further comprises:
determining various article types corresponding to the virtual object according to the virtual object associated with the target event, wherein each article type comprises at least one virtual article;
and determining the virtual articles included in the article types corresponding to the virtual objects as the virtual articles related to the target events.
5. The method of claim 1, wherein the resource level associated with the target object under each item category is determined according to the resource level of each team member in the target team under the corresponding item category, including:
the associated resource level of the target object under each article type is the highest resource level of each team member under the corresponding article type; or
The resource level associated with the target object under each item type is the result of weighted summation of the resource levels of the team members under the corresponding item type.
6. The method of claim 3, wherein after said determining a target virtual item from said at least one candidate virtual item and controlling presentation of said target virtual item in said target page, said method further comprises:
when the target object is detected to execute a specific event in the target application, updating the resource level of the target object and the resource level of the object type to which the target virtual article belongs; wherein the specific event is related to the target virtual item.
7. The method of claim 1, wherein determining a target virtual item from the at least one virtual item that matches the resource level comprises:
determining a probability base matching the at least one candidate virtual item; wherein the probability base comprises the number of each candidate virtual item in the at least one candidate virtual item and the probability of each candidate virtual item;
and generating a random number, and obtaining a target virtual article from the probability library according to the random number.
8. The method according to any one of claims 1 to 4 or 6 to 7, wherein the controlling of the target virtual item to be displayed in the target page specifically comprises:
generating indication information indicating the target virtual article according to the target virtual article, and sending the indication information to a terminal associated with the target application, so that the terminal displays the target virtual article in the target page according to the indication information; or the like, or, alternatively,
and displaying the target virtual article in the target page.
9. A virtual article control device in an application, comprising:
the acquisition module is used for acquiring the current associated resource level of a target object when the target object is detected to execute a target event in a target page of a target application; the resource level currently associated with the target object specifically includes a resource level associated with the target object under each item type, where: the target object is a team member in a target team, and the associated resource level of the target object under each article type is determined according to the resource level of each team member in the target team under the corresponding article type;
the first determination module is used for determining at least one candidate virtual article matched with the resource level from the virtual articles associated with the target event;
a second determination module, configured to determine a target virtual item from the at least one candidate virtual item;
and the control module is used for controlling the target virtual article to be displayed in the target page.
10. The apparatus of claim 9, wherein the resource level with which the target object is currently associated comprises a resource level with which the target object is associated with each item category; the first determining module is specifically configured to:
determining various article types corresponding to the virtual object according to the virtual object associated with the target event, wherein the various article types are divided into different type grades, and each article type comprises at least one virtual article;
matching a category grade matched with the resource grade of the target object under each article category according to each article category;
and determining the virtual article associated with the matched category grade as at least one candidate virtual article.
11. The apparatus of claim 9, wherein the virtual items associated with the target event are classified into different item classes; the resource level currently associated with the target object comprises the resource level associated with the target object under each item category; the first determining module is specifically configured to:
matching an article grade matched with the resource grade of the target object under each article type according to each article type;
and determining the virtual article associated with the matched article grade as at least one candidate virtual article.
12. The apparatus of claim 11, wherein the first determining module is further configured to:
before the virtual article associated with the matched article grade is determined to be at least one candidate virtual article, determining various article types corresponding to the virtual article according to the virtual object associated with the target event, wherein each article type comprises at least one virtual article;
and determining the virtual articles included in the article types corresponding to the virtual objects as the virtual articles related to the target events.
13. The apparatus of claim 9, wherein the resource level associated with the target object under each item category is determined according to the resource level of each team member in the target team under the corresponding item category, and specifically comprises:
the associated resource level of the target object under each article type is the highest resource level of each team member under the corresponding article type; or
The resource level associated with the target object under each item type is the result of weighted summation of the resource levels of the team members under the corresponding item type.
14. A computer device, comprising:
at least one processor, and
a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the at least one processor implementing the method of any one of claims 1-8 by executing the instructions stored by the memory.
15. A storage medium storing computer instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 8.
CN202010985312.8A 2020-09-18 2020-09-18 Virtual article control method, device, equipment and medium in application Active CN112090074B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010985312.8A CN112090074B (en) 2020-09-18 2020-09-18 Virtual article control method, device, equipment and medium in application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010985312.8A CN112090074B (en) 2020-09-18 2020-09-18 Virtual article control method, device, equipment and medium in application

Publications (2)

Publication Number Publication Date
CN112090074A CN112090074A (en) 2020-12-18
CN112090074B true CN112090074B (en) 2022-03-01

Family

ID=73760331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010985312.8A Active CN112090074B (en) 2020-09-18 2020-09-18 Virtual article control method, device, equipment and medium in application

Country Status (1)

Country Link
CN (1) CN112090074B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434532B (en) * 2021-07-15 2022-10-04 网易(杭州)网络有限公司 Virtual article distribution method, device, equipment and storage medium
CN113573085B (en) * 2021-07-21 2023-12-19 广州繁星互娱信息科技有限公司 Virtual resource acquisition method and device, storage medium and electronic equipment
CN113797549B (en) * 2021-09-30 2024-05-10 上海完美时空软件有限公司 Method and device for processing resource object, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108211361A (en) * 2017-11-30 2018-06-29 腾讯科技(深圳)有限公司 Resource acquisition method of determining probability and device, storage medium, electronic device
CN110772793A (en) * 2019-11-07 2020-02-11 腾讯科技(深圳)有限公司 Virtual resource configuration method and device, electronic equipment and storage medium
CN111068325A (en) * 2019-12-04 2020-04-28 网易(杭州)网络有限公司 Method, device, equipment and storage medium for collecting articles in game scene
CN111282265A (en) * 2020-02-07 2020-06-16 网易(杭州)网络有限公司 Method and device for acquiring virtual object in game, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7677979B2 (en) * 2005-10-14 2010-03-16 Leviathan Entertainment, Llc Method and system for allocating resources in a video game

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108211361A (en) * 2017-11-30 2018-06-29 腾讯科技(深圳)有限公司 Resource acquisition method of determining probability and device, storage medium, electronic device
CN110772793A (en) * 2019-11-07 2020-02-11 腾讯科技(深圳)有限公司 Virtual resource configuration method and device, electronic equipment and storage medium
CN111068325A (en) * 2019-12-04 2020-04-28 网易(杭州)网络有限公司 Method, device, equipment and storage medium for collecting articles in game scene
CN111282265A (en) * 2020-02-07 2020-06-16 网易(杭州)网络有限公司 Method and device for acquiring virtual object in game, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112090074A (en) 2020-12-18

Similar Documents

Publication Publication Date Title
CN112090074B (en) Virtual article control method, device, equipment and medium in application
US11331582B2 (en) Facilitating event implementation in an online game
US20140179434A1 (en) System and method for determining and acting on a user's value across different platforms
US20210138348A1 (en) Seasonal reward distribution system
CN112261488B (en) Virtual article issuing method, device, storage medium and computer equipment
CN112700289B (en) Rewarding resource interactive control method, device and equipment
CN113343089A (en) User recall method, device and equipment
CN112306321A (en) Information display method, device and equipment and computer readable storage medium
JP2021037060A (en) System, method, and program for providing predetermined game, and method for creating classification of decks
US20230311004A1 (en) Recording medium and information processing device
JP2021153709A (en) Information processor, information processing method and program
JP7182870B2 (en) Game program and server device
US10771514B2 (en) Systems and methods for facilitating the sharing of user-generated content of a virtual space
KR102383865B1 (en) Method for matching players in online battle game based on ai, sever and computer readalbe stroage medium of recording the metohd
JP7394284B2 (en) Program, information processing method, and information processing device
JP6606587B1 (en) Game program and game system
KR101183731B1 (en) Method and server for providing service of using item
CN111939565A (en) Virtual scene display method, system, device, equipment and storage medium
JP5724130B1 (en) Game server, game control method, game program, game program recording medium, and game system
JP6982256B2 (en) Computer programs and computer equipment
JP6929430B1 (en) Information processing methods, programs, information processing systems
KR101264629B1 (en) Method and server for providing service of using item
KR102632637B1 (en) Method and system for providing betting service using game log
JP7348545B2 (en) computer programs and computer equipment
CN117122933A (en) Virtual pet display method, device, equipment, medium and program product

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40035407

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant