CN112156470A - Resource processing method and device based on virtual scene and computer equipment - Google Patents

Resource processing method and device based on virtual scene and computer equipment Download PDF

Info

Publication number
CN112156470A
CN112156470A CN202011129006.0A CN202011129006A CN112156470A CN 112156470 A CN112156470 A CN 112156470A CN 202011129006 A CN202011129006 A CN 202011129006A CN 112156470 A CN112156470 A CN 112156470A
Authority
CN
China
Prior art keywords
resource
target
attribute
survival
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011129006.0A
Other languages
Chinese (zh)
Inventor
许沙源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tencent Information Technology 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 CN202011129006.0A priority Critical patent/CN112156470A/en
Publication of CN112156470A publication Critical patent/CN112156470A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/537Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a resource processing method and device based on a virtual scene, computer equipment and a storage medium. The method comprises the following steps: determining an attribute value of at least one survival attribute corresponding to a virtual role in a virtual scene; when the attribute value indicates that the virtual role is in a non-safe state, determining that the survival attribute corresponding to the attribute value is a target survival attribute, and displaying a negative state identifier corresponding to the target survival attribute; determining a set of resources associated with the virtual role; and when the resource set has target consumed resources for increasing the attribute values of the target survival attributes, displaying the resource identifiers of the target consumed resources at positions corresponding to the negative state identifiers. By adopting the method, the user does not need to check the resource information of the target consumed resource, and the operation efficiency is improved.

Description

