Method and device for counting NPC favorability information, and electronic device
By statistically analyzing the time difference of virtual users at each favorability stage and calculating the duration distribution, the problem of incomplete analysis of NPC favorability upgrade mechanism in existing technologies is solved, and more comprehensive NPC information statistics and analysis are achieved.
Patent Information
- Application Number
- CN202210563042.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-23
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2042-05-23
AI Technical Summary
In existing technologies, when analyzing the NPC favorability upgrade mechanism by collecting player comments from game forums, the limited number of comments leads to incomplete analysis and makes it impossible to effectively improve the NPC favorability upgrade mechanism.
By statistically analyzing the time difference between different favorability stages for virtual users, the time spent upgrading from one favorability stage to another is calculated. This allows for a comprehensive statistical analysis of each player's NPC information and an analysis of the favorability upgrade mechanism.
It provides more comprehensive NPC information statistics, helping developers better analyze the favorability upgrade mechanism, covering all players, and improving the comprehensiveness and accuracy of the analysis.
Smart Images

Figure CN115120984B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, specifically to a method, apparatus, electronic device, and computer-readable storage medium for statistical analysis of NPC favorability information. Background Technology
[0002] Non-player characters (NPCs) are game characters that are not controlled by the player, but can guide the player through the game and interact with the virtual character controlled by the player. The affinity level between the player and the NPC reflects the degree of intimacy between the two. Affinity usually consists of multiple stages, and the affinity upgrade mechanism based on the NPC allows the player to control which affinity stage they are at.
[0003] In practice, it's common for players to dislike a particular NPC, or to initially like an NPC but not develop a further affinity with them. These phenomena often indicate that the NPC affinity upgrade mechanism is poorly designed, so developers frequently need to improve it.
[0004] In related technologies, developers can collect comments through platforms such as game forums to understand players' true thoughts about NPCs and thus identify flaws in the design of the favorability upgrade mechanism. However, because the number of players posting comments on game forums and other platforms is small, and the comments usually contain even less content about NPC favorability, the understanding of players' thoughts about NPCs obtained by collecting comments is very limited. Therefore, it is not feasible to effectively analyze the NPC favorability upgrade mechanism. Summary of the Invention
[0005] This application provides a method, apparatus, electronic device, and computer-readable storage medium for statistical analysis of NPC favorability information. This allows for more comprehensive statistical analysis of NPC information for each player, enabling developers to better analyze the NPC favorability upgrade mechanism based on the statistical results. The specific solution is as follows.
[0006] In a first aspect, embodiments of this application provide a method for statistically analyzing the favorability information of an NPC, characterized in that the NPC corresponds to N favorability stages, where N is an integer greater than 1, and the method includes:
[0007] Determine the time corresponding to each virtual user's various favorability stages with the NPC;
[0008] Obtain the time corresponding to the i-th favorability stage of the NPC for each virtual user and the time corresponding to the (i-1)-th favorability stage of the NPC;
[0009] Calculate the time difference between the time corresponding to the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage for each virtual user, so as to determine the time difference as the time spent by each virtual user from the (i-1)-th favorability stage to the i-th favorability stage of the NPC;
[0010] Where i is an integer, and i iterates from 2 to N.
[0011] Optionally, the method further includes:
[0012] The number of virtual users whose upgrade time falls within each preset time range is counted from all the virtual users. The upgrade time is the time spent by the virtual user to upgrade from the (i-1)th favorability stage to the ith favorability stage.
[0013] Optionally, the step of counting the number of virtual users whose upgrade duration falls within each preset duration range from the virtual users includes:
[0014] The number of virtual users whose upgrade duration falls within the range of nT to (n+1)T is counted from each of the virtual users, where n is an integer, n iterates from 0 to m, m is a positive integer, m is less than a preset threshold, and T is a duration greater than 0.
[0015] Optionally, the time corresponding to each favorability stage of the virtual user on the NPC is any one of the following:
[0016] The time it takes for the virtual user to upgrade to each favorability stage of the NPC;
[0017] The virtual user is at any point in time during the various favorability stages of the NPC;
[0018] The most recent interaction time between the virtual user and the NPC during the various favorability stages of the NPC.
[0019] Optionally, before determining the time corresponding to each virtual user's respective favorability stage with the NPC, the method further includes:
[0020] Obtain the time when the favorability value of each virtual user towards the NPC changes, and the changed favorability value;
[0021] For each of the virtual users, the time corresponding to each favorability stage of the NPC is determined as follows:
[0022] Determine the favorability stage of the NPC corresponding to each of the changed favorability values of the virtual user;
[0023] For each favorability stage of the NPC that the virtual user is currently in, the time of each change in the favorability stage is determined as the time of the virtual user in that favorability stage.
[0024] Optionally, obtaining the time when the favorability value of each virtual user towards the NPC changes and the changed favorability value includes:
[0025] Obtain the time when each virtual user's favorability towards the NPC changes and the changed favorability value from each virtual user's logs.
[0026] Optionally, the statistical method performs the statistics according to a preset statistical period;
[0027] The step of obtaining the time when the favorability value of each virtual user towards the NPC changes and the changed favorability value includes:
[0028] Obtain the time when the favorability value of each virtual user towards the NPC changes and the changed favorability value for each of the previous statistical periods in the current statistical period;
[0029] The method further includes:
[0030] The time difference is defined as the time taken for each virtual user to advance from the (i-1)th favorability stage of the NPC to the ith favorability stage within the current statistical period.
[0031] Optionally, obtaining the time corresponding to the i-th favorability stage of each virtual user and the time corresponding to the (i-1)-th favorability stage of the NPC includes:
[0032] Select the second virtual users who have reached the i-th favorability stage of the NPC from among the virtual users;
[0033] Obtain the time corresponding to the i-th favorability stage of the NPC for each of the second virtual users and the time corresponding to the (i-1)-th favorability stage of the NPC;
[0034] The calculation of the time difference between the time corresponding to the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage for each virtual user includes:
[0035] Calculate the time difference between the time corresponding to the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage for each of the second virtual users.
[0036] Optionally, the method further includes:
[0037] For the j-th favorability stage corresponding to the NPC, the number of first virtual users is counted from all virtual users, and the highest favorability stage of the NPC reached by the first virtual user is the j-th favorability stage.
[0038] Where j is an integer, and j iterates from 1 to N.
[0039] Optionally, the step of counting the number of the first virtual user from among the virtual users includes:
[0040] The number of virtual users is counted based on the first time information, where the first time information is the time corresponding to each virtual user's various favorability stages with the NPC.
[0041] Optionally, the step of counting the number of the first virtual user from among the virtual users includes:
[0042] Count the number of first virtual users corresponding to virtual users of different genders from each group of virtual users.
[0043] Optionally, the method further includes:
[0044] For the i-th favorability stage corresponding to the NPC, the number of third virtual users is counted from the multiple virtual users. The third virtual user is the virtual user who has reached the i-th favorability stage.
[0045] Optionally, the method further includes:
[0046] The number of the first virtual users corresponding to each favorability stage of the NPC is displayed in a table on the display interface.
[0047] Optionally, the method further includes:
[0048] The display interface shows, in tabular form, the number of virtual users whose time spent improving from the (i-1)th favorability stage to the ith favorability stage falls within each of the specified time ranges.
[0049] Secondly, embodiments of this application provide a device for statistically analyzing the favorability information of an NPC, characterized in that the NPC corresponds to N favorability stages, where N is an integer greater than 1, and the device includes:
[0050] The determining unit is used to determine the time corresponding to each virtual user's various favorability stages with the NPC;
[0051] The acquisition unit is used to acquire the time corresponding to the i-th favorability stage of the NPC and the time corresponding to the (i-1)-th favorability stage of the NPC for each virtual user;
[0052] The calculation unit is used to calculate the time difference between the time corresponding to the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage of each virtual user, so as to determine the time difference as the time spent by each virtual user from the (i-1)-th favorability stage of the NPC to the i-th favorability stage.
[0053] Where i is an integer, and i iterates from 2 to N.
[0054] Optionally, the calculation unit is further configured to: count the number of virtual users whose upgrade time is within each preset time range from each of the virtual users, wherein the upgrade time is: the time spent by the virtual user to upgrade from the (i-1)th favorability stage to the ith favorability stage.
[0055] Optionally, the calculation unit is specifically used to: count the number of virtual users whose upgrade duration is within the range of nT to (n+1)T from each of the virtual users, where n is an integer, n traverses from 0 to m, m is a positive integer, m is less than a preset threshold, and T is a duration greater than 0.
[0056] Optionally, the time corresponding to each favorability stage of the virtual user on the NPC is any one of the following:
[0057] The time it takes for the virtual user to upgrade to each favorability stage of the NPC;
[0058] The virtual user is at any point in time during the various favorability stages of the NPC;
[0059] The most recent interaction time between the virtual user and the NPC during the various favorability stages of the NPC.
[0060] Optionally, the acquisition unit is further configured to: acquire the time when the favorability value of each virtual user towards the NPC changes and the changed favorability value;
[0061] The determining unit is specifically used for: for each virtual user, determining the favorability stage of the NPC to which the changed favorability value corresponding to the virtual user is located; for each favorability stage of the NPC that the virtual user is already in, determining the time of each change time corresponding to the favorability stage as the time of the virtual user in that favorability stage.
[0062] Optionally, the acquisition unit is specifically used to: acquire from the logs of each virtual user the time when the favorability value of each virtual user towards the NPC changed and the changed favorability value.
[0063] Optionally, the statistical device performs statistics according to a preset statistical period;
[0064] The acquisition unit is specifically used to: acquire the time when the favorability value of each virtual user towards the NPC changes and the changed favorability value in each statistical period before the current statistical period and each statistical period before the current statistical period;
[0065] The determining unit is further configured to: determine the time difference as the time taken for each virtual user to improve from the (i-1)th favorability stage of the NPC to the ith favorability stage within the current statistical period.
[0066] Optionally, the acquisition unit is specifically used to: select each second virtual user who has reached the i-th favorability stage of the NPC from the virtual users, and acquire the time corresponding to the i-th favorability stage of the NPC and the time corresponding to the (i-1)-th favorability stage of the NPC for each second virtual user;
[0067] The calculation unit is specifically used to: calculate the time difference between the time corresponding to the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage for each of the second virtual users, so as to determine the time difference as the time spent by each of the second virtual users from the (i-1)-th favorability stage of the NPC to the i-th favorability stage.
[0068] Optionally, the calculation unit is further configured to: for the j-th favorability stage corresponding to the NPC, count the number of first virtual users from among the virtual users, and the highest favorability stage of the NPC reached by the first virtual user is the j-th favorability stage; where j is an integer, and j iterates from 1 to N.
[0069] Optionally, the calculation unit is specifically used to: count the number of first virtual users based on first time information, where the first time information is the time corresponding to each virtual user's various favorability stages of the NPC.
[0070] Optionally, the calculation unit is specifically used to: count the number of first virtual users corresponding to virtual users of different genders from each virtual user.
[0071] Optionally, the calculation unit is further configured to: for the i-th favorability stage corresponding to the NPC, count the number of third virtual users from the plurality of virtual users, wherein the third virtual user is a virtual user who has reached the i-th favorability stage.
[0072] Optionally, the device further includes:
[0073] The first display unit is used to display the number of the first virtual users corresponding to each favorability stage of the NPC in a table format on the display interface.
[0074] Optionally, the device further includes:
[0075] The second display unit is used to display, in a table format on the display interface, the number of virtual users whose time spent improving from the (i-1)th favorability stage to the ith favorability stage falls within each of the time ranges.
[0076] Thirdly, this application also provides an electronic device, including:
[0077] Processor; and
[0078] A memory for storing a data processing program, which, when the electronic device is powered on and runs by the processor, performs the method as described in any of the first aspects.
[0079] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a data processing program that is executed by a processor to perform the method described in any of the first aspects.
[0080] Compared with the prior art, this application has the following advantages:
[0081] The method for statistically analyzing NPC favorability information provided in this application, for the i-th favorability stage corresponding to an NPC, based on the time corresponding to each virtual user in each favorability stage of the NPC, obtains the time difference between the time corresponding to each virtual user in the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage. This determined time difference can be used as the time spent by each virtual user to raise the NPC's favorability from the (i-1)-th stage to the i-th stage. i iterates through 2 to N, thus calculating the time spent by each player to raise the NPC's favorability from the (i-1)-th stage to the i-th stage. This allows developers to easily analyze... This data shows the distribution of time spent by each player during the upgrade process, from a lower to a higher level of favorability. It reveals which stages take the longest and which take the shortest, and which stages most players spend the most time on. Developers can use this data to analyze the rationality of the favorability upgrade mechanism or gameplay mechanics. For example, if most players spend a long time upgrading from the second to the third favorability stage, it might indicate that the upgrade mechanism for the third stage is difficult or unreasonable, or that the gameplay in the third stage is uninteresting to most players.
[0082] As can be seen, the NPC favorability information statistical method provided in this application enables developers to conduct a better and more comprehensive analysis of the NPC favorability upgrade mechanism based on the statistical results. Since this application statistically analyzes the NPC information of each player in the game, the NPC information statistics can cover all players, resulting in more comprehensive information statistics. This, in turn, allows developers to better analyze the NPC favorability upgrade mechanism based on the statistical results. Attached Figure Description
[0083] Figure 1 This is a flowchart of an example of the method for statistically analyzing the favorability information of NPCs provided in the embodiments of this application;
[0084] Figure 2 This is a flowchart of another example of the NPC favorability information statistics method provided in the embodiments of this application;
[0085] Figure 3 This is a diagram illustrating an example of how NPCs' favorability is categorized.
[0086] Figure 4 This is another illustration of how NPCs' favorability is divided;
[0087] Figure 5This is a structural block diagram of an example of the NPC favorability information statistics device provided in the embodiments of this application;
[0088] Figure 6 This is a structural block diagram of an example of an electronic device provided in an embodiment of this application. Detailed Implementation
[0089] Many specific details are set forth in the following description to provide a full understanding of this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this application; therefore, this application is not limited to the specific embodiments disclosed below.
[0090] In applications based on virtual environments, such as multiplayer online games, card games, and other gaming applications, or in utility applications like online shopping apps and instant messaging software, NPCs can be set up to interact with virtual users. The affinity level between the virtual user and the NPC reflects the degree of intimacy between them. Affinity typically includes multiple stages, and an NPC-based affinity upgrade mechanism can control which stage the virtual user is currently in. The aforementioned virtual user can be understood as a character controlled by the user, a virtual player, etc.
[0091] In practical applications, developers often need to improve the NPC favorability upgrade mechanism to facilitate positive interaction between NPCs and virtual users. One approach is to collect comments from platforms like game forums to understand players' true thoughts about NPCs and identify flaws in the favorability upgrade mechanism. However, because the number of players posting comments on game forums is small, and the content related to NPC favorability is usually even less, the information gathered from collecting comments is very limited, making it difficult to effectively analyze the NPC favorability upgrade mechanism.
[0092] Alternatively, monitoring virtual users' gifting behavior can be used to analyze which favorability stage of an NPC users are most active at, thus revealing which favorability stage users prefer. However, analyzing NPC favorability information through gifting behavior doesn't readily allow developers to analyze the distribution of virtual users across different favorability stages, hindering a more comprehensive analysis of each stage.
[0093] For the reasons mentioned above, in order to conduct more comprehensive statistics on the NPC information of each player, so that developers can better and more conveniently analyze the NPC favorability upgrade mechanism based on the statistical results, the first embodiment of this application provides a favorability information statistics method. This method is applied to an electronic device, which may be a desktop computer, laptop computer, mobile phone, tablet computer, server, terminal device, etc., or other electronic devices capable of data statistics. This embodiment of the application is not specifically limited.
[0094] In this embodiment, the NPC corresponds to N favorability stages, where N is an integer greater than 1. For example, the NPC may correspond to 3 to 10 favorability stages, that is, N is any value from 3 to 10. N may also be other integers greater than 1, and this application does not specifically limit it.
[0095] In this embodiment, the favorability stage of an NPC can be determined based on its maximum and minimum favorability values. The maximum and minimum favorability values are preset values; typically, the minimum favorability value is 0. When a virtual user gives an NPC a virtual gift or performs other virtual actions that increase favorability, the virtual user's favorability towards the NPC usually increases, but the maximum increase is the aforementioned maximum favorability value.
[0096] Alternatively, the corresponding favorability stage of an NPC can be determined using the following formula: Where y represents the number of favorability stages for the NPC, X represents the maximum favorability value for the NPC, and x represents the minimum favorability value for the NPC. Alternatively, the number of favorability stages for the NPC can be predetermined; or the number of favorability stages for the NPC can be determined in other ways, which are not specifically limited in this application.
[0097] The length of the affection value range corresponding to each affection level can be the same. For example, the maximum affection value is 500, the minimum affection value is 0, and the number of affection levels is 5. Figure 3 As shown, the favorability value range for the first favorability stage is 0-100, the second favorability stage is 101-200, the third favorability stage is 201-300, and so on. Alternatively, the lengths of the favorability value ranges for each favorability stage can also be different, for example... Figure 4As shown, the favorability value range corresponding to the first favorability stage is 0-100, the favorability value range corresponding to the second favorability stage is 101-220, the favorability value range corresponding to the third favorability stage is 221-400, and so on. Those skilled in the art can design the number of NPC favorability stages and the favorability value range corresponding to each favorability stage according to the specific needs of the scenario; this application does not specifically limit this.
[0098] like Figure 1 As shown, the method for statistically analyzing the favorability information of NPCs provided in this application includes the following steps S110 to S130.
[0099] Step S110: Determine the time corresponding to each virtual user's various favorability stages with the NPC.
[0100] In practical applications, there may be multiple NPCs in applications such as games. This application embodiment focuses on the favorability information of one NPC. Other NPCs in the application can be statistically analyzed using the same method.
[0101] In this application's embodiments, each virtual user can be understood as a virtual user corresponding to the application. It can be any virtual user among all virtual users corresponding to the application, or any virtual user among a subset of virtual users corresponding to the application. To make the statistical information more comprehensive, each virtual user can be any virtual user among all virtual users corresponding to the application. Those skilled in the art can determine the specific scope of each virtual user based on the actual situation.
[0102] In step S110, the time corresponding to each virtual user's various favorability stages with the NPC is determined, that is, the time corresponding to each virtual user's various favorability stages with the NPC is determined.
[0103] The aforementioned virtual users can be understood as virtual characters controlled by users or players.
[0104] The time corresponding to the virtual user's i-th favorability stage with the NPC can be the time when the virtual user progresses from the (i-1)-th favorability stage to the i-th favorability stage, or any time during the process of the virtual user being in the i-th favorability stage (e.g., the time in the middle or at the last moment), or the time of the virtual user's most recent interaction with the NPC during the i-th favorability stage, but is not limited to these. Interaction can include the virtual user giving the NPC items, recharging the NPC with virtual currency, engaging in dialogue with the NPC, etc., but is not limited to these.
[0105] In step S110, during the operation of applications such as games, electronic devices can record: the time information corresponding to each favorability stage of a virtual user upgrading to an NPC, or the time information of a virtual user interacting with an NPC. In this case, the electronic device can obtain the time corresponding to each virtual user's various favorability stages with the NPC from the recorded time information.
[0106] Step S120: Obtain the time corresponding to the i-th favorability stage of each virtual user and the time corresponding to the (i-1)-th favorability stage of the NPC.
[0107] The i above is an integer, and i iterates from 2 to N.
[0108] Since step S110 determines the time corresponding to each virtual user in each favorability stage of the NPC, step S120 can easily obtain the time corresponding to each virtual user in the i-th favorability stage of the NPC and the time corresponding to the (i-1)-th favorability stage of the NPC from the time corresponding to each virtual user in each favorability stage of the NPC.
[0109] Step S130: Calculate the time difference between the time corresponding to the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage for each virtual user, so as to determine the time difference as the time spent by each virtual user to improve from the (i-1)-th favorability stage of the NPC to the i-th favorability stage.
[0110] For some virtual users, they may have directly upgraded from the (i-3)th or (i-2)th favorability stage to the ith favorability stage. For the ith favorability stage of these virtual users, there may not be any information about the time corresponding to the (i-1)th favorability stage. In this case, the electronic device can use the previous favorability stage as the (i-1)th favorability stage. Alternatively, the electronic device can ignore virtual users who have not been in the (i-1)th favorability stage. That is, the electronic device does not calculate the time taken for virtual users who have not been in the (i-1)th favorability stage to upgrade from the (i-1)th favorability stage to the ith favorability stage. The electronic device calculates the time taken for virtual users who have been in the (i-1)th favorability stage to upgrade from the (i-1)th favorability stage to the ith favorability stage.
[0111] The time taken for a virtual user to advance from the (i-1)th favorability stage to the ith favorability stage of an NPC, as determined in step S130, reflects the difficulty or user interest in advancing from the (i-1)th favorability stage to the ith favorability stage. If most virtual users experience relatively long lead times, it indicates that advancing from the (i-1)th favorability stage to the ith favorability stage is difficult, or that users are not interested in the ith favorability stage and are therefore not actively upgrading. In this case, developers can improve the upgrade or gameplay mechanics for the ith favorability stage.
[0112] The method for statistically analyzing NPC favorability information provided in this application, for the i-th favorability stage corresponding to an NPC, obtains the time difference between the time corresponding to the virtual user in the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage for each player, based on the time corresponding to each virtual user in each favorability stage of the NPC. This time difference is used as the time spent by each virtual user to raise the favorability from the (i-1)-th stage to the i-th stage of the NPC. i iterates through 2 to N, thus calculating the time spent by each player to raise the favorability from the (i-1)-th stage to the i-th stage of the NPC. In this way, developers can easily analyze the favorability information of each player. The distribution of time spent by players upgrading their affinity from a lower to a higher level reveals which stages take the longest and which take the shortest. It also shows which stages most players spend the most time upgrading to. Developers can use this timeframe to analyze the rationality of the affinity upgrade mechanism or gameplay mechanics. For example, if most players spend a long time upgrading from the second to the third affinity stage, it might indicate that the upgrade mechanism for the third affinity stage is difficult or unreasonable, or that the gameplay at the third affinity stage is uninteresting to most players.
[0113] As can be seen, the NPC favorability information statistical method provided in this application enables developers to conduct a better and more comprehensive analysis of the NPC favorability upgrade mechanism based on the statistical results. Since this application statistically analyzes the NPC information of each player in the game, the NPC information statistics can cover all players, resulting in more comprehensive information statistics. This, in turn, allows developers to better analyze the NPC favorability upgrade mechanism based on the statistical results.
[0114] Optionally, the above statistical method may further include the following steps: determining the time difference as the time taken for each virtual user to improve the favorability of the NPC from the (i-1)th favorability stage to the ith favorability stage.
[0115] In one embodiment, prior to step S110, the method may further include the following step S140.
[0116] Step S140: Obtain the time when the favorability value of each virtual user to the NPC changes and the changed favorability value.
[0117] During the operation of applications such as games, electronic devices can record information such as the time when a virtual user's favorability rating towards an NPC changes, and the subsequent favorability rating. Specifically, the electronic device can record the time when a virtual user's favorability rating towards an NPC changes, and the subsequent favorability rating, in the virtual user's program log. The electronic device can then obtain the time when each virtual user's favorability rating towards the NPC changes, and the subsequent favorability rating, from this recorded information.
[0118] Specifically, electronic devices can obtain the time when each virtual user's favorability rating towards an NPC changes, as well as the changed favorability rating, from each virtual user's logs. For example, when the application is a game, the log can be the virtual user's game log; when the application is an online shopping app, the log can be the virtual user's transaction log.
[0119] In step S110, the time corresponding to each virtual user's various favorability stages with the NPC can be determined by following the steps S111 to S112.
[0120] Step S111: Determine the NPC's favorability stage corresponding to each changed favorability value of the virtual user.
[0121] The virtual user in step S111 is any one of the virtual users.
[0122] Each time a virtual user's favorability rating towards an NPC changes, a new favorability rating is generated for that virtual user. Thus, each new favorability rating for a virtual user refers to the specific new favorability rating for each change in the virtual user's favorability rating towards the NPC. Changes in a virtual user's favorability rating towards an NPC can occur when the virtual user gives a gift to the NPC, the interaction time between the virtual user and the NPC exceeds a preset time, or the virtual user and the NPC complete a pre-defined interactive task, but are not limited to these.
[0123] Step S112: For each favorability stage of the NPC that the virtual user is currently in, determine the time of each change in the favorability stage as the time when the virtual user upgrades to that favorability stage.
[0124] The virtual user in step S112 is the same as the virtual user in step S111.
[0125] The various favorability stages of the NPC reached by the virtual user refer to the various favorability stages where the changed favorability values corresponding to the virtual user are located, as determined in step S111, which are the various favorability stages that the virtual user has reached.
[0126] After a virtual user reaches a certain favorability stage with an NPC, the favorability value between the virtual user and the NPC may further increase, but the increased favorability value may not reach the next favorability stage. In this case, the virtual user's arrival at the NPC's favorability stage will correspond to multiple changed favorability values, and similarly, multiple change times. In step S112, the earliest or latest time among the change times corresponding to the favorability stage can be determined as the time when the virtual user upgrades to that favorability stage. Alternatively, other times among the change times corresponding to the favorability stage can be determined as the time when the virtual user upgrades to that favorability stage. Those skilled in the art can select from the change times corresponding to the favorability stage according to specific scenario requirements to determine the time when the virtual user upgrades to that favorability stage. This application does not specifically limit this.
[0127] In applications such as games, the affinity information between virtual users and NPCs is usually reflected through NPC values. Electronic devices may not record the time when the affinity between virtual users and NPCs changes at different stages, but they often record the time when the affinity value between virtual users and NPCs changes. This implementation method can easily determine the time corresponding to each affinity stage of the virtual user with the NPC by using the relevant information of the affinity value, making the statistical process simpler and more convenient.
[0128] In one specific embodiment, the statistical method provided in this application can perform statistics according to a preset statistical period. Step S140 can be implemented according to the following step S141.
[0129] Step S141: Obtain the time when the favorability value of each virtual user towards the NPC changes and the changed favorability value in the current statistical period and the previous statistical periods.
[0130] The statistical period mentioned above can be 1 day, 3 days, 1 week, 10 days, 1 month, etc., or other longer or shorter periods. This application does not specifically limit it.
[0131] For example, if a statistical period is one day, and the current statistical period is the third day, then step S141 obtains the time when the favorability value of each virtual user towards the NPC changes and the changed favorability value within the three statistical periods of the third day, the second day, and the first day.
[0132] In step S130, the time taken for each virtual user to advance from the (i-1)th favorability stage of the NPC to the ith favorability stage can be determined according to the following step S131.
[0133] The above statistical method may also include the following step S131: determining the above time difference as the time taken for each virtual user to improve from the (i-1)th favorability stage of the NPC to the ith favorability stage within the current statistical period.
[0134] In step S131, a statistical period identifier can be added to the time taken for each virtual user to advance from the (i-1)th favorability stage to the ith favorability stage of the NPC. This identifier indicates the current statistical period. This makes it easier for developers to see which statistical period the statistical results correspond to and facilitates their analysis of the results.
[0135] This embodiment divides the statistical data into statistical periods, allowing the statistical process to proceed according to these periods, making the statistical work more convenient, faster, more orderly, and more efficient. Since the time of change and the resulting favorability value in statistical periods prior to the current period are already obtained during the statistical process, this data from previous statistical periods can be directly acquired, making data acquisition faster and more convenient.
[0136] Optionally, step S141 can be implemented according to the following steps: obtaining the time when the favorability value of each virtual user towards the NPC changes and the changed favorability value within the current statistical period; obtaining the time when the change occurs and the changed favorability value corresponding to the previous statistical period; determining the time when the change occurs and the changed favorability value corresponding to the current statistical period based on the time when the favorability value of each virtual user towards the NPC changes and the changed favorability value within the current statistical period, and the time when the change occurs and the changed favorability value corresponding to the previous statistical period; and combining the time when the change occurs and the changed favorability value corresponding to the current statistical period with the time when the favorability value of each virtual user towards the NPC changes and the changed favorability value within the current statistical period and the statistical periods before the current statistical period.
[0137] Specifically, the time when the favorability value of each virtual user to the NPC changes and the changed favorability value can be combined with the time when the change occurs and the changed favorability value in the previous statistical period, to obtain the time when the change occurs and the changed favorability value in the current statistical period.
[0138] Table 1 shows the time of change and the resulting favorability value for the previous period in the current statistical period. Table 2 shows the time of change and the resulting favorability value for virtual users towards NPCs within the current statistical period. Table 3 shows the time of change and the resulting favorability value for the current statistical period. In Tables 1-3, the role identifier is the virtual user identifier, the NPC identifier is the identifier corresponding to the NPC, different virtual users have different role identifiers, different NPCs have different NPC identifiers, the favorability value is the favorability value after the change, and the time is the moment the change occurred. As shown in Tables 1-3, the information in Table 1 can be merged with the information in Table 2 to obtain the information shown in Table 3.
[0139] Table 1 shows the time of change and the resulting favorability value in the previous cycle.
[0140] Character identifier NPC logo Affection stage Character gender Favorability Value time m n 1 female 98 01:02 m n 2 female 289 02:03 m n 3 female 326 03:15
[0141] Table 2 shows the time when the favorability value changed within the current period and the changed favorability value.
[0142] Character identifier NPC logo Affection stage Character gender Favorability Value time m n 3 female 356 11:59 m n 3 female 389 16:03 m n 4 female 401 19:56
[0143] Table 3 shows the time of change and the resulting favorability value for the current period.
[0144] Character identifier NPC logo Affection stage Character gender Favorability Value time m n 1 female 98 01:02 m n 2 female 289 02:03 m n 3 female 326 03:15 m n 3 female 356 11:59 m n 3 female 389 16:03 m n 4 female 401 19:56
[0145] Since information prior to the current statistical period is used to obtain the time when the favorability value changes and the subsequent favorability value for each statistical period, this application obtains the time when the favorability value changes and the subsequent favorability value based on the full-scale model. Therefore, when calculating the time when the favorability value changes and the subsequent favorability value for the current statistical period, the relevant information within the current statistical period and the relevant data from the previous statistical period can be combined to obtain the time when the favorability value changes and the subsequent favorability value for the current statistical period.
[0146] In step S112, the latest time among the changing times corresponding to each favorability stage can be determined as the time when the virtual user upgrades to that favorability stage. For example, as shown in Table 3, the third favorability stage corresponds to three changing times. The latest time among the changing times corresponding to each favorability stage can be determined as the time when the virtual user upgrades to that favorability stage, thus obtaining Table 4.
[0147] Table 4 shows the time of change corresponding to the current period and the resulting favorability value.
[0148] Character identifier NPC logo Affection stage Character gender Favorability Value time m n 1 female 98 01:02 m n 2 female 289 02:03 m n 3 female 389 16:03 m n 4 female 401 19:56
[0149] In one implementation, the above statistical method may further include the following step S150.
[0150] Step S150: Count the number of virtual users whose upgrade duration falls within each preset duration range from each virtual user.
[0151] The upgrade duration mentioned above refers to the time it takes for a virtual user to upgrade from the (i-1)th favorability stage to the ith favorability stage.
[0152] The aforementioned preset duration ranges include multiple ranges, and the lengths of each preset duration can be the same or different. For example, the preset duration ranges can be four different duration ranges: 0-7 days, 7-15 days, 15-30 days, and more than 30 days. In this way, step S150 can count the number of users whose time spent improving from the (i-1)th favorability stage to the i-th favorability stage is within 0-7 days, the number of users whose time is within 7-15 days, and so on.
[0153] This implementation method statistically analyzes the number of virtual users whose time spent upgrading from the (i-1)th favorability stage to the ith favorability stage falls within each preset time range. In other words, it statistically analyzes the distribution of the number of virtual users whose time spent upgrading from the (i-1)th favorability stage to the ith favorability stage falls within different time ranges. This allows developers to more clearly and conveniently view the distribution of time spent, and makes it easier for them to understand the distribution of time spent by each virtual user to upgrade to the ith favorability stage. Furthermore, it enables developers to more easily and comprehensively analyze the NPC information of each player.
[0154] In one specific embodiment, step S150 can be implemented according to the following step S151.
[0155] Step S151: Count the number of virtual users whose upgrade duration is within the range of nT to (n+1)T from all virtual users.
[0156] Where n is an integer, n traverses from 0 to m, m is a positive integer, and m is less than a preset threshold, and T is a duration greater than 0.
[0157] The aforementioned preset thresholds can be determined based on actual circumstances. The larger the preset threshold, the more time ranges are divided, ensuring that the calculated time spent falls within each of the divided time ranges, thus facilitating analysis by developers.
[0158] For example, when i is 2 and m is 4, the statistics are the number of virtual users whose time spent raising their favorability from the first favorability stage to the second favorability stage falls within the five time ranges of 0~T, T~2T, 2T~3T, 3T~4T, and 4T~5T.
[0159] The specific value of T can be any duration from 1 day to 1 month. For example, T can be 1 day, 1 week, 20 days, 1 month, etc. T can also be a duration shorter than 1 day or longer than 1 month. This application does not specifically limit it.
[0160] This embodiment ensures that each preset duration has the same length range, making it easier for developers to view and analyze.
[0161] In one implementation, step S120 can be implemented according to the following steps S121 to S122.
[0162] Step S121: Select the second virtual users who have reached the i-th favorability stage of the NPC from among the virtual users.
[0163] The second virtual user selected in step S121 is the virtual user who has reached the i-th favorability stage among all virtual users.
[0164] Step S122: Obtain the time corresponding to the i-th favorability stage of each second virtual user in the NPC and the time corresponding to the (i-1)-th favorability stage of the NPC.
[0165] Step S130 can be implemented by following step S132.
[0166] Step S132: Calculate the time difference between the time corresponding to the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage for each second virtual user, so as to determine the time difference as the time spent by each second virtual user to improve from the (i-1)-th favorability stage of the NPC to the i-th favorability stage.
[0167] Since some virtual users may not have reached the i-th favorability stage, this embodiment selects the second virtual user who has reached the i-th favorability stage to calculate the time spent in the process of calculating ...
[0168] In one implementation, such as Figure 2 As shown, the above statistical method may also include the following step S160.
[0169] Step S160: For the j-th favorability stage corresponding to the NPC, count the number of the first virtual user from the above virtual users.
[0170] The first virtual user mentioned above has reached the highest favorability stage of the NPC mentioned above, which is the j-th favorability stage. In other words, the first virtual user refers to the virtual user who has reached the highest favorability stage of the NPC mentioned above, which is the j-th favorability stage. Here, j is an integer, and j iterates from 1 to N.
[0171] In this step, the electronic device can obtain the highest favorability stage of the aforementioned NPC reached by each virtual user, and count the number of virtual users who have reached the j-th favorability stage of the aforementioned NPC from the highest favorability stages reached by each virtual user.
[0172] Specifically, the electronic device can record the improvement information of the virtual user's relationship with the NPC at each stage. The electronic device can determine the highest relationship stage that the virtual user has reached in the improvement information as the highest relationship stage that the virtual user has reached with the NPC.
[0173] In step S160, the number of virtual users who have reached the highest favorability stage of the NPC, which is the j-th favorability stage, is counted. This allows developers to understand which stages of the NPC's N favorability stages are the stages that most users want and can reach, and which stages that most users cannot reach or do not want to reach. This allows them to analyze which favorability stage upgrade mechanisms and gameplay mechanisms are unreasonable.
[0174] This implementation method counts the number of first players among multiple players who have reached the highest favorability stage of an NPC, which is stage j. In other words, this application counts the number of first players corresponding to each favorability stage of an NPC. Thus, developers can easily analyze the distribution of the number of first players across each favorability stage of an NPC based on the number of first players corresponding to each favorability stage. That is, it is easy to analyze how many players can upgrade to the highest favorability stage, j. Therefore, when the number of first players corresponding to a certain favorability stage is very small, it means that few players can reach that favorability stage. Developers can easily analyze whether there are problems with the upgrade mechanism or other gameplay mechanisms for that favorability stage.
[0175] In one implementation, step S160 can be performed by counting the number of first virtual users according to the following steps: counting the number of first virtual users based on first time information.
[0176] The above first-time information refers to the time corresponding to each virtual user's various favorability stages with the NPC.
[0177] Since the time corresponding to each favorability stage of the virtual user with the NPC includes the virtual user's various favorability stages with the NPC, the highest favorability stage reached by the virtual user with the NPC can be obtained from the time corresponding to each favorability stage of the virtual user with the NPC (i.e., first-time information). Therefore, the electronic device can count the number of the first virtual user based on the first-time information.
[0178] Specifically, the electronic device can filter out the first virtual user who has reached the highest favorability stage from the first-time information as the i-th favorability stage, and count the number of the first virtual users selected.
[0179] This embodiment can easily count the number of first virtual users based on first-time information, without the need to obtain additional information on the number of first virtual users, thus making the statistical process of electronic devices simpler, reducing the amount of calculation, and increasing the statistical efficiency of electronic devices.
[0180] In one specific embodiment, step S160 can be performed by counting the number of first virtual users according to the following steps: counting the number of first virtual users corresponding to virtual users of different genders from each virtual user.
[0181] In other words, the number of male and female first virtual users is counted from among all virtual users. In this embodiment, the electronic device can obtain the gender information of virtual users from their user information.
[0182] This embodiment counts the number of first virtual users for different genders separately, allowing developers to know the highest level of favorability that virtual users of different genders can achieve from the statistical results. This enables the analysis of players of different genders, facilitating subsequent improvements to the gameplay mechanics of NPCs or the design of NPCs for players of different genders.
[0183] In one implementation, the above statistical method may further include the following steps: for the j-th favorability stage corresponding to the NPC, count the number of third virtual users from each virtual user.
[0184] The third virtual user mentioned above is the virtual user who has reached the j-th favorability stage, where j is an integer and iterates from 1 to N.
[0185] This embodiment counts the number of third virtual users, which is the number of virtual users who have been upgraded to the j-th favorability stage of NPCs. This includes both the number of virtual users who have been upgraded to the j-th favorability stage and the number of virtual users who have been upgraded to the j-th favorability stage in the past.
[0186] The calculation of the third number of virtual users can refer to the calculation method of the first number of virtual users, which will not be repeated here.
[0187] This embodiment enables developers to know which favorability stages have a large number of participants and which have a small number of participants, so that developers can analyze which favorability stage upgrade mechanisms and gameplay mechanisms are unreasonable.
[0188] In one implementation, the above statistical method may further include the following step S170.
[0189] Step S170: Display the number of first virtual users corresponding to each favorability stage of the NPC in the form of a table on the display interface.
[0190] The tables shown in this embodiment can be as shown in Table 5.
[0191] Table 5 shows the number of first virtual users corresponding to each favorability stage of each NPC.
[0192] Affection stage gender NPC1 NPC2 NPC3 NPC4 NPC5 1 female Number of people x Number of people y Number of people z …… 1 male …… 2 female 2 male
[0193] In step S170, in response to the first display request, the number of first virtual users corresponding to each favorability stage of the NPC can be displayed in a table format on the display interface. This first display request may be generated after a query operation by the developer.
[0194] The aforementioned display interface can be the display interface of an electronic device, the display interface of a monitor connected in communication with the electronic device, or the display interface of other devices connected in communication with the electronic device. This display interface can be the interface for developers or other personnel.
[0195] In this embodiment of the application, when the above statistical method is used to count the favorability information of multiple NPCs, as shown in Table 5, the number of first virtual users corresponding to each favorability stage of each NPC can be displayed on the display interface.
[0196] This embodiment displays the number of first virtual users corresponding to each favorability stage of an NPC in a table format, which allows developers to clearly and conveniently view the number of first virtual users corresponding to each favorability stage of an NPC.
[0197] In one specific embodiment, the above statistical method may further include the following step S180.
[0198] Step S180: Display the number of virtual users whose time spent improving from the (i-1)th favorability stage to the ith favorability stage in the display interface in the form of a table.
[0199] The tables shown in this embodiment can be as shown in Table 6.
[0200] Table 6 shows the distribution of the number of users who spent time progressing from the (i-1)th favorability stage to the ith favorability stage.
[0201]
[0202]
[0203] In step S180, in response to the second display request, the number of virtual users whose time spent improving their favorability from the (i-1)th favorability stage to the ith favorability stage falls within each time range can be displayed in a table format on the display interface. This second display request may be generated after a query operation by the developer. The second display request may be the same as or different from the first display request; this application does not specifically limit this.
[0204] In this embodiment of the application, when the above statistical method is used to count the favorability information of multiple NPCs, as shown in the table, the display interface can show the number of virtual users whose time spent by each NPC from the (i-1)th favorability stage to the ith favorability stage is within each time range.
[0205] Corresponding to the NPC favorability information statistics method provided in the first embodiment of this application, the second embodiment of this application also provides an NPC favorability information statistics device, wherein the NPC corresponds to N favorability stages, where N is an integer greater than 1, such as... Figure 5 As shown, the device includes:
[0206] The determining unit 510 is used to determine the time corresponding to each virtual user's various favorability stages with the NPC;
[0207] The acquisition unit 520 is used to acquire the time corresponding to the i-th favorability stage of the NPC and the time corresponding to the (i-1)-th favorability stage of the NPC for each virtual user;
[0208] The calculation unit 530 is used to calculate the time difference between the time corresponding to the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage of each virtual user, and to determine the time difference as the time spent by each virtual user to improve the favorability of the NPC from the (i-1)-th favorability stage to the i-th favorability stage.
[0209] Where i is an integer, and i iterates from 2 to N.
[0210] Optionally, the calculation unit 530 is further configured to: count the number of virtual users among the virtual users whose time spent improving from the (i-1)th favorability stage to the ith favorability stage is within the time range of nT to (n+1)T, where n is an integer, n iterates from 0 to m, m is a positive integer and m is less than a preset threshold, and T is a time greater than 0.
[0211] Optionally, the time corresponding to each favorability stage of the virtual user on the NPC is any one of the following:
[0212] The time it takes for the virtual user to upgrade to each favorability stage of the NPC;
[0213] The virtual user is at any point in time during the various favorability stages of the NPC;
[0214] The most recent interaction time between the virtual user and the NPC during the various favorability stages of the NPC.
[0215] Optionally, the acquisition unit 520 is further configured to: acquire the time when the favorability value of each virtual user to the NPC changes and the changed favorability value;
[0216] The determining unit 510 is specifically used for: for each virtual user, determining the favorability stage of the NPC to which the changed favorability value corresponding to the virtual user is located; for each favorability stage of the NPC to which the virtual user is already located, determining the time of each change time corresponding to the favorability stage as the time of the virtual user in that favorability stage.
[0217] Optionally, the acquisition unit 520 is specifically used to: acquire from the logs of each virtual user the time when the favorability value of each virtual user towards the NPC changed and the changed favorability value.
[0218] Optionally, the statistical device performs statistics according to a preset statistical period;
[0219] The acquisition unit 520 is specifically used to: acquire the time when the favorability value of each virtual user towards the NPC changes and the changed favorability value in each statistical period before the current statistical period.
[0220] The determining unit 510 is specifically used to: determine the time difference as the time taken for each virtual user to improve from the (i-1)th favorability stage of the NPC to the ith favorability stage within the current statistical period.
[0221] Optionally, the acquisition unit 520 is specifically used to: select each second virtual user who has reached the i-th favorability stage of the NPC from the virtual users, and acquire the time corresponding to the i-th favorability stage of the NPC and the time corresponding to the (i-1)-th favorability stage of the NPC for each second virtual user.
[0222] The calculation unit 530 is specifically used to: calculate the time difference between the time corresponding to the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage for each of the second virtual users, and determine the time difference as the time spent by each of the second virtual users to improve the favorability of the NPC from the (i-1)-th favorability stage to the i-th favorability stage.
[0223] Optionally, the calculation unit 530 is further configured to: for the j-th favorability stage corresponding to the NPC, count the number of first virtual users from among the virtual users, and the highest favorability stage of the NPC reached by the first virtual user is the j-th favorability stage; where j is an integer, and j iterates from 1 to N.
[0224] Optionally, the calculation unit 530 is specifically used to: count the number of first virtual users based on first time information, where the first time information is the time corresponding to each virtual user's various favorability stages of the NPC.
[0225] Optionally, the calculation unit 530 is specifically used to: count the number of first virtual users corresponding to virtual users of different genders from each virtual user.
[0226] Optionally, the calculation unit 530 is further configured to: for the i-th favorability stage corresponding to the NPC, count the number of third virtual users from the plurality of virtual users, wherein the third virtual user is a virtual user who has reached the i-th favorability stage.
[0227] Optionally, the device further includes:
[0228] The first display unit is used to display the number of the first virtual users corresponding to each favorability stage of the NPC in a table format on the display interface.
[0229] Optionally, the device further includes:
[0230] The second display unit is used to display, in a table format on the display interface, the number of virtual users whose time spent improving from the (i-1)th favorability stage to the ith favorability stage falls within each of the time ranges.
[0231] Corresponding to the NPC favorability information statistics method provided in the first embodiment of this application, the third embodiment of this application also provides an electronic device for statistics of NPC favorability information. For example... Figure 6 As shown, the electronic device includes: a processor 601; and a memory 602 for storing a program for calculating the NPC's favorability information. After the device is powered on and the processor runs the program for calculating the NPC's favorability information, it performs the following steps:
[0232] Determine the time corresponding to each virtual user's various favorability stages with the NPC;
[0233] Obtain the time corresponding to the i-th favorability stage of the NPC for each virtual user and the time corresponding to the (i-1)-th favorability stage of the NPC;
[0234] Calculate the time difference between the time corresponding to the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage for each virtual user, and determine the time difference as the time spent by each virtual user to raise the favorability of the NPC from the (i-1)-th favorability stage to the i-th favorability stage;
[0235] Where i is an integer, and i iterates from 2 to N.
[0236] Corresponding to the NPC favorability information statistics method provided in the first embodiment of this application, the fourth embodiment of this application provides a computer-readable storage medium storing a program for the NPC favorability information statistics method. This program is executed by a processor to perform the following steps:
[0237] Determine the time corresponding to each virtual user's various favorability stages with the NPC;
[0238] Obtain the time corresponding to the i-th favorability stage of the NPC for each virtual user and the time corresponding to the (i-1)-th favorability stage of the NPC;
[0239] Calculate the time difference between the time corresponding to the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage for each virtual user, and determine the time difference as the time spent by each virtual user to raise the favorability of the NPC from the (i-1)-th favorability stage to the i-th favorability stage;
[0240] Where i is an integer, and i iterates from 2 to N.
[0241] It should be noted that for a detailed description of the apparatus, electronic device and computer-readable storage medium provided in the second, third and fourth embodiments of this application, please refer to the relevant description of the first embodiment of this application, which will not be repeated here.
[0242] Although this application discloses preferred embodiments as described above, it is not intended to limit this application. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of this application. Therefore, the scope of protection of this application should be determined by the scope defined in the claims of this application.
[0243] In a typical configuration, a node device in a blockchain includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0244] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0245] 1. Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage media, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include non-transitory computer-readable media, such as modulated data signals and carrier waves.
[0246] 2. Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can 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, etc.) containing computer-usable program code.
[0247] Although this application discloses preferred embodiments as described above, it is not intended to limit this application. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of this application. Therefore, the scope of protection of this application should be determined by the scope defined in the claims of this application.
Claims
1. A method for statistically analyzing NPC favorability information, characterized in that, The NPC has N favorability stages, where N is an integer greater than 1. The method includes: Obtain the time when the favorability value of each virtual user towards the NPC changes, and the changed favorability value; Determine the time corresponding to each virtual user in each favorability stage of the NPC; for each virtual user, determine the time corresponding to each favorability stage of the NPC in the following manner: determine the favorability stage of the NPC in which each of the changed favorability values corresponding to the virtual user is located; for each favorability stage of the NPC in which the virtual user is already located, determine the time of each of the changed times corresponding to the favorability stage as the time of the virtual user in that favorability stage; Obtain the time corresponding to the i-th favorability stage of the NPC for each virtual user and the time corresponding to the (i-1)-th favorability stage of the NPC; Calculate the time difference between the time corresponding to the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage for each virtual user, so as to determine the time difference as the time spent by each virtual user from the (i-1)-th favorability stage to the i-th favorability stage of the NPC; Where i is an integer, and i iterates from 2 to N.
2. The method according to claim 1, characterized in that, The method further includes: The number of virtual users whose upgrade time falls within each preset time range is counted from all the virtual users. The upgrade time is the time spent by the virtual user to upgrade from the (i-1)th favorability stage to the ith favorability stage.
3. The method according to claim 2, characterized in that, The step of counting the number of virtual users whose upgrade duration falls within each preset duration range from the virtual users includes: The number of virtual users whose upgrade duration falls within the range of nT to (n+1)T is counted from each of the virtual users, where n is an integer, n iterates from 0 to m, m is a positive integer, m is less than a preset threshold, and T is a duration greater than 0.
4. The method according to claim 1, characterized in that, The time corresponding to each favorability stage of the virtual user on the NPC is any one of the following: The time it takes for the virtual user to upgrade to each favorability stage of the NPC; The virtual user is at any point in time during the various favorability stages of the NPC; The most recent interaction time between the virtual user and the NPC during the various favorability stages of the NPC.
5. The method according to claim 1, characterized in that, The step of obtaining the time corresponding to the i-th favorability stage of each virtual user with respect to the NPC and the time corresponding to the (i-1)-th favorability stage of the NPC includes: Select the second virtual users who have reached the i-th favorability stage of the NPC from among the virtual users; Obtain the time corresponding to the i-th favorability stage of the NPC for each of the second virtual users and the time corresponding to the (i-1)-th favorability stage of the NPC; The calculation of the time difference between the time corresponding to the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage for each virtual user includes: Calculate the time difference between the time corresponding to the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage for each of the second virtual users.
6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: For the j-th favorability stage corresponding to the NPC, the number of first virtual users is counted from all virtual users, and the highest favorability stage of the NPC reached by the first virtual user is the j-th favorability stage. Where j is an integer, and j iterates from 1 to N.
7. The method according to claim 6, characterized in that, The number of the first virtual user is counted from all the virtual users, including: The number of virtual users is counted based on the first time information, where the first time information is the time corresponding to each virtual user's various favorability stages with the NPC.
8. The method according to claim 7, characterized in that, The process of counting the number of the first virtual user from among all virtual users includes: Count the number of first virtual users corresponding to virtual users of different genders from each group of virtual users.
9. The method according to any one of claims 1 to 5, characterized in that, The method further includes: For the i-th favorability stage corresponding to the NPC, the number of third virtual users is counted from the multiple virtual users. The third virtual user is the virtual user who has reached the i-th favorability stage.
10. The method according to claim 6, characterized in that, The method further includes: The number of the first virtual users corresponding to each favorability stage of the NPC is displayed in a table on the display interface.
11. The method according to claim 2, characterized in that, The method further includes: The display interface shows, in tabular form, the number of virtual users whose time spent improving from the (i-1)th favorability stage to the ith favorability stage falls within each of the specified time ranges.
12. The method according to claim 1, characterized in that, The step of obtaining the time when each virtual user's favorability value towards the NPC changes and the changed favorability value includes: Obtain the time when each virtual user's favorability towards the NPC changes and the changed favorability value from each virtual user's logs.
13. The method according to claim 1, characterized in that, The statistical method performs statistics according to a preset statistical period; The step of obtaining the time when each virtual user's favorability value towards the NPC changes and the changed favorability value includes: Obtain the current statistical period and the time when the favorability value of each virtual user towards the NPC changes and the changed favorability value in each statistical period before the current statistical period; The method further includes: The time difference is defined as the time taken for each virtual user to advance from the (i-1)th favorability stage of the NPC to the ith favorability stage within the current statistical period.
14. A device for collecting NPC favorability information, characterized in that, The NPC has N favorability stages, where N is an integer greater than 1. The device includes: The determining unit is configured to acquire the time when the favorability value of each virtual user to the NPC changes and the changed favorability value, determine the time corresponding to each virtual user in each favorability stage of the NPC, and for each virtual user, determine the time corresponding to each favorability stage of the NPC in the following manner: determine the favorability stage of the NPC in which each of the changed favorability values corresponding to the virtual user is located; for each favorability stage of the NPC that the virtual user is already in, determine the time among the changed times corresponding to the favorability stage as the time of the virtual user in that favorability stage; The acquisition unit is used to acquire the time corresponding to the i-th favorability stage of the NPC and the time corresponding to the (i-1)-th favorability stage of the NPC for each virtual user; The calculation unit is used to calculate the time difference between the time corresponding to the i-th favorability stage and the time corresponding to the (i-1)-th favorability stage of each virtual user, so as to determine the time difference as the time spent by each virtual user from the (i-1)-th favorability stage of the NPC to the i-th favorability stage. Where i is an integer, and i iterates from 2 to N.
15. An electronic device, characterized in that, include: processor; as well as A memory for storing a data processing program, which, when the electronic device is powered on and runs through the processor, executes the method as described in any one of claims 1-13.
16. A computer-readable storage medium, characterized in that, The system contains a data processing program that is executed by a processor to perform the method as described in any one of claims 1-13.
Citation Information
Patent Citations
.
KR1020170087238A