Resource processing method and device based on virtual scene and computer equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a resource processing method and apparatus based on a virtual scene, a computer device, and a storage medium.
Background
With the development of computer technology, people's leisure and recreation ways have changed greatly, and many network activities, such as survival games, have appeared. In the survival type game, there are weather systems such as raining, snowing, and sand storm, and there are also settings of survival attributes such as hunger, coldness, and health, which are targets to be concerned by a player for survival in the game, and the player overcomes survival pressure by various behaviors or by consuming resources, and the survival attributes are in a safe zone. For example, if a player is in an extremely cold weather, the body temperature of the player may be lowered, and if the player does not use resources such as cotton clothes or medicines at this time, the player may get ill or freeze.
In the traditional survival type game, resources owned by a player are generally put into a backpack, and the player selects needed resources from the backpack and uses the resources. However, when selecting resources from the backpack, the player needs to check the detailed description of the resources to determine the resources needed, which results in inefficient operation of the player.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a virtual scene-based resource processing method, device, computer device, and storage medium capable of improving the operating efficiency of a player.
A resource processing method based on virtual scenes, the method comprising:
determining an attribute value of at least one survival attribute corresponding to a virtual role in a virtual scene;
when the attribute value indicates that the virtual role is in a non-safe state, determining that the survival attribute corresponding to the attribute value is a target survival attribute, and displaying a negative state identifier corresponding to the target survival attribute;
determining a set of resources associated with the virtual role;
and when the resource set has target consumed resources for increasing the attribute values of the target survival attributes, displaying the resource identifiers of the target consumed resources at positions corresponding to the negative state identifiers.
A virtual scene-based resource processing apparatus, the apparatus comprising:
the attribute value determining module is used for determining the attribute value of at least one survival attribute corresponding to the virtual role in the virtual scene;
the first display module is used for determining the survival attribute corresponding to the attribute value as a target survival attribute and displaying a negative state identifier corresponding to the target survival attribute when the attribute value indicates that the virtual role is in a non-safe state;
a resource set determination module for determining a resource set associated with the virtual role;
and the second display module is used for displaying the resource identifier of the target consumed resource at the position corresponding to the negative state identifier when the target consumed resource for increasing the attribute value of the target survival attribute exists in the resource set.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
determining an attribute value of at least one survival attribute corresponding to a virtual role in a virtual scene;
when the attribute value indicates that the virtual role is in a non-safe state, determining that the survival attribute corresponding to the attribute value is a target survival attribute, and displaying a negative state identifier corresponding to the target survival attribute;
determining a set of resources associated with the virtual role;
and when the resource set has target consumed resources for increasing the attribute values of the target survival attributes, displaying the resource identifiers of the target consumed resources at positions corresponding to the negative state identifiers.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
determining an attribute value of at least one survival attribute corresponding to a virtual role in a virtual scene;
when the attribute value indicates that the virtual role is in a non-safe state, determining that the survival attribute corresponding to the attribute value is a target survival attribute, and displaying a negative state identifier corresponding to the target survival attribute;
determining a set of resources associated with the virtual role;
and when the resource set has target consumed resources for increasing the attribute values of the target survival attributes, displaying the resource identifiers of the target consumed resources at positions corresponding to the negative state identifiers.
The resource processing method, the resource processing device, the computer equipment and the storage medium based on the virtual scene judge whether the virtual character is in a safe state or not by determining the attribute value of at least one survival attribute corresponding to the virtual character in the virtual scene. When the attribute value indicates that the virtual character is in the unsafe state, determining the survival attribute corresponding to the attribute value as the target survival attribute, displaying the negative state identification corresponding to the target survival attribute, and visually displaying which survival attribute causes the virtual character to be in the unsafe state. And determining a resource set associated with the virtual role, and when a target consumption resource for increasing the attribute value of the target survival attribute exists in the resource set, directly displaying the resource identifier of the target consumption resource at a position corresponding to the negative state identifier, and visually displaying the negative state which can be processed by the target consumption resource, so that a user does not need to check or memorize the negative state which is respectively processed by each target consumption resource, and the operation efficiency is improved.
Drawings
FIG. 1 is a diagram of an application environment of a resource processing method based on a virtual scenario in an embodiment;
FIG. 2 is a flowchart illustrating a method for processing resources based on a virtual scenario according to an embodiment;
FIG. 3 is a diagram of an interface for displaying a survivability attribute in a virtual scene, under an embodiment;
FIG. 4 is a flowchart illustrating the steps of displaying the resource identifier of the target consumable resource at a location corresponding to the negative status identifier in another embodiment;
FIG. 5 is a diagram illustrating an interface for displaying resource identifiers in an enlarged manner, according to an embodiment;
FIG. 6 is an interface diagram that illustrates the display of a resource identifier that cancels a target consumed resource and a negative status identifier for a target survivability attribute, under an embodiment;
FIG. 7 is a flowchart illustrating steps for displaying resource identifiers of corresponding target consuming resources in an enlarged manner according to an embodiment;
FIG. 8 is a schematic diagram of an interface showing a resource exchange portal for exchanging a target consuming resource at a location corresponding to a negative status indicator in one embodiment;
FIG. 9 is an interface diagram illustrating an embodiment of a survivability attribute, a negative status identifier, and a resource identifier in a virtual scene;
FIG. 10 is a flowchart illustrating a method for processing resources based on virtual scenarios according to another embodiment;
FIG. 11 is a block diagram showing a virtual scenario-based resource processing apparatus according to an embodiment;
FIG. 12 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The resource processing method based on the virtual scene can be applied to the application environment shown in fig. 1. The terminal 110 displays an attribute value of at least one of the survival attributes corresponding to the virtual scene and the virtual character. The server 120 determines an attribute value of at least one survival attribute corresponding to the virtual role in the virtual scene, and when the attribute value indicates that the virtual role is in an unsafe state, the server 120 determines that the survival attribute corresponding to the attribute value is a target survival attribute, and returns the target survival attribute to the terminal 110. The terminal 110 displays a negative state identifier corresponding to the target survival attribute in the virtual scene. Next, the server 120 determines a resource set associated with the virtual role, and when a target consumption resource for increasing the attribute value of the target survivability attribute exists in the resource set, the server 120 returns the target consumption resource to the terminal 110. The terminal 110 displays the resource identification of the target consumed resource at a position corresponding to the negative state identification. The server 120 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 cloud computing services. The terminal 110 may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal 110 and the server 120 may be directly or indirectly connected through wired or wireless communication, and the application is not limited thereto.
In one embodiment, the server 120 may be a cloud server, and the virtual scene-based resource processing method may be applied to a cloud application environment. The cloud application is installed on the terminal 110 but runs on the server 120. The cloud application cloud connection channel installed on the terminal 110 is connected to the server 120, and the server 120 transmits the video frame to the cloud application through the cloud connection channel. The terminal 110 displays a video screen generated after being processed by the server 120 through the cloud application. The server 120 determines an attribute value of at least one survival attribute corresponding to the virtual role in the virtual scene, determines the survival attribute corresponding to the attribute value as a target survival attribute when the attribute value indicates that the virtual role is in an unsafe state, and returns a video picture containing the target survival attribute and a negative state identifier corresponding to the target survival attribute to the cloud application of the terminal 110. And the cloud application displays the negative state identification corresponding to the target survival attribute in the virtual scene of the video picture. Next, the server 120 determines a resource set associated with the virtual role, and returns a video picture including the negative status identifier and a resource identifier of a corresponding target consumption resource to the cloud application when the target consumption resource for increasing the attribute value of the target survivability attribute exists in the resource set. The terminal 110 displays the video picture through the cloud application, and displays the resource identifier of the target consumption resource at a position corresponding to the negative state identifier.
In an embodiment, as shown in fig. 2, a resource processing method based on a virtual scenario is provided, which is described by taking the method as an example applied to the terminal in fig. 1, and includes the following steps:
step 202, determining an attribute value of at least one survival attribute corresponding to a virtual role in a virtual scene.
The survival attribute refers to a physiological attribute of the virtual character that enables survival in the virtual scene, for example, the survival attribute may include but is not limited to hunger, cold, health, temperature, or resistance. The attribute value represents the energy of the virtual character under the survival attribute, and may also be referred to as a life value, and the attribute value may be displayed in the form of a numerical value, a table, a progress bar, or an icon, but is not limited thereto.
Specifically, a user logs in an application on the terminal through a user identifier, and displays a virtual scene and a virtual character in the virtual scene on the terminal. The terminal determines at least one survival attribute corresponding to the virtual role in the virtual scene and an attribute value corresponding to the survival attribute. Then, the terminal may display at least one survival attribute and a corresponding attribute value corresponding to the virtual character in the virtual scene.
In one embodiment, when the terminal is in a virtual scene, the terminal monitors the survival attribute corresponding to the virtual character in the virtual scene in a timing or real-time manner, and detects the attribute value corresponding to each survival attribute.
And 204, when the attribute value indicates that the virtual role is in the non-safe state, determining the survival attribute corresponding to the attribute value as the target survival attribute, and displaying the negative state identifier corresponding to the target survival attribute.
The target survival attribute refers to a survival attribute for enabling the virtual role to be in an unsafe state. The safe state is whether the attribute value of the survival attribute is in a safe interval or not, and can be divided into a plurality of attribute threshold ranges, for example, the safe state is 100-60, the warning state is 60-30, and the non-safe state is 30-0. The attribute threshold may also be divided, for example, 60 or more belongs to the safe state, and 60 or less belongs to the non-safe state, etc., which is not limited in the embodiments of the application.
Specifically, when the attribute value of the survival attribute of the virtual character is lower than a certain level, the virtual character is caused to be in an unsafe state. For example, when the avatar is exposed to an extremely cold weather, the body temperature of the avatar may decrease, and when the temperature decreases below a certain value line, the avatar may become ill or otherwise unable to survive.
When the attribute value of at least one survival attribute indicates that the virtual role is in the non-safe state, the terminal determines that the survival attribute corresponding to the attribute value enabling the virtual role to be in the non-safe state is the target survival attribute. And then, the terminal determines the negative state identifier corresponding to the target survival attribute, and the target survival attribute and the corresponding negative state identifier.
At step 206, a set of resources associated with the virtual role is determined.
The resource set is used for storing the consumed resources of the virtual roles. The resource to be consumed is a resource for increasing an attribute value corresponding to the survival attribute. Different consumable resources may be used to add attribute values for different survivability attributes, or different consumable resources may be used to add attribute values for the same survivability attribute.
Specifically, the terminal determines a set of resources associated with the virtual role.
And step 208, when the target consumed resource for increasing the attribute value of the target survival attribute exists in the resource set, displaying the resource identifier of the target consumed resource at the position corresponding to the negative state identifier.
Specifically, the terminal may determine whether a consumed resource for increasing an attribute value of the target survivability attribute exists in the resource set, and the existence is regarded as the target consumed resource. And then, the terminal determines a target survival attribute corresponding to the target consumed resource and a negative state identifier corresponding to the target survival attribute, and displays the resource identifier of the target consumed resource at a position corresponding to the negative state identifier.
Further, the terminal may display the resource identifier of the target consumption resource in a visual manner with directivity at a position corresponding to the negative state identifier. The position corresponding to the negative status indicator may be an area in front of, behind, to the left of, or to the right of the negative status indicator display position. The directional visualization mode may be a mode in which a directional line is used to point to the display position of the resource identifier of the target resource consumption and the display position of the corresponding negative state identifier.
In the above resource processing method based on the virtual scene, it is determined whether the virtual character is in a safe state by determining the attribute value of at least one survival attribute corresponding to the virtual character in the virtual scene. When the attribute value indicates that the virtual role is in the non-safe state, the survival attribute corresponding to the attribute value is determined as the target survival attribute, the negative state identification corresponding to the target survival attribute is displayed, and which survival attribute causes the virtual role to be in the unsafe state can be visually displayed. A set of resources associated with the virtual role is determined to determine whether there are consumable resources in the set of resources that can eliminate the unsafe condition. When the target consumption resource for increasing the attribute value of the target survival attribute exists in the resource set, the resource identifier of the target consumption resource is directly displayed at the position corresponding to the negative state identifier, so that the negative state which can be processed by the target consumption resource is visually displayed, and a user can directly see which kind of attribute value of the survival attribute is used for supplementing each consumption resource without checking or memorizing the resource information of each target consumption resource, so that the unsafe state of the virtual role can be quickly eliminated, and the operation efficiency is improved.
In one embodiment, the terminal may display each survival attribute corresponding to the virtual role through the survival attribute identifier in the virtual scene, and display an attribute value corresponding to each survival attribute. Further, the attribute value corresponding to each survival attribute can be displayed through the progress of the rectangular frame surrounding the survival attribute identification. The level of the virtual character may also be displayed in the virtual scene. As shown in fig. 3, in the virtual scene, 4 kinds of survival attributes corresponding to the virtual character are displayed: hunger, illness, inflammation and coldness. The attribute value corresponding to each survival attribute is displayed by the progress of the rectangular frame surrounding the survival attribute identifier, for example, in fig. 3, the "hunger" attribute is represented by the "stomach" identifier, and the numerical value corresponding to the "hunger" attribute is displayed by the progress bar of the rectangular frame surrounding the "stomach" identifier. The slashed part in the progress bar of the rectangular frame represents the currently available attribute value of the survival attribute, and the blank part displays the consumed attribute value of the survival attribute. The current level of the virtual character may also be displayed in the virtual scene, e.g., level 4.
In one embodiment, as shown in fig. 4, when a target consumed resource for increasing an attribute value of a target survivability attribute exists in a resource set, displaying a resource identifier of the target consumed resource at a position corresponding to a negative state identifier includes:
step 402, when the resource set has target consumption resources for increasing the attribute value of the target survival attribute, determining the negative face value corresponding to each target survival attribute.
Specifically, the terminal determines a resource set associated with the virtual role and determines consumed resources existing in the resource set. And when the resource set has the consumed resource for increasing the attribute value of the target survival attribute, taking the consumed resource as the target consumed resource corresponding to the target survival attribute.
And the terminal acquires the attribute values respectively corresponding to the target survival attributes, and determines the negative values respectively corresponding to the target survival attributes according to the attribute values. Further, for each target survival attribute, the terminal may obtain a corresponding attribute value and determine an attribute threshold corresponding to the target survival attribute. And when the attribute value is greater than or equal to the attribute threshold value, judging that the virtual role under the target survival attribute is in a safe state. And the terminal calculates a negative face value corresponding to the target survival attribute according to the attribute value corresponding to the target survival attribute and the attribute threshold value.
It is understood that different target survivability attributes may correspond to the attribute threshold, respectively, or that multiple different target survivability attributes may correspond to the same attribute threshold, for example, 60%.
And step 404, taking the target survival attribute corresponding to the negative face value meeting the acute state condition as the acute target survival attribute.
The acute state condition indicates that the virtual character is in the least safe state to the greatest extent in the current target survival attribute, and is the most urgent case in which the attribute value needs to be increased. Satisfaction of the acute condition may be with a negative face value greater than a negative threshold, or with a maximum negative value.
Specifically, the terminal acquires the acute state condition and determines a target survival attribute corresponding to the negative face value meeting the acute state condition. And the terminal takes the target survival attribute corresponding to the negative face value meeting the acute state condition as the acute target survival attribute.
Further, the terminal can determine the target survival attribute with the maximum negative value, and take the target survival attribute with the maximum negative value as the acute target survival attribute.
Or the terminal can obtain the negative threshold, compare each negative face value with the negative threshold, and take the target survival attribute corresponding to the negative face value larger than the negative threshold as the acute target survival attribute.
At step 406, an acute target-consuming resource for increasing the attribute value of the acute target survival attribute is determined.
Specifically, the consumed resource for increasing the target survival attribute in the resource set is taken as the target consumed resource, and the consumed resource for increasing the acute target survival attribute is taken as the acute target consumed resource. And the terminal determines the acute target consumption resources corresponding to the acute target survival attributes in the resource set respectively.
And step 408, magnifying and displaying the corresponding resource identifier of the acute target consumed resource at the position corresponding to the negative state identifier corresponding to the acute target survival attribute.
Specifically, the terminal obtains a resource identifier of the acute target consumed resource, and displays the resource identifier of the corresponding acute target consumed resource in an enlarged manner at a position corresponding to the negative state identifier corresponding to the acute target survival attribute. Further, the terminal displays the resource identifier of the corresponding target consumption resource in a reduced mode at the position corresponding to the negative hybrid station identifier corresponding to the remaining target survival attribute.
Further, the display area of the resource identifier displayed in an enlarged manner is larger than the display area of the resource identifier of the other target consumed resource except the acute target consumed resource in the target consumed resource.
In this embodiment, when a resource set includes a target consumption resource for increasing an attribute value of a target survival attribute, negative face values corresponding to the target survival attributes are determined, and the target survival attribute corresponding to the negative face value that meets the acute state condition is used as the acute target survival attribute to determine the target survival attribute that most needs to be increased by the attribute value currently. And amplifying and displaying the resource identifier of the corresponding acute target consumed resource at a position corresponding to the negative state identifier corresponding to the acute target survival attribute, and visually displaying the target survival attribute which most needs to be added with the attribute value at present and the usable target consumed resource, so that the user can directly select and use the target survival attribute to quickly supplement the attribute value of the acute target survival attribute and relieve the unsafe state of the virtual character.
Fig. 5 is a schematic interface diagram illustrating an enlarged display of a resource identifier in one embodiment. As shown in fig. 5, if the terminal determines that the negative status identifier corresponding to the acute target survival attribute is the "flame" identifier, the "flame" identifier is displayed in the virtual scene, and the resource identifier of the target consumption resource for increasing the attribute value of the acute target survival attribute is displayed in an enlarged manner at the position corresponding to the "flame" identifier, for example, the "medicine" identifier corresponding to the "flame" identifier in fig. 5 is displayed. And reducing and displaying resource identifiers of target consumed resources corresponding to the target survival attributes except the acute target survival attribute, such as displaying a 'pot' identifier and a 'cotton-padded clothes' identifier.
In one embodiment, when a target consumed resource for increasing an attribute value of the target survivability attribute exists in the resource set, displaying a resource identifier of the target consumed resource at a position corresponding to the negative state identifier, including:
when at least two candidate consumed resources for increasing the attribute values of the target survival attributes exist in the resource set, determining energy values corresponding to the at least two candidate consumed resources; determining a target consumption resource from at least two candidate consumption resources according to the energy value; and displaying the resource identification of the target consumption resource at the position corresponding to the negative state identification.
The energy value is energy of a consumed resource.
Specifically, the terminal determines a resource set associated with the virtual role and determines candidate consumed resources existing in the resource set. And when the resource set has the candidate consumed resource for increasing the attribute value of the target survival attribute, taking the candidate consumed resource as the target consumed resource corresponding to the target survival attribute. When at least two candidate consumed resources for increasing the attribute value of the same target survival attribute exist in the resource set, determining energy values corresponding to the at least two candidate consumed resources respectively. Then, the terminal can obtain an attribute value of the target survival attribute, and compare the attribute value with energy values corresponding to at least two candidate consumed resources respectively to determine which energy value can enable the virtual role under the target survival attribute to reach a safe state. And the terminal determines the candidate consumed resource corresponding to the energy value which enables the virtual role under the target survival attribute to reach the safe state as the target consumed resource.
And then, the terminal acquires a resource identifier corresponding to the target consumption resource and displays the resource identifier at a position corresponding to the negative state identifier of the target survival attribute. Further, the terminal can display the resource identifier of the target consumed resource in an enlarged manner at a position corresponding to the negative state identifier of the target survival attribute.
In this embodiment, when at least two candidate consumed resources for increasing the attribute value of the target survivability attribute exist in the resource set, the energy values corresponding to the at least two candidate consumed resources are determined to determine which candidate consumed resource can enable the virtual role to recover the security state more quickly. And determining a target consumption resource from the at least two candidate consumption resources according to the energy value, displaying the resource identifier of the target consumption resource at the position corresponding to the negative state identifier, directly displaying the target consumption resource which enables the virtual role to recover the safe state after use, and enabling a user to directly select and use the target consumption resource without viewing or memorizing the resource information of the target consumption resource.
In one embodiment, when a target consumed resource for increasing an attribute value of the target survivability attribute exists in the resource set, displaying a resource identifier of the target consumed resource at a position corresponding to the negative state identifier, including:
when at least two candidate consumed resources for increasing the attribute values of the target survival attributes exist in the resource set, determining the validity periods corresponding to the at least two candidate consumed resources; determining a target consumption resource from at least two candidate consumption resources according to the validity period; and displaying the resource identification of the target consumption resource at the position corresponding to the negative state identification.
Specifically, the terminal determines a resource set associated with the virtual role and determines candidate consumed resources existing in the resource set. And when the resource set has the candidate consumed resource for increasing the attribute value of the target survival attribute, taking the candidate consumed resource as the target consumed resource corresponding to the target survival attribute. When at least two candidate consumed resources for increasing the attribute value of the same target survival attribute exist in the resource set, determining the validity periods corresponding to the at least two candidate consumed resources respectively. Then, the terminal compares the validity periods, and determines the candidate consumption resource with the shortest validity period as the target consumption resource.
And then, the terminal acquires a resource identifier corresponding to the target consumption resource and displays the resource identifier at a position corresponding to the negative state identifier of the target survival attribute. Further, the terminal can display the resource identifier of the target consumed resource in an enlarged manner at a position corresponding to the negative state identifier of the target survival attribute.
In this embodiment, when at least two candidate consumed resources for increasing the attribute value of the target survivability attribute exist in the resource set, the validity periods corresponding to the at least two candidate consumed resources are determined, so as to determine which candidate consumed resource should be preferentially used. And determining a target consumption resource from the at least two candidate consumption resources according to the validity period, displaying the resource identifier of the target consumption resource at the position corresponding to the negative state identifier, and enabling a user to directly select and use the resource identifier without checking or memorizing the resource information and the validity period of the target consumption resource, thereby avoiding the expiration of the consumption resource.
In one embodiment, the method further comprises: responding to the selection operation of the displayed resource identifier, increasing the attribute value of the corresponding target survival attribute based on the target consumption resource corresponding to the selected resource identifier, and obtaining the updated attribute value; and when the updated attribute value indicates that the virtual role is in the safe state, canceling the display of the resource identifier of the target consumption resource and the negative state identifier of the target survival attribute.
Specifically, the terminal displays the resource identifier of the target consumption resource at a position corresponding to the negative state identifier, and the user can select the target consumption resource to be used. And the terminal responds to the selection operation of the displayed resource identification and determines the target consumed resource corresponding to the selected resource identification. And then, the terminal uses the target consumption resource to increase the attribute value of the corresponding target survival attribute to obtain the updated attribute value of the target survival attribute.
The terminal may then determine whether the updated attribute values place the virtual character in a secure state. Further, the terminal may obtain an attribute threshold of the target survival attribute, and compare the updated attribute value with the attribute threshold. And when the updated attribute value is greater than or equal to the attribute threshold value, indicating that the virtual role is in a safe state under the target survival attribute. And when the updated attribute value is smaller than the attribute threshold value, indicating that the virtual role is in a non-safe state under the target survival attribute.
And when the updated attribute value indicates that the virtual role is in a safe state under the target survival attribute, canceling the display of the resource identifier of the target consumed resource and canceling the display of the negative state identifier of the target survival attribute.
In this embodiment, in response to the selection operation of the displayed resource identifier, the attribute value of the corresponding target survival attribute is increased based on the target consumed resource corresponding to the selected resource identifier, and the updated attribute value is obtained, so as to determine again whether the virtual role is in the safe state according to the updated attribute. When the updated attribute value indicates that the virtual character is in the safe state, the display of the resource identifier of the target resource consumption can be cancelled, and the display of the negative state identifier of the target survival attribute can be cancelled, so that only the survival attribute causing the virtual character to be unsafe is displayed in the virtual scene.
FIG. 6 is an interface diagram that illustrates the display of a resource identifier that cancels the target consumed resource and a negative status identifier for the target survivability attribute in one embodiment. As shown in fig. 6(a), after the user selects to use "medicine" to increase the attribute value of the target survival attribute, the terminal obtains the updated attribute value. When the updated attribute value indicates that the virtual character is in the secure state, the display of the resource identifier of the target consumed resource and the negative state identifier of the target survivability attribute is cancelled, as shown in (b) in fig. 6. And after the display is cancelled, the terminal determines the survival attribute of the acute target again, and displays the resource identifier of the corresponding acute target consumed resource in an amplifying manner at the position corresponding to the negative state identifier corresponding to the survival attribute of the acute target, as shown in (b) of fig. 6, displays the pot identifier in an amplifying manner, and displays the cotton-padded clothes identifier in a reducing manner.
In one embodiment, as shown in fig. 7, the method further comprises:
and step 702, when the updated attribute value indicates that the virtual role is in the non-safe state, determining the negative face value corresponding to each target survival attribute.
Specifically, when the updated attribute value is smaller than the attribute threshold, the terminal determines that the virtual role is in the non-secure state under the target survival attribute. The terminal determines the target survival attributes displayed in the virtual scene and determines the negative face values corresponding to the target survival attributes respectively.
Step 704, determine a first target survival attribute corresponding to the largest negative face value of the negative face values and a second target survival attribute corresponding to the non-largest negative face value of the negative face values.
Specifically, the terminal determines the target survival attribute corresponding to the largest negative face value in the negative face values as a first target survival attribute, and determines the target survival attribute corresponding to the non-largest negative face value in the negative face values as a second target survival attribute.
Step 706, at the position corresponding to the negative state identifier of the first target survival attribute, displaying the resource identifier of the corresponding target consumption resource in an enlarged manner, where the display area of the resource identifier displayed in the enlarged manner is larger than the display area of the resource identifier of the target consumption resource corresponding to the second target survival attribute.
Specifically, the terminal determines a target consumed resource for increasing an attribute value of a first target survivability attribute and a target consumed resource for increasing an attribute value of a second target survivability attribute in the resource set.
And the terminal determines a negative state identifier of the first target survival attribute in the virtual scene, and enlarges and displays the resource identifier of the target consumption resource corresponding to the corresponding first target survival attribute at the position corresponding to the negative state identifier. And the terminal displays the resource identifier of the target consumption resource corresponding to the second target survival attribute at the position corresponding to the negative state identifier of the second target survival attribute. The display area of the resource identifier which is displayed in an amplified manner is larger than the display area of the resource identifier of the target consumption resource corresponding to the second target survival attribute.
Further, the terminal may display the resource identifier of the target consumption resource corresponding to the corresponding first target survival attribute in an enlarged manner. And the terminal reduces and displays the resource identifier of the target consumption resource corresponding to the second target survival attribute at the position corresponding to the negative state identifier of the second target survival attribute.
In this embodiment, when the updated attribute value indicates that the virtual role is in the non-secure state, the negative surface values corresponding to the target survival attributes are re-determined, so as to determine the first target survival attribute with the largest negative value. And displaying the resource identifier of the corresponding target consumed resource in an amplifying way at the position corresponding to the negative state identifier of the first target survival attribute, and displaying the resource identifier corresponding to the second target survival attribute corresponding to the non-maximum negative value in a reducing way, so that the user can be accurately recommended to use the consumed resource corresponding to the survival attribute which needs to be added with the attribute value most.
In one embodiment, the method further comprises: and after the display of the resource identifier of the target consumption resource and the negative state identifier of the target survival attribute is cancelled, adjusting the display positions of the residual target consumption resource and the residual negative state identifier in the virtual scene.
Specifically, after canceling the display of the resource identifier of the target consumption resource and the negative state identifier of the target survival attribute, the terminal determines the resource identifier of the remaining target consumption resource and the remaining negative state identifier in the virtual scene.
Then, the terminal can re-determine the target survival attribute indicating that the virtual role is in the unsafe state in the virtual scene, and determine the negative face values corresponding to the target survival attributes respectively. And adjusting the display positions of the resource identifiers of the remaining target consumed resources and the remaining negative state identifiers according to the negative values.
Further, the terminal takes the target survival attribute corresponding to the negative face value meeting the acute state condition as the acute target survival attribute, and displays the negative state identifier corresponding to the acute target survival attribute at the first position of the negative state identifier display position. And the resource identifier of the target consumption resource corresponding to the acute target survival attribute is displayed in an enlarged manner at the first position of the display position of the resource identifier.
Then, the terminal can randomly display the negative state identifier corresponding to the target survival attribute except the acute target survival attribute at the non-first position of the display position of the negative state identifier. And randomly displaying the resource identifier corresponding to the target survival attribute except the acute target survival attribute at the non-first position of the resource identifier display position. Or the negative state identifiers and the resource identifiers corresponding to the target survival attributes except the acute target survival attributes can be displayed in sequence according to the size of the negative face value.
In this embodiment, after the display of the resource identifier of the target consumption resource and the negative state identifier of the target survival attribute is cancelled, the display positions of the remaining target consumption resource and the remaining negative state identifier in the virtual scene are readjusted to visually display the target survival attribute which most needs to be added with the attribute value at present, so that the user operation efficiency is improved.
In one embodiment, the method further comprises: and when the target consumed resource for increasing the attribute value of the target survival attribute does not exist in the resource set, displaying a resource exchange entry for exchanging the target consumed resource at a position corresponding to the negative state identifier.
Specifically, when the terminal detects that the target consumed resource for increasing the attribute value of the target survivability attribute does not exist in the resource set, the resource exchange entry is displayed at the position corresponding to the negative state identifier corresponding to the target survivability attribute. The resource exchange portal is used for exchanging the target consumption resource.
Further, the terminal responds to the triggering operation of the resource exchange entrance, displays a consumed resource numerical value corresponding to the target consumed resource, and generates resource exchange information based on the consumed resource numerical value. The terminal responds to the confirmation operation of the resource exchange information and executes resource transfer to obtain the target consumption resource.
In this embodiment, when there is no target consumption resource for increasing the attribute value of the target survivability attribute in the resource set, a resource exchange entry for exchanging the target consumption resource is displayed, so that a user can quickly initiate exchange of the target consumption resource, thereby quickly acquiring a required target consumption resource.
FIG. 8 is a schematic interface diagram illustrating a resource exchange entry for exchanging the target consumption resource displayed at a position corresponding to the negative status flag in one embodiment. As shown in fig. 8, a target survival attribute indicating that the virtual character is in an unsafe state is displayed in the virtual scene, and a negative state identifier corresponding to the target survival attribute is displayed, for example, the displayed target survival attribute is "hungry", "sick", "hot", "cold", and the target consumed resource is an available prop. And correspondingly displaying the negative state identification below the target survival attribute. For example, the indication by "stomach" is a negative status indication for the attribute "hunger". And when the target resource consumption for increasing the attribute value of the target survival attribute does not exist in the resource collection, namely when the prop corresponding to the attribute value for increasing the hunger attribute does not exist in the resource collection, displaying the resource exchange entrance of the prop at the position corresponding to the negative state identifier of the hunger attribute. The prop corresponding to the attribute value for increasing the "hunger" attribute may be "pot", and as shown in fig. 8, a purchase entry of the prop "pot" is displayed at a position corresponding to the identifier of "stomach". The user directly purchases the prop "pot" by triggering the purchase entry. The store can also be entered through the purchase entrance, where the prop "pan" or other props are purchased.
In an embodiment, as shown in fig. 9, the terminal may display each survival attribute corresponding to the virtual role in the virtual scene, and display the negative status identifier corresponding to the target survival attribute, and correspondingly display the target consumed resource corresponding to each target survival attribute.
In one embodiment, the resource processing method based on the virtual scene further includes a step of replacing the target consumption resource, where the step specifically includes: responding to the triggering operation of the resource exchange entrance, and displaying a consumed resource numerical value corresponding to the target consumed resource; responding to the selection operation of the target consumption resource, and executing resource exchange operation based on the consumption resource value corresponding to the target consumption resource; after performing the resource exchange operation, displaying the resource identifier of the target consumed resource at a position corresponding to the negative status identifier.
The consumption resource value refers to a value for exchanging consumption resources, such as unit price.
Specifically, when the terminal detects the triggering operation of the user on the resource exchange entry, the terminal enters a resource exchange page. And the terminal displays the exchangeable consumed resources and the consumed resource numerical values corresponding to the consumed resources on the resource exchange page. The exchangeable consumption resource includes a target consumption resource.
The terminal displays the target consumption resource and the corresponding consumption resource value on the resource exchange page, and can also display the energy value corresponding to the target consumption resource. The user can select the target consumption resource to be exchanged, and the terminal responds to the selection operation of the target consumption resource and determines the consumption resource data corresponding to the selected target consumption resource. And then, the terminal executes resource transfer operation according to the consumed resource data corresponding to the target consumed resource so as to obtain the corresponding target consumed resource.
Further, the terminal generates resource exchange information based on the consumed resource data corresponding to the target consumed resource, and when the terminal detects a confirmation operation of the user for the resource exchange information, the terminal performs a resource transfer operation in response to the confirmation operation.
And then, after executing the resource exchange operation, the terminal acquires the corresponding target consumption resource, returns to the virtual scene, and displays the resource identifier of the target consumption resource at the position corresponding to the negative state identifier.
In this embodiment, when there is no target resource consumption for increasing the attribute value of the target survivability attribute in the resource set, the resource exchange entry is displayed, so that the user can quickly enter the exchange page of the target resource consumption. Responding to the triggering operation of the resource exchange entry, displaying the target consumption resource and the corresponding consumption resource numerical value, and executing the resource exchange operation based on the consumption resource numerical value corresponding to the target consumption resource so as to quickly exchange the required target consumption resource. And after the resource exchange operation is executed, displaying the resource identifier of the target consumption resource at the position corresponding to the negative state identifier, thereby directly providing the target consumption resource without the negative state in the virtual scene without searching or memorizing by a user.
In one embodiment, in response to a selection operation on a target consumption resource, performing a resource exchange operation based on a consumption resource value corresponding to the target consumption resource includes: responding to the selection operation of the target consumption resource, and displaying at least one resource transfer channel; and responding to the selection operation of the resource transfer channel, and executing resource exchange operation based on the consumption resource value corresponding to the target consumption resource through the selected resource transfer channel.
The resource transfer channel refers to a channel for transferring resources.
Specifically, the terminal responds to the selection operation of the user on the target consumption resource and displays at least one resource transfer channel. The user can select from the displayed resource transfer channels, the terminal detects the selection operation of the user on any resource transfer channel, and determines the resource transfer channel selected by the selection operation. And then, the terminal generates resource exchange information according to the selected resource transfer channel and the consumption resource value corresponding to the target consumption resource. And the terminal responds to the confirmation operation of the resource exchange information and executes the resource transfer operation through the selected resource transfer channel to acquire the corresponding target consumption resource.
In one embodiment, the terminal may determine, in response to the confirmation operation for the resource exchange information, a resource transfer application corresponding to the selected resource transfer channel. The terminal may then jump to the resource transfer application and transfer the resource exchange information into the resource transfer application, such that the resource transfer application performs the resource transfer operation based on the resource exchange information.
Further, after the resource transfer application completes the resource transfer operation, a resource transfer result is generated. And the terminal returns a virtual scene from the resource transfer application and displays the resource identifier of the target consumption resource at the position corresponding to the negative state identifier.
In this embodiment, at least one resource transfer channel is provided, so that a user can select a resource channel for executing resource operation according to a requirement, and different users can complete resource exchange by using various channels.
Fig. 10 is a flowchart of a resource processing method based on a virtual scenario in an embodiment.
And the terminal displays each survival attribute corresponding to the virtual role in the virtual scene and the attribute value corresponding to each survival attribute.
Then, the terminal judges to compare each attribute value with the attribute threshold value, and determines whether each attribute value indicates that the virtual character is in an unsafe state.
And when the attribute value indicates that the virtual role is in the non-safe state, the terminal determines the survival attribute corresponding to the attribute value as the target survival attribute and displays the negative state identifier corresponding to the target survival attribute.
Then, the terminal determines a resource set associated with the virtual role, and determines whether a target consumption resource for increasing an attribute value of the target survival attribute exists in the resource set.
If the target resource consumption attribute exists, determining a negative face value corresponding to each target survival attribute, amplifying and displaying the resource identifier of the target consumption resource at the position corresponding to the negative state identifier corresponding to the target survival attribute with the maximum negative value, wherein the negative face value corresponds to the target survival attribute with the maximum negative value. And reducing and displaying the resource identifier of the target consumed resource corresponding to the remaining target survival attribute.
And then, the terminal responds to the selection operation of the displayed resource identifier, and increases the attribute value of the corresponding target survival attribute based on the target consumed resource corresponding to the selected resource identifier to obtain the updated attribute value.
Optionally, when the updated attribute value indicates that the virtual role is in the safe state, the terminal cancels the display of the resource identifier of the target consumption resource and the negative state identifier of the target survival attribute.
And when the updated attribute value indicates that the virtual role is in the non-safety state, the terminal re-determines the negative face value corresponding to each target survival attribute, and continues processing according to the steps after the negative face value is determined.
And until the updated attribute value indicates that the virtual role is in the safe state, the terminal cancels the display of the resource identifiers of all the target consumption resources and the negative state identifiers of the target survival attributes in the virtual scene, and displays each survival attribute and the corresponding attribute value in the virtual scene.
In one embodiment, a resource processing method based on a virtual scene is provided, which includes:
and the terminal displays the virtual scene, and displays at least one survival attribute corresponding to the virtual role in the virtual scene and an attribute value corresponding to the survival attribute.
And when the attribute value indicates that the virtual role is in the non-safe state, the terminal determines the survival attribute corresponding to the attribute value as the target survival attribute and displays the negative state identifier corresponding to the target survival attribute.
The terminal then determines a set of resources associated with the virtual role.
And when the resource set has target consumed resources for increasing the attribute values of the target survival attributes, the terminal determines the negative face values corresponding to the target survival attributes respectively.
And then, the terminal takes the target survival attribute corresponding to the negative face value meeting the acute state condition as the acute target survival attribute.
Further, the terminal determines an acute target consuming resource for increasing the attribute value of the acute target survival attribute.
Further, the terminal displays the resource identifier of the corresponding acute target consumption resource in an amplifying manner at the position corresponding to the negative state identifier corresponding to the acute target survival attribute, and the display area of the displayed resource identifier in the amplifying manner is larger than the display area of the resource identifiers of other target consumption resources except the acute target consumption resource in the target consumption resources.
And then, the terminal responds to the selection operation of the displayed resource identifier, and increases the attribute value of the corresponding target survival attribute based on the target consumed resource corresponding to the selected resource identifier to obtain the updated attribute value.
Optionally, when the updated attribute value indicates that the virtual role is in the safe state, the terminal cancels the display of the resource identifier of the target consumption resource and the negative state identifier of the target survival attribute.
Optionally, when the updated attribute value indicates that the virtual role is in the non-secure state, the terminal determines negative face values corresponding to the target survival attributes respectively.
Then, the terminal determines a first target survival attribute corresponding to the maximum negative face value in the negative face values and a second target survival attribute corresponding to the non-maximum negative face value in the negative face values.
Further, the terminal displays the resource identifier of the corresponding target consumption resource in an enlarged manner at the position corresponding to the negative state identifier of the first target survival attribute, and the display area of the resource identifier displayed in the enlarged manner is larger than that of the resource identifier of the target consumption resource corresponding to the second target survival attribute.
Optionally, when the target consumed resource for increasing the attribute value of the target survivability attribute does not exist in the resource set, the terminal displays a resource exchange entry for exchanging the target consumed resource at a position corresponding to the negative state identifier.
And then, the terminal responds to the triggering operation of the resource exchange entrance and displays the consumed resource numerical value corresponding to the target consumed resource.
Then, the terminal responds to the selection operation of the target consumption resource and displays at least one resource transfer channel.
Further, the terminal responds to the selection operation of the resource transfer channel, and executes the resource exchange operation based on the consumption resource value corresponding to the target consumption resource through the selected resource transfer channel.
Further, after performing the resource exchange operation, the terminal displays the resource identifier of the target consumed resource at a position corresponding to the negative state identifier.
In this embodiment, whether the virtual role is in the safe state is determined by determining an attribute value of at least one survival attribute corresponding to the virtual role in the virtual scene. When the attribute value indicates that the virtual role is in the non-safe state, the survival attribute corresponding to the attribute value is determined as the target survival attribute, the negative state identification corresponding to the target survival attribute is displayed, and which survival attribute causes the virtual role to be in the unsafe state can be visually displayed.
A set of resources associated with the virtual role is determined to determine whether there are consumable resources in the set of resources that can eliminate the unsafe condition. And when the resource set has target consumed resources for increasing the attribute values of the target survival attributes, determining the negative face values corresponding to the target survival attributes respectively, and taking the target survival attributes corresponding to the negative face values meeting the acute state conditions as the acute target survival attributes to determine the target survival attributes which most need to increase the attribute values currently. And amplifying and displaying the resource identifier of the corresponding acute target consumed resource at a position corresponding to the negative state identifier corresponding to the acute target survival attribute, and visually displaying the target survival attribute which most needs to be added with the attribute value at present and the usable target consumed resource, so that the user can directly select and use the target survival attribute to quickly supplement the attribute value of the acute target survival attribute and relieve the unsafe state of the virtual character.
And when the updated attribute value indicates that the virtual role is in the non-safe state, re-determining the negative surface value corresponding to each target survival attribute respectively so as to determine the first target survival attribute with the maximum negative value. And displaying the resource identifier of the corresponding target consumed resource in an amplifying way at the position corresponding to the negative state identifier of the first target survival attribute, and displaying the resource identifier corresponding to the second target survival attribute corresponding to the non-maximum negative value in a reducing way, so that the user can be accurately recommended to use the consumed resource corresponding to the survival attribute which needs to be added with the attribute value most.
When the target consumed resources for increasing the attribute values of the target survival attributes do not exist in the resource set, a resource exchange entrance for exchanging the target consumed resources is displayed, so that a user can quickly initiate the exchange of the target consumed resources, and the required target consumed resources are quickly acquired.
And after the resource exchange operation is executed, displaying the resource identifier of the target consumption resource at the position corresponding to the negative state identifier, thereby directly providing the target consumption resource without the negative state in the virtual scene without searching or memorizing by a user.
It should be understood that although the various steps in the flowcharts of fig. 2-10 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-10 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 11, there is provided a virtual scene-based resource processing apparatus, which may be a part of a computer device using a software module or a hardware module, or a combination of the two modules, and specifically includes: an attribute value determination module 1102, a first display module 1104, a resource set determination module 1106, and a second display module 1108, wherein:
an attribute value determining module 1102 is configured to determine an attribute value of at least one survival attribute corresponding to a virtual role in a virtual scene.
A first display module 1104, configured to determine, when the attribute value indicates that the virtual role is in the non-secure state, that the survival attribute corresponding to the attribute value is a target survival attribute, and display a negative state identifier corresponding to the target survival attribute.
A resource set determination module 1106 configured to determine a set of resources associated with the virtual role.
A second display module 1108, configured to, when a target consumed resource for increasing an attribute value of the target survivability attribute exists in the resource set, display a resource identifier of the target consumed resource at a position corresponding to the negative state identifier.
The resource processing device based on the virtual scene determines the attribute value of at least one survival attribute corresponding to the virtual character in the virtual scene to judge whether the virtual character is in a safe state. When the attribute value indicates that the virtual role is in the non-safe state, the survival attribute corresponding to the attribute value is determined as the target survival attribute, the negative state identification corresponding to the target survival attribute is displayed, and which survival attribute causes the virtual role to be in the unsafe state can be visually displayed. A set of resources associated with the virtual role is determined to determine whether there are consumable resources in the set of resources that can eliminate the unsafe condition. When the target consumption resource for increasing the attribute value of the target survival attribute exists in the resource set, the resource identifier of the target consumption resource is directly displayed at the position corresponding to the negative state identifier, so that the negative state which can be processed by the target consumption resource is visually displayed, and a user can directly see which kind of attribute value of the survival attribute is used for supplementing each consumption resource without checking or memorizing the resource information of each target consumption resource, so that the unsafe state of the virtual role can be quickly eliminated, and the operation efficiency is improved.
In one embodiment, the second display module 1108 is further configured to determine, when a target consumed resource for increasing an attribute value of the target survivability attribute exists in the resource set, a negative face value corresponding to each of the target survivability attributes; taking the target survival attribute corresponding to the negative face value meeting the acute state condition as an acute target survival attribute; determining an acute target consumed resource for increasing an attribute value of the acute target survival attribute; and amplifying and displaying the corresponding resource identifier of the acute target consumed resource at the position corresponding to the negative state identifier corresponding to the acute target survival attribute.
In this embodiment, when a resource set includes a target consumption resource for increasing an attribute value of a target survival attribute, negative face values corresponding to the target survival attributes are determined, and the target survival attribute corresponding to the negative face value that meets the acute state condition is used as the acute target survival attribute to determine the target survival attribute that most needs to be increased by the attribute value currently. And amplifying and displaying the resource identifier of the corresponding acute target consumed resource at a position corresponding to the negative state identifier corresponding to the acute target survival attribute, and visually displaying the target survival attribute which most needs to be added with the attribute value at present and the usable target consumed resource, so that the user can directly select and use the target survival attribute to quickly supplement the attribute value of the acute target survival attribute and relieve the unsafe state of the virtual character.
In one embodiment, the second display module 1108 is further configured to determine energy values corresponding to at least two candidate consumed resources when there are at least two candidate consumed resources in the resource set for increasing the attribute value of the target survivability attribute; determining a target consumption resource from the at least two candidate consumption resources according to the energy value; displaying the resource identifier of the target consumed resource at a position corresponding to the negative status identifier.
In this embodiment, when at least two candidate consumed resources for increasing the attribute value of the target survivability attribute exist in the resource set, the energy values corresponding to the at least two candidate consumed resources are determined to determine which candidate consumed resource can enable the virtual role to recover the security state more quickly. And determining a target consumption resource from the at least two candidate consumption resources according to the energy value, displaying the resource identifier of the target consumption resource at the position corresponding to the negative state identifier, directly displaying the target consumption resource which enables the virtual role to recover the safe state after use, and enabling a user to directly select and use the target consumption resource without viewing or memorizing the resource information of the target consumption resource.
In one embodiment, the second display module 1108 is further configured to: when at least two candidate consumed resources for increasing the attribute values of the target survival attributes exist in the resource set, determining the validity periods corresponding to the at least two candidate consumed resources; determining a target consumption resource from at least two candidate consumption resources according to the validity period; and displaying the resource identification of the target consumption resource at the position corresponding to the negative state identification.
In this embodiment, when at least two candidate consumed resources for increasing the attribute value of the target survivability attribute exist in the resource set, the validity periods corresponding to the at least two candidate consumed resources are determined, so as to determine which candidate consumed resource should be preferentially used. And determining a target consumption resource from the at least two candidate consumption resources according to the validity period, displaying the resource identifier of the target consumption resource at the position corresponding to the negative state identifier, and enabling a user to directly select and use the resource identifier without checking or memorizing the resource information and the validity period of the target consumption resource, thereby avoiding the expiration of the consumption resource.
In one embodiment, the apparatus further comprises: and canceling the display module. The cancel display module is configured to: responding to the selection operation of the displayed resource identifier, increasing the attribute value of the corresponding target survival attribute based on the target consumption resource corresponding to the selected resource identifier, and obtaining the updated attribute value; and when the updated attribute value indicates that the virtual role is in the safe state, canceling the display of the resource identifier of the target consumption resource and the negative state identifier of the target survival attribute.
In this embodiment, in response to the selection operation of the displayed resource identifier, the attribute value of the corresponding target survival attribute is increased based on the target consumed resource corresponding to the selected resource identifier, and the updated attribute value is obtained, so as to determine again whether the virtual role is in the safe state according to the updated attribute. When the updated attribute value indicates that the virtual character is in the safe state, the display of the resource identifier of the target resource consumption can be cancelled, and the display of the negative state identifier of the target survival attribute can be cancelled, so that only the survival attribute causing the virtual character to be unsafe is displayed in the virtual scene.
In one embodiment, the second display module 1108 is further configured to determine negative values corresponding to the target survival attributes when the updated attribute values indicate that the virtual role is in the non-secure state; determining a first target survival attribute corresponding to the maximum negative face value in the negative face values and a second target survival attribute corresponding to the non-maximum negative face value in the negative face values; and amplifying and displaying the resource identifier of the corresponding target consumption resource at the position corresponding to the negative state identifier of the first target survival attribute, wherein the display area of the amplified and displayed resource identifier is larger than that of the resource identifier of the target consumption resource corresponding to the second target survival attribute.
In this embodiment, when the updated attribute value indicates that the virtual role is in the non-secure state, the negative surface values corresponding to the target survival attributes are re-determined, so as to determine the first target survival attribute with the largest negative value. And displaying the resource identifier of the corresponding target consumed resource in an amplifying way at the position corresponding to the negative state identifier of the first target survival attribute, and displaying the resource identifier corresponding to the second target survival attribute corresponding to the non-maximum negative value in a reducing way, so that the user can be accurately recommended to use the consumed resource corresponding to the survival attribute which needs to be added with the attribute value most.
In one embodiment, the second display module 1108 is further configured to: and after the display of the resource identifier of the target consumption resource and the negative state identifier of the target survival attribute is cancelled, adjusting the display positions of the residual target consumption resource and the residual negative state identifier in the virtual scene.
In this embodiment, after the display of the resource identifier of the target consumption resource and the negative state identifier of the target survival attribute is cancelled, the display positions of the remaining target consumption resource and the remaining negative state identifier in the virtual scene are readjusted to visually display the target survival attribute which most needs to be added with the attribute value at present, so that the user operation efficiency is improved.
In one embodiment, the apparatus further comprises: and a resource exchange module. The resource exchange module is configured to: and when the target consumed resource for increasing the attribute value of the target survival attribute does not exist in the resource set, displaying a resource exchange entry for exchanging the target consumed resource at a position corresponding to the negative state identifier.
In this embodiment, when there is no target consumption resource for increasing the attribute value of the target survivability attribute in the resource set, a resource exchange entry for exchanging the target consumption resource is displayed, so that a user can quickly initiate exchange of the target consumption resource, thereby quickly acquiring a required target consumption resource.
In one embodiment, the resource exchange module is further configured to: responding to the triggering operation of the resource exchange entrance, and displaying a consumed resource numerical value corresponding to the target consumed resource; responding to the selection operation of the target consumption resource, and executing resource exchange operation based on the consumption resource value corresponding to the target consumption resource; after performing the resource exchange operation, displaying the resource identifier of the target consumed resource at a position corresponding to the negative status identifier.
In this embodiment, when there is no target resource consumption for increasing the attribute value of the target survivability attribute in the resource set, the resource exchange entry is displayed, so that the user can quickly enter the exchange page of the target resource consumption. Responding to the triggering operation of the resource exchange entry, displaying the target consumption resource and the corresponding consumption resource numerical value, and executing the resource exchange operation based on the consumption resource numerical value corresponding to the target consumption resource so as to quickly exchange the required target consumption resource. And after the resource exchange operation is executed, displaying the resource identifier of the target consumption resource at the position corresponding to the negative state identifier, thereby directly providing the target consumption resource without the negative state in the virtual scene without searching or memorizing by a user.
In one embodiment, the resource exchange module is further configured to: responding to the selection operation of the target consumption resource, and displaying at least one resource transfer channel; and responding to the selection operation of the resource transfer channel, and executing resource exchange operation based on the consumption resource value corresponding to the target consumption resource through the selected resource transfer channel.
In this embodiment, at least one resource transfer channel is provided, so that a user can select a resource channel for executing resource operation according to a requirement, and different users can complete resource exchange by using various channels.
For specific limitations of the virtual scene-based resource processing apparatus, reference may be made to the above limitations of the virtual scene-based resource processing method, which is not described herein again. The respective modules in the virtual scene-based resource processing apparatus may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 12. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a virtual scenario-based resource handling method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, in which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer-readable storage medium. The computer instructions are read by a processor of a computer device from a computer-readable storage medium, and the computer instructions are executed by the processor to cause the computer device to perform the steps in the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (15)

1. A resource processing method based on virtual scenes is characterized by comprising the following steps:
determining an attribute value of at least one survival attribute corresponding to a virtual role in a virtual scene;
when the attribute value indicates that the virtual role is in a non-safe state, determining that the survival attribute corresponding to the attribute value is a target survival attribute, and displaying a negative state identifier corresponding to the target survival attribute;
determining a set of resources associated with the virtual role;
and when the resource set has target consumed resources for increasing the attribute values of the target survival attributes, displaying the resource identifiers of the target consumed resources at positions corresponding to the negative state identifiers.
2. The method as claimed in claim 1, wherein when there is a target consumed resource in the resource collection for increasing the attribute value of the target survivability attribute, displaying the resource identifier of the target consumed resource at a position corresponding to the negative status identifier, comprises:
when the resource set has target consumption resources for increasing the attribute values of the target survival attributes, determining negative values corresponding to the target survival attributes respectively;
taking the target survival attribute corresponding to the negative face value meeting the acute state condition as an acute target survival attribute;
determining an acute target consumed resource for increasing an attribute value of the acute target survival attribute;
and amplifying and displaying the corresponding resource identifier of the acute target consumed resource at the position corresponding to the negative state identifier corresponding to the acute target survival attribute.
3. The method as claimed in claim 1, wherein when there is a target consumed resource in the resource collection for increasing the attribute value of the target survivability attribute, displaying the resource identifier of the target consumed resource at a position corresponding to the negative status identifier, comprises:
when at least two candidate consumed resources for increasing the attribute value of the target survival attribute exist in the resource set, determining energy values corresponding to the at least two candidate consumed resources;
determining a target consumption resource from the at least two candidate consumption resources according to the energy value;
displaying the resource identifier of the target consumed resource at a position corresponding to the negative status identifier.
4. The method as claimed in claim 1, wherein when there is a target consumed resource in the resource collection for increasing the attribute value of the target survivability attribute, displaying the resource identifier of the target consumed resource at a position corresponding to the negative status identifier, comprises:
when at least two candidate consumed resources for increasing the attribute values of the target survival attributes exist in the resource set, determining the validity periods corresponding to the at least two candidate consumed resources;
determining a target consumption resource from the at least two candidate consumption resources according to the validity period;
displaying the resource identifier of the target consumed resource at a position corresponding to the negative status identifier.
5. The method of claim 1, further comprising:
responding to the selection operation of the displayed resource identifier, increasing the attribute value of the corresponding target survival attribute based on the target consumption resource corresponding to the selected resource identifier, and obtaining the updated attribute value;
and when the updated attribute value indicates that the virtual role is in a safe state, canceling the display of the resource identifier of the target consumption resource and the negative state identifier of the target survival attribute.
6. The method of claim 5, further comprising:
when the updated attribute value indicates that the virtual role is in a non-safe state, determining a negative face value corresponding to each target survival attribute;
determining a first target survival attribute corresponding to the maximum negative face value in the negative face values and a second target survival attribute corresponding to the non-maximum negative face value in the negative face values;
and amplifying and displaying the resource identifier of the corresponding target consumption resource at the position corresponding to the negative state identifier of the first target survival attribute, wherein the display area of the amplified and displayed resource identifier is larger than that of the resource identifier of the target consumption resource corresponding to the second target survival attribute.
7. The method of claim 5, further comprising:
and after the resource identifier of the target consumed resource and the negative state identifier of the target survival attribute are canceled from being displayed, adjusting the display positions of the residual target consumed resource and the residual negative state identifier in the virtual scene.
8. The method according to any one of claims 1 to 7, further comprising:
and when the target consumed resource for increasing the attribute value of the target survival attribute does not exist in the resource set, displaying a resource exchange inlet for exchanging the target consumed resource at a position corresponding to the negative state identifier.
9. The method of claim 8, further comprising:
responding to the triggering operation of the resource exchange entry, and displaying a consumed resource numerical value corresponding to the target consumed resource;
responding to the selection operation of the target consumption resource, and executing resource exchange operation based on the consumption resource value corresponding to the target consumption resource;
after performing a resource exchange operation, displaying a resource identifier of the target consumed resource at a location corresponding to the negative status identifier.
10. The method according to claim 9, wherein said performing, in response to the selection operation on the target consumption resource, a resource exchange operation based on the consumption resource value corresponding to the target consumption resource comprises:
responding to the selection operation of the target consumption resource, and displaying at least one resource transfer channel;
and responding to the selection operation of the resource transfer channel, and executing resource exchange operation based on the consumption resource value corresponding to the target consumption resource through the selected resource transfer channel.
11. An apparatus for processing resources based on a virtual scene, the apparatus comprising:
the attribute value determining module is used for determining the attribute value of at least one survival attribute corresponding to the virtual role in the virtual scene;
the first display module is used for determining the survival attribute corresponding to the attribute value as a target survival attribute and displaying a negative state identifier corresponding to the target survival attribute when the attribute value indicates that the virtual role is in a non-safe state;
a resource set determination module for determining a resource set associated with the virtual role;
and the second display module is used for displaying the resource identifier of the target consumed resource at the position corresponding to the negative state identifier when the target consumed resource for increasing the attribute value of the target survival attribute exists in the resource set.
12. The apparatus according to claim 11, wherein the second display module is further configured to determine negative values corresponding to the target survivability attributes when the target consumed resources for increasing the attribute values of the target survivability attributes exist in the resource set; taking the target survival attribute corresponding to the negative face value meeting the acute state condition as an acute target survival attribute; determining an acute target consumed resource for increasing an attribute value of the acute target survival attribute; and amplifying and displaying the corresponding resource identifier of the acute target consumed resource at the position corresponding to the negative state identifier corresponding to the acute target survival attribute.
13. The apparatus of claim 11, wherein the second display module is further configured to determine energy values corresponding to at least two candidate consumed resources when at least two candidate consumed resources exist in the set of resources for increasing the attribute value of the target survivability attribute; determining a target consumption resource from the at least two candidate consumption resources according to the energy value; displaying the resource identifier of the target consumed resource at a position corresponding to the negative status identifier.
14. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 1 to 10 when executing the computer program.
15. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 10.
CN202011129006.0A 2020-10-21 2020-10-21 Resource processing method and device based on virtual scene and computer equipment Pending CN112156470A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011129006.0A CN112156470A (en) 2020-10-21 2020-10-21 Resource processing method and device based on virtual scene and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011129006.0A CN112156470A (en) 2020-10-21 2020-10-21 Resource processing method and device based on virtual scene and computer equipment

Publications (1)

Publication Number Publication Date
CN112156470A true CN112156470A (en) 2021-01-01

Family

ID=73867692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011129006.0A Pending CN112156470A (en) 2020-10-21 2020-10-21 Resource processing method and device based on virtual scene and computer equipment

Country Status (1)

Country Link
CN (1) CN112156470A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014121420A (en) * 2012-12-21 2014-07-03 Konami Digital Entertainment Co Ltd Game controller, game control method, program, and game system
CN108379846A (en) * 2018-03-16 2018-08-10 深圳冰川网络股份有限公司 A kind of player's On-line matching method and system for existence class game
CN108888956A (en) * 2018-06-27 2018-11-27 腾讯科技(深圳)有限公司 Virtual knapsack shows display methods, equipment and the storage medium at interface
CN110478904A (en) * 2019-08-16 2019-11-22 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and storage medium in virtual environment
CN111701244A (en) * 2020-06-18 2020-09-25 腾讯科技(深圳)有限公司 Control method and device of virtual prop, storage medium and electronic equipment
CN111729310A (en) * 2020-06-24 2020-10-02 网易(杭州)网络有限公司 Game prop sorting method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014121420A (en) * 2012-12-21 2014-07-03 Konami Digital Entertainment Co Ltd Game controller, game control method, program, and game system
CN108379846A (en) * 2018-03-16 2018-08-10 深圳冰川网络股份有限公司 A kind of player's On-line matching method and system for existence class game
CN108888956A (en) * 2018-06-27 2018-11-27 腾讯科技(深圳)有限公司 Virtual knapsack shows display methods, equipment and the storage medium at interface
CN110478904A (en) * 2019-08-16 2019-11-22 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and storage medium in virtual environment
CN111701244A (en) * 2020-06-18 2020-09-25 腾讯科技(深圳)有限公司 Control method and device of virtual prop, storage medium and electronic equipment
CN111729310A (en) * 2020-06-24 2020-10-02 网易(杭州)网络有限公司 Game prop sorting method and device and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
匿名: "冰火破坏神【游戏攻略】自动战斗", 《HTTP://G.IQIYI.COM/BINGHUOPOHUAISHEN/NEWS/342760.HTML》 *
匿名: "荒岛求生如何减少饥饿度", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/95C9D20D06DEFAEC4E7561B8.HTML》 *

Similar Documents

Publication Publication Date Title
US11574611B2 (en) Electronic device and method for controlling the same
US10586390B2 (en) Virtual reality electronic device for displaying combined graphic object and image frame and corresponding computer-readable recording medium
US10397153B2 (en) Electronic device and method for controlling reception of data in electronic device
KR20180099155A (en) Method for contents sharing and electronic device supporting the same
US10838612B2 (en) Apparatus and method for processing drag and drop
US10775846B2 (en) Electronic device for providing information related to smart watch and method for operating the same
KR20170013623A (en) Apparatus and method for controlling a display
US10852944B2 (en) Method for displaying soft key and electronic device thereof
US11995108B2 (en) Systems, devices, and methods for content selection
KR20180073188A (en) Electronic device and a method for displaying a web page using the same
CN112783594A (en) Message display method and device and electronic equipment
KR20180020544A (en) Electronic device and image display method thereof
CN111054070B (en) Commodity display method, device, terminal and storage medium based on game
EP3447673B1 (en) Electronic device and control method therefor
US20150310093A1 (en) Method of providing contents of an electronic device
CN112156470A (en) Resource processing method and device based on virtual scene and computer equipment
KR102486575B1 (en) Apparatus and method of recommending user-customized health food
KR20170057651A (en) Apparatus and method for providing handoff thereof
KR20170071116A (en) Server, electronic device, and method for image processing in electronic device
KR102349491B1 (en) Server for business management system and the control method thereof
US20190273816A1 (en) Method for managing notification relating to application and electronic device therefor
KR20220058864A (en) Calibration method and system for color measurement
US20160034661A1 (en) Accessing content based on a health assessment
KR20170022249A (en) Apparatus and method for providing information of electronic device
KR102583711B1 (en) Electronic apparatus and operating method thereof

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: 40037826

Country of ref document: HK

TA01 Transfer of patent application right

Effective date of registration: 20220208

Address after: 518052 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong

Applicant after: SHENZHEN TENCENT INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 518000 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 Floors

Applicant before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TA01 Transfer of patent application right