Virtual medicinal material collection methods, devices, storage media and computer equipment
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-26
- Publication Date
- 2026-08-14
AI Technical Summary
[0004]本申请的目的旨在至少能解决上述的技术缺陷之一,特别是现有技术中虚拟药材采集方案无法满足虚拟场景的动态变化,导致药材补给效率和经营效益较差,从而降低了用户体验的技术缺陷
本申请提供的虚拟药材采集方法、装置、存储介质及计算机设备,当虚拟场景中触发药材补给指令时,本申请可以自动响应该指令,生成包含多个待采集的虚拟药材的药材采集事件,实现一键式的采集任务发起,大幅减少玩家繁琐的药材选择操作;随后可以获取该药材采集事件中各个虚拟药材的药材属性,确定采集角色库中各个空闲角色的角色属性,以及,实时监测虚拟场景中各个野生区域的区域属性,从而可以构建涵盖药材、角色、区域三个层面的全面动态数据基础,其中,区域属性的实时监测可以确保后续采集决策始终基于虚拟场景的最新状态生成。在采集决策过程中,本申请可以对药材属性、区域属性和角色属性动态进行多维度适配性分析,生成药材采集事件的最优采集方案,该动态分析机制可以自适应虚拟场景的动态变化,匹配药材、角色和区域的最优组合,因此,根据生成的最优采集方案执行各个虚拟药材的采集操作,可以使采集效率和资源利用率提升到最高,进而直接转化为更好的经营效益。
Smart Images

Figure CN122558079A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of game technology, and in particular to a method, apparatus, storage medium and computer equipment for virtual medicinal material collection. Background Technology
[0002] As a core segment of the digital entertainment industry, the gaming industry has always prioritized technological iteration and user experience optimization for its continued development. In one particular game genre, especially in virtual games involving clinic management, medicinal herbs become a crucial resource supporting core gameplay elements such as clinic operation and quest progression. Players typically need to acquire sufficient quantities of specific herbs to complete storylines and fulfill treatment needs.
[0003] Currently, virtual herb gathering in most games requires players to manually select herbs, assign gathering characters, and choose gathering areas one by one. The entire process is cumbersome, requiring players to repeatedly adjust combinations, placing a heavy burden on their operation. Therefore, some games have introduced automatic gathering solutions. These solutions typically use fixed allocation rules for herb gathering, which cannot meet the dynamic changes of the virtual scene, resulting in poor herb supply efficiency and management effectiveness, thus reducing the user experience. Summary of the Invention
[0004] The purpose of this application is to at least solve one of the aforementioned technical defects, particularly the technical defect that the existing virtual medicinal herb collection scheme cannot meet the dynamic changes of the virtual scene, resulting in poor medicinal herb replenishment efficiency and business benefits, thereby reducing the user experience.
[0005] This application provides a virtual medicinal herb collection method, the method comprising: In response to a medicinal herb replenishment command triggered in a virtual scene, a medicinal herb collection event is generated, which includes multiple virtual medicinal herbs to be collected. Obtain the medicinal properties of each virtual medicinal herb, determine the character attributes of each idle character in the character collection library, and monitor the regional attributes of each wild area in the virtual scene in real time. A multi-dimensional adaptability analysis is dynamically performed on the medicinal material attributes, the regional attributes, and the role attributes to generate the optimal collection scheme for the medicinal material collection event; The collection operation for each virtual medicinal material is performed according to the optimal collection scheme.
[0006] Optionally, the triggering process of the medicinal material replenishment command includes: Receive at least one special event selected by the user in a virtual scene, and determine the medicinal material consumption requirement of the at least one special event, so as to generate a medicinal material replenishment instruction according to the medicinal material consumption requirement; And / or, when it is detected that the inventory of medicinal materials in the virtual scene does not meet the preset inventory conditions, a medicinal material replenishment command is automatically triggered.
[0007] Optionally, when the detection indicates that the inventory of medicinal materials in the virtual scene does not meet the preset inventory conditions, an automatic medicinal material replenishment command is triggered, including: The potential demand for medicinal materials in the TCM clinic is assessed based on real-time patient data from the virtual scene, and the preset inventory conditions are dynamically updated based on the potential demand for medicinal materials. When the inventory of medicinal materials in the virtual scenario does not meet the preset inventory conditions, a medicinal material replenishment instruction is generated based on the potential demand for medicinal materials.
[0008] Optionally, the step of generating a medicinal herb collection event that includes multiple virtual medicinal herbs to be collected and a collection priority in response to a medicinal herb replenishment command triggered in a virtual scene includes: Determine the medicinal herb demand data in the medicinal herb replenishment order, perform multi-dimensional inventory analysis on the medicinal herb demand data, and generate an initial replenishment list; The initial supply list is displayed in the virtual scene, and the submission result returned by the user based on the initial supply list is received to generate the final supply list; Obtain the medicinal herb replanting needs of the planting area in the virtual scene, and generate medicinal herb collection events containing multiple virtual medicinal herbs to be collected and collection priorities based on the final supply list and the medicinal herb replanting needs.
[0009] Optionally, the step of performing multi-dimensional inventory analysis on the medicinal material demand data to generate an initial replenishment list includes: Determine the required quantity, source, and urgency of each virtual medicinal material in the medicinal material demand data, and determine the collection priority of each virtual medicinal material based on its source and urgency. Obtain the current inventory quantity of each virtual medicinal herb in the pharmacy warehouse in the virtual scene, the quantity being collected en route from the wild area, and the growth status of the medicinal herb in the planting area; Based on the existing inventory, the quantity of items being collected in transit, and the growth status of each virtual medicinal herb, a gap analysis is performed on the corresponding demand quantity to obtain the size of the gap for each virtual medicinal herb. An initial supply list is generated based on the size of the shortage of each virtual medicinal herb and the collection priority.
[0010] Optionally, receiving the submission result returned by the user based on the initial supply list and generating the final supply list includes: In response to the user's direct confirmation based on the initial supply list, a final supply list is generated based on the initial supply list; Alternatively, in response to the user's data modification operation based on the initial supply list, a final supply list is generated based on the data modification result of the initial supply list.
[0011] Optionally, obtaining the medicinal herb replanting needs in the planting area of the virtual scene includes: Determine the growth status of the planted medicinal herbs in the planting area of the virtual scene, and generate a planting plan based on the medicinal herb planting task in the virtual scene and the growth status of the medicinal herbs; Obtain the inventory of medicinal herb seedlings in the planting area, and determine the replanting needs of medicinal herbs in the planting area based on the inventory of medicinal herb seedlings and the planting plan.
[0012] Optionally, obtaining the medicinal properties of each virtual medicinal herb includes: Determine the collection priority of each virtual medicinal herb in the medicinal herb collection event; Obtain the medicinal properties of each virtual medicinal herb from the virtual medicinal herb library, and add the collection priority of each virtual medicinal herb to the corresponding medicinal herb properties.
[0013] The medicinal material attributes include at least the following: collection priority, scarcity level, growth environment, growth cycle, collection duration, and collection risk factor.
[0014] Optionally, determining the character attributes of each idle character in the character database includes: Select currently idle characters from the character database and designate them as idle characters. Then, obtain the character attributes of each idle character from the character attribute system. The character attributes include at least herb gathering skills, carrying capacity, official authority, and environmental adaptability.
[0015] Optionally, the real-time monitoring of the regional attributes of each wild area in the virtual scene includes: Real-time monitoring of the current distribution of medicinal herbs and current weather data in each wild area, and obtaining the static attributes of each wild area in the virtual scene from the wild area database; The regional attributes of each wild area are dynamically updated based on the current distribution of medicinal herbs, current weather data, and static attributes. The static attributes include at least the regional geographical location, terrain complexity, weather influence coefficient, and official access permissions.
[0016] Optionally, the step of dynamically performing multi-dimensional adaptability analysis on the medicinal herb attributes, the regional attributes, and the role attributes to generate the optimal collection plan for the medicinal herb collection event includes: Call the multi-dimensional attribute matching model; The medicinal herb attributes, the regional attributes, and the role attributes are input into the multi-dimensional attribute matching model for adaptability modeling analysis, and the optimal collection scheme for the medicinal herb collection event is generated through the multi-dimensional attribute matching model.
[0017] Optionally, the construction process of the multi-dimensional attribute matching model includes: A multi-layered strong constraint verification rule is established based on each attribute dimension of the medicinal material attribute, the regional attribute, and the role attribute; the multi-layered strong constraint verification rule includes at least official authority constraint, environmental adaptation constraint, risk coefficient constraint, load capacity constraint, and regional resource constraint. Normalization was performed on each attribute dimension to obtain the medicinal material dimension factor, the regional dimension factor, the role dimension factor, and the global cost factor. The analytic hierarchy process was then used to assign weights to each dimension factor to obtain a multi-dimensional weighted scoring system. Using the multi-layer strong constraint verification rules as pre-filtering conditions, the preset initial matching model is iteratively trained using the multi-dimensional weighted scoring system to obtain the trained multi-dimensional attribute matching model.
[0018] Optionally, the multi-dimensional attribute matching model includes a constraint filtering layer, a dimension scoring layer, a matching inference layer, and a global optimization layer; The process of generating the optimal collection scheme for the medicinal herb collection event using the multi-dimensional attribute matching model includes: Through the constraint filtering layer, the legality of the medicinal material attributes, the regional attributes, and the role attributes is verified based on the multi-layer strong constraint verification rules, so as to obtain a feasible candidate set by combining and matching virtual medicinal materials, wild areas, and idle roles. Through the dimensional scoring layer, the medicinal material attributes, regional attributes, and role attributes in the feasible candidate set are quantitatively scored using the multi-dimensional weighted scoring system to obtain standardized scores; Through the matching inference layer, based on the standardized score, the feasible candidate set is matched bidirectionally between virtual medicinal materials and wild areas, matched with idle characters and wild areas, and matched with the collection quota of idle characters and virtual medicinal materials. Multiple feasible collection schemes are generated based on the matching results. Through the global optimization layer, based on the greedy iterative algorithm and the global resource load balancing strategy, the optimal collection scheme for the medicinal material collection event is obtained by comprehensively optimizing each feasible collection scheme.
[0019] Optionally, the step of dynamically performing multi-dimensional adaptability analysis on the medicinal herb attributes, the regional attributes, and the role attributes to generate the optimal collection scheme for the medicinal herb collection event further includes: During the collection of various virtual medicinal herbs, if the update of the regional attributes of each wild area in the virtual scene is detected, the current collection progress of the medicinal herb collection event is obtained. Based on the current collection progress and the updated regional attributes, the optimal collection scheme for the medicinal herb collection event is updated using the multidimensional matching scoring model.
[0020] Optionally, the optimal collection scheme includes at least one medicinal herb collection task, and each medicinal herb collection task includes a target collection role, a target collection area, a medicinal herb category quota, and an optimal collection route; The step of performing the collection operation for each virtual medicinal material according to the optimal collection scheme includes: According to the medicinal herb collection task, the target collection character is controlled to go to the target collection area to collect medicinal herbs according to the optimal collection route until the quota of the medicinal herb category is completed.
[0021] Optionally, the method further includes: Generate a progress screen for the medicinal herb collection event and display the progress screen at a preset location in the virtual scene; the progress screen includes a progress bar for the collection of each virtual medicinal herb. The collection progress bar in the collection progress screen is updated in real time according to the current collection progress of the medicinal material collection event.
[0022] This application also provides a virtual medicinal herb harvesting device, comprising: The event generation module is used to respond to the medicinal herb replenishment command triggered in the virtual scene and generate a medicinal herb collection event containing multiple virtual medicinal herbs to be collected. The attribute acquisition module is used to acquire the medicinal properties of each virtual medicinal herb, determine the role attributes of each idle character in the character collection library, and monitor the regional attributes of each wild area in the virtual scene in real time. The scheme generation module is used to dynamically perform multi-dimensional adaptability analysis on the medicinal material attributes, the regional attributes, and the role attributes to generate the optimal collection scheme for the medicinal material collection event. The medicinal herb collection module is used to perform collection operations on each virtual medicinal herb according to the optimal collection scheme.
[0023] This application also provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the virtual medicinal material collection method as described in any of the above embodiments.
[0024] This application also provides a computer device, including: one or more processors, and memory; The memory stores computer-readable instructions, which, when executed by the one or more processors, perform the steps of the virtual medicinal herb collection method as described in any of the above embodiments.
[0025] As can be seen from the above technical solutions, the embodiments of this application have the following advantages: The virtual medicinal herb gathering method, apparatus, storage medium, and computer equipment provided in this application can automatically respond to a medicinal herb replenishment command triggered in a virtual scene, generating a medicinal herb gathering event containing multiple virtual medicinal herbs to be gathered. This enables one-click initiation of gathering tasks, significantly reducing the tedious herb selection operations for players. Subsequently, the medicinal herb attributes of each virtual medicinal herb in the gathering event can be obtained, the character attributes of each idle character in the gathering character pool can be determined, and the regional attributes of each wild area in the virtual scene can be monitored in real time. This allows the construction of a comprehensive dynamic data foundation covering three levels: medicinal herbs, characters, and regions. Real-time monitoring of regional attributes ensures that subsequent gathering decisions are always based on the latest state of the virtual scene. During the gathering decision-making process, this application can dynamically perform multi-dimensional adaptability analysis on medicinal herb attributes, regional attributes, and character attributes to generate the optimal gathering plan for the medicinal herb gathering event. This dynamic analysis mechanism can adapt to the dynamic changes of the virtual scene, matching the optimal combination of medicinal herbs, characters, and regions. Therefore, executing the gathering operation of each virtual medicinal herb according to the generated optimal gathering plan can maximize gathering efficiency and resource utilization, directly translating into better business benefits. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 A schematic diagram of an application architecture provided for an embodiment of this application; Figure 2 A flowchart illustrating a virtual medicinal herb collection method provided in this application embodiment; Figure 3 An interface diagram of a virtual scene provided for an embodiment of this application; Figure 4 An interface illustration of a manually triggered scenario for a medicinal herb replenishment command provided in an embodiment of this application; Figure 5 This is a screenshot of the interface for an interactive area of a supply list provided in this embodiment; Figure 6 An interface diagram of a planting area provided in an embodiment of this application; Figure 7 An interface illustration of a virtual medicinal herb library provided for an embodiment of this application; Figure 8 An interface diagram for collecting a role library is provided as an embodiment of this application; Figure 9 An interface diagram of a wild area database provided in this application embodiment; Figure 10 A structural illustration of a multi-dimensional attribute matching model provided in an embodiment of this application; Figure 11 An interface diagram showing the data acquisition progress screen provided in an embodiment of this application; Figure 12 This is a schematic diagram of the structure of a virtual medicinal herb collection device provided in an embodiment of this application; Figure 13 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0028] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0029] As a core segment of the digital entertainment industry, the gaming industry has always prioritized technological iteration and user experience optimization for its continued development. In one particular game genre, especially in virtual games involving clinic management, medicinal herbs become a crucial resource supporting core gameplay elements such as clinic operation and quest progression. Players typically need to acquire sufficient quantities of specific herbs to complete storylines and fulfill treatment needs.
[0030] However, most existing virtual herb gathering solutions employ fixed allocation rules, either matching herbs solely by name, assigning tasks based on character availability, or simply distributing gathering tasks evenly across all characters. This rigid gathering logic completely ignores the inherent differences in herb attributes, such as rarity, growth cycle, and gathering difficulty. It also fails to consider the real-time status of various wild areas, such as terrain complexity, weather influence, and official access permissions. Furthermore, it fails to dynamically adapt to individual character abilities, such as herb-gathering skills, weight limits, and environmental adaptability. Consequently, it easily leads to low gathering efficiency, significant resource waste, and even situations where characters cannot enter designated areas or gather specific herbs, severely impacting player efficiency and game engagement.
[0031] For example, in an open-world simulation game that includes a clinic management element, players run a clinic and need to regularly collect virtual medicinal herbs such as angelica, ginseng, and snow lotus to maintain its normal operation. When the herb inventory is low, the current approach often simply assigns idle characters to fixed areas to collect herbs according to the shortage list, without considering whether the difficulty of collecting herbs in various wild areas has increased due to heavy rain, or whether the character has the necessary official authority or special skills to collect highly rare herbs. Furthermore, it fails to dynamically plan collection routes based on the herb's growth cycle and the risk level of collection. For instance, higher-level characters can undertake higher-risk collection tasks to obtain higher-yield herbs, but their collection logic in the game is exactly the same as that of lower-level characters. The final collection results neither meet the player's management expectations nor fully utilize the advantages of the character and the area's resources, naturally failing to provide a high-quality gaming experience.
[0032] Based on this, this application proposes a virtual medicinal herb collection method based on multi-dimensional attribute matching. By acquiring medicinal herb attributes, character attributes, and regional attributes in real time and performing multi-dimensional adaptability analysis, the optimal collection plan is automatically generated, which can effectively improve the efficiency of medicinal herb collection and resource utilization, and bring players a more strategic and fun gaming experience.
[0033] It should be noted that the virtual medicinal herb gathering method in this application can be applied to various types of simulation management game scenarios, such as medicinal herb supply in clinic management games, spiritual herb gathering in alchemy games, and raw material collection in workshop games. It can also be applied to resource gathering tasks in role-playing games. This application does not specifically limit its application scenarios. Players can obtain medicinal herb resources through various means such as managing clinics, completing tasks, exploring areas, and trading and exchanging gifts. Different types and rarity levels of medicinal herbs can provide players with different management benefits, helping them achieve specific management goals and obtain corresponding game profits within the game.
[0034] Furthermore, before describing the specific implementation process of this application, the application environment of this application will first be described. Please refer to [link / reference needed]. Figure 1 , Figure 1 A schematic diagram of an application architecture provided for an embodiment of this application; Figure 1 The application architecture includes server 110 and client 120. Server 110 can be of various types, such as a game server or application server. It is used to store game data, process player requests, and execute the core logic of evaluating the effectiveness of virtual items. Server 110 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Client 120 can be a terminal device such as a smartphone, tablet, personal computer, or smartwatch. Players interact with the game system through the graphical user interface of client 120, such as triggering virtual medicinal herb collection commands and viewing the collection progress. Server 110 and client 120 establish a communication connection through a network to achieve real-time data transmission and synchronization. For example, client 120 sends an item effectiveness evaluation request to server 110, and server 110 returns the effectiveness evaluation result.
[0035] It is understood that the above-mentioned virtual medicinal material collection method can run on personal mobile terminals, on server 110, or on third-party devices to provide virtual medicinal material collection. The specific virtual medicinal material collection method can run as a program on the above-mentioned devices, or as a system component of the above-mentioned devices, or as a cloud service program. The specific operating mode depends on the actual scenario and is not limited here.
[0036] The specific implementation methods of this application will be described in detail below. For ease of understanding, the virtual medicinal material collection method proposed in this application will be specifically explained in conjunction with the accompanying drawings. Please refer to them. Figure 2 , Figure 2 This is a flowchart illustrating a virtual medicinal herb collection method provided in an embodiment of this application. The present application provides a virtual medicinal herb collection method, specifically including the following: S110: In response to a medicinal herb replenishment command triggered in a virtual scene, generate a medicinal herb collection event containing multiple virtual medicinal herbs to be collected.
[0037] In this step, when players are simulating management in the virtual scene of the game, if the system detects that the user clicks the relevant button to manually trigger or the system automatically triggers the herb supply command under certain specific circumstances, the system can immediately respond to the herb supply command and generate a herb collection event containing multiple virtual herbs to be collected. This enables one-click initiation of collection tasks and greatly reduces the tedious herb selection operation for players.
[0038] In this context, a virtual scene refers to a digitally interactive game environment constructed during gameplay, containing space, scene elements, and interactive objects. Players can perform various operations and advance the game's progress within this scene. (Illustratively, for example...) Figure 3 As shown, Figure 3 An interface diagram of a virtual scene provided for an embodiment of this application; Figure 3 In the game, the virtual scene can consist of game areas corresponding to various types of gameplay, such as a central area for players to manage a clinic, a wild area for players to explore and collect medicinal herbs, a planting area for players to research and cultivate medicinal herbs, a market area for players to trade and interact, and a training area for players to improve their character's skills. These game areas can be open or semi-open interactive scenes, and players can freely switch between different areas according to their own management needs to meet their resource acquisition needs at different stages.
[0039] Furthermore, the in-game herb replenishment command refers to an instruction triggered within the virtual scene that requires replenishing the in-game herb inventory. This can be triggered by the player manually clicking the replenishment button when their herb inventory is low, or automatically by the system when a clinic treatment task requires herbs or when the preset herb inventory is below the safety threshold. The specific triggering method can be adjusted according to the actual gameplay design and is not limited here. The herb gathering event, on the other hand, refers to a complete set of gathering tasks generated in response to the herb replenishment command. This set may include basic task information such as the type and quantity of multiple virtual herbs to be gathered, providing a data foundation for subsequent herb gathering operation control.
[0040] Specifically, when the system detects a medicinal herb replenishment command triggered in a virtual scenario, it can read the current medicinal herb inventory data in each area and combine it with the sources of medicinal herb demand, such as the currently executing treatment scenario, the pending business scenario, or the medicinal herb consumption scenario within a preset period, to statistically analyze the supply and demand of various medicinal herbs. This yields basic collection information such as the quantity, source, and urgency of the virtual medicinal herb categories that need to be collected. Subsequently, the system can integrate and process this basic collection information to generate a unified medicinal herb collection event. This event can include information such as the category of multiple medicinal herbs to be collected, the target quantity, the priority of the herbs, the collection area, and the effective time of the task. For example, during a medicinal herb replenishment process, the system can generate a medicinal herb collection event containing "collect 40 portions of Angelica sinensis, collect 25 portions of Astragalus membranaceus, and collect 10 portions of Ganoderma lucidum," and encapsulate these multiple medicinal herb demands into a single event to trigger the system to automatically execute the corresponding collection task.
[0041] Understandably, this medicinal herb gathering event allows for unified management and centralized scheduling of multiple medicinal herb demands. Players no longer need to select different medicinal herb types, configure gathering areas, or initiate gathering tasks one by one. This enables one-click initiation and automated execution of medicinal herb gathering tasks, effectively reducing the operational burden on players and improving game interaction efficiency. Furthermore, it allows for dynamic adjustment of gathering tasks based on the clinic's operational status and changes in medicinal herb demand, making the medicinal herb replenishment process more timely and accurate, and avoiding the problems of interrupted treatment and decreased business revenue caused by shortages of key medicinal herbs.
[0042] S120: Obtain the medicinal properties of each virtual medicinal herb, determine the character attributes of each idle character in the character collection library, and monitor the regional attributes of each wild area in the virtual scene in real time.
[0043] In this step, after generating the medicinal herb collection event through step S110, the system can respond to the medicinal herb collection event, obtain the medicinal herb attributes of each virtual medicinal herb in the medicinal herb collection event, determine the role attributes of each idle role in the collection role library, and monitor the regional attributes of each wild area in the virtual scene in real time, thereby constructing a comprehensive dynamic data foundation covering the three levels of medicinal herbs, roles, and regions.
[0044] Specifically, medicinal herb attributes refer to the inherent properties of virtual medicinal herbs. This application may include the collection priority, scarcity level, growth environment, growth cycle, collection time, and collection risk factor of virtual medicinal herbs. Different types of virtual medicinal herbs often correspond to different medicinal herb attributes, which directly affect the matching results of subsequent collection plans. For example, Tian Shan Snow Lotus has a high scarcity level and a high collection risk factor, requiring a high level of herb-gathering skills from the collector, and can only grow in secret realm areas; while Angelica sinensis is a common medicinal herb with a low scarcity level and low collection difficulty, growing in most plain wild areas, and not requiring high herb-gathering skills from the collector. Through these medicinal herb attributes, the system can clearly define the collection requirements and resource value of different medicinal herbs, providing a basis for subsequent collection task allocation.
[0045] Character attributes refer to the inherent abilities of the gathering characters assigned to herbal medicine gathering in the virtual environment. These gathering characters can be acquired through player training, unlocking via the game's storyline, or recruiting through the market. Their attributes include herbalism skills, carrying capacity, official rank authority, and environmental adaptability. These attributes directly determine the types of gathering tasks a character can perform. For example, only rare characters with access to secret realms and a rare-level herbalism skill can successfully gather Tian Shan Snow Lotus in these areas. Other characters, even if they enter areas of incompatible skill levels, will be unable to complete the gathering due to insufficient skills, and may even fail to cope with the risks, resulting in lost rewards. By understanding these character attributes, the system can clearly define the level and scope of gathering tasks that different characters can undertake, preventing gathering failures caused by mismatches between character abilities and task requirements.
[0046] Regional attributes refer to the inherent environmental attributes of various wild areas in a virtual scene where medicinal herbs can be collected. Wild areas refer to outdoor areas in the virtual scene where players can collect wild medicinal herbs, such as mountainous areas, forest areas, grassland areas, river valleys, wetland areas, cliff areas, and secret realms. Different wild areas typically correspond to different ecological environments and the distribution of medicinal resources. For example, high-value medicinal herbs such as ginseng and lingzhi can grow in forest areas; common medicinal herbs such as licorice and astragalus can be found in grassland areas; moisture-loving medicinal herbs such as alisma and plantain can grow in wetland areas; and rare medicinal resources such as snow lotus and thousand-year-old he shou wu may periodically spawn in secret realms. Furthermore, different wild areas correspond to different terrain environments, weather conditions, and access requirements. Their regional attributes can include geographical location, terrain complexity, weather influence coefficient, official access permissions, current medicinal herb distribution, and current weather data. It should be noted that these regional attributes can change in real time, and these changes will directly affect the actual collection efficiency and success rate. For example, in forest areas, ginseng-type medicinal herbs mature faster when the weather is sunny, but the movement speed and gathering efficiency of the gathering character decrease when the area experiences heavy rain.
[0047] Furthermore, since the regional attributes of wild areas change dynamically with in-game time, weather, and story progress, the system needs to monitor the regional attributes of wild areas in real time when acquiring multi-dimensional data. This ensures that the terrain, weather, and medicinal herb distribution of each wild area are up-to-date, avoiding errors in adaptation results due to data lag and affecting the final collection efficiency.
[0048] Understandably, by simultaneously acquiring dynamic data across three dimensions—medicinal herb attributes, character attributes, and regional attributes—this application can cover the core influencing factors in the virtual medicinal herb collection process, avoid decision-making biases caused by single-dimensional matching, and provide comprehensive and accurate data support for generating the optimal collection plan.
[0049] S130: Perform multi-dimensional adaptability analysis on the attributes of medicinal materials, regional attributes, and role attributes to generate the optimal collection plan for medicinal material collection events.
[0050] In this step, after obtaining the attributes of the three dimensions of medicinal materials, region, and role through step S120, the system can dynamically perform multi-dimensional adaptability analysis on the attributes of medicinal materials, region, and role, and then generate the optimal collection plan for the medicinal material collection event. This dynamic analysis mechanism can adapt to the dynamic changes of the virtual scene and match the optimal combination of medicinal materials, role, and region.
[0051] Specifically, in multi-dimensional compatibility analysis, the system can analyze the compatibility between medicinal herb attributes and regional attributes, as well as the compatibility between character attributes and medicinal herb attributes, and vice versa. To elaborate, when analyzing the compatibility between medicinal herb attributes and regional attributes, the system can calculate the compatibility of medicinal herb distribution in various wild regions based on attributes such as the growth environment and growth cycle of the virtual medicinal herbs. For example, for Ganoderma lucidum (reishi mushroom), which prefers shady and humid environments, the system can prioritize matching it with wetland and forest regions; for ginseng, which mainly grows at high altitudes, the system can prioritize matching it with mountainous or secluded areas. When analyzing the compatibility between character attributes and medicinal herb attributes, the system can calculate the compatibility of each gathering character's herb-gathering skills and carrying capacity based on attributes such as the scarcity level and gathering risk coefficient of virtual medicinal herbs. For example, for high-level rare medicinal herbs, the system can prioritize characters with advanced herb-gathering skills; for low-level common medicinal herbs in high demand, the system can prioritize gathering characters with high carrying capacity and high gathering efficiency to perform the task, thereby increasing the gathering output per unit time. When analyzing the compatibility between character attributes and area attributes, the system can calculate the compatibility of each gathering character's official authority and environmental adaptability based on attributes such as the terrain complexity and official access permissions of wild areas. For example, for remote and complex mountainous areas, the system can prioritize gathering characters with fast movement speed and high stamina; for high-risk secret realm areas, the system can prioritize gathering characters with high access permissions and strong combat capabilities to improve the task completion rate and reduce the probability of character damage.
[0052] Furthermore, after completing pairwise adaptation calculations across the three dimensions, the system can perform a comprehensive adaptability calculation on all adaptation results, yielding multiple different "role-herb-region" combination schemes. Each combination scheme can reflect factors such as herb acquisition efficiency, task completion time, role resource consumption, regional risk level, and expected operating returns. For example, during the adaptability calculation, the system can assign higher weight to timeliness indicators based on the urgency of herb demand, and higher weight to collection success rate indicators based on the scarcity of herb value. Therefore, the computer equipment can determine the optimal collection scheme from various combination schemes based on the current operating objectives in the virtual scenario.
[0053] Furthermore, since the distribution of medicinal herbs and weather data in wild areas dynamically change with in-game time, weather, and story progress, the system can dynamically adjust the adaptability analysis results when regional attributes change. This ensures that the optimal gathering plan always adapts to the actual situation of the current virtual scene and does not become ineffective due to changes in scene data. For example, if a forest area rich in high-quality Ganoderma lucidum experiences a sudden rainstorm, causing a 30% decrease in gathering efficiency and a 20% increase in the failure rate, the system will immediately re-perform a multi-dimensional adaptability analysis. It will then assign the Ganoderma lucidum gathering task to a wetland area with suitable weather conditions and Ganoderma lucidum distribution, while adjusting the assigned gathering characters to ensure that the overall gathering task progress is not affected.
[0054] It should be noted that the optimal collection scheme of this application can clearly define the medicinal materials, collection areas, and expected collection quantities for each collection role, thereby enabling parallel scheduling of multiple medicinal material collection needs, making full use of the labor resources of the collection roles, and maximizing the overall collection success rate and collection efficiency.
[0055] S140: Execute the collection operation for each virtual medicinal material according to the optimal collection plan.
[0056] In this step, after determining the optimal collection scheme through step S130, the system can perform collection operations on each virtual medicinal material according to the optimal collection scheme, which can maximize collection efficiency and resource utilization, and directly translate into better business benefits.
[0057] Specifically, the system can issue collection execution commands to the corresponding collection roles based on the collection allocation in the optimal collection plan, so that each collection role can go to the corresponding wild area to carry out medicinal herb collection tasks. For example, after determining through adaptation analysis that collection role A should go to the mountain area to collect ginseng, collection role B should go to the forest area to collect Ganoderma lucidum, and collection role C should go to the grassland area to collect Astragalus membranaceus, the system can simultaneously issue corresponding collection commands to collection roles A, B, and C, so that multiple collection tasks can be executed in parallel. After each role arrives at the target area, it can perform medicinal herb collection operations according to the type and quantity of medicinal herbs in the optimal collection plan until the collection task of the corresponding medicinal herbs is completed.
[0058] Understandably, by using the optimal gathering scheme, the system can automatically complete a series of operations such as character scheduling, area selection, and herb gathering, so that the herb gathering task can be executed in the direction of maximizing resource utilization, gathering efficiency, and business benefits, thereby improving the overall game experience.
[0059] In the above embodiments, when a medicinal herb replenishment command is triggered in the virtual scene, this application can automatically respond to the command and generate a medicinal herb collection event containing multiple virtual medicinal herbs to be collected, realizing one-click collection task initiation and greatly reducing the tedious medicinal herb selection operation for players. Subsequently, the medicinal herb attributes of each virtual medicinal herb in the medicinal herb collection event can be obtained, the character attributes of each idle character in the collection character library can be determined, and the regional attributes of each wild area in the virtual scene can be monitored in real time. This allows the construction of a comprehensive dynamic data foundation covering three levels: medicinal herbs, characters, and regions. Among them, the real-time monitoring of regional attributes can ensure that subsequent collection decisions are always generated based on the latest state of the virtual scene. During the collection decision-making process, this application can dynamically perform multi-dimensional adaptability analysis on medicinal herb attributes, regional attributes, and character attributes to generate the optimal collection plan for the medicinal herb collection event. This dynamic analysis mechanism can adapt to the dynamic changes of the virtual scene and match the optimal combination of medicinal herbs, characters, and regions. Therefore, executing the collection operation of each virtual medicinal herb according to the generated optimal collection plan can maximize collection efficiency and resource utilization, thereby directly translating into better business benefits.
[0060] In one embodiment, the triggering process of the medicinal herb replenishment command in step S110 may include: S111: Receive at least one special event selected by the user in the virtual scene, and determine the medicinal material consumption requirement of at least one special event, so as to generate a medicinal material replenishment instruction based on the medicinal material consumption requirement.
[0061] S112: When the inventory of medicinal materials in the virtual scene does not meet the preset inventory conditions, the medicinal material replenishment command is automatically triggered.
[0062] In this embodiment, the medicinal herb replenishment command in the virtual scene can include two methods: manual triggering by the user and automatic triggering by the system. For manual triggering, after receiving at least one special event selected by the user in the virtual scene, the system can determine the medicinal herb consumption demand of at least one special event and generate a medicinal herb replenishment command based on the medicinal herb consumption demand. For automatic triggering, the system can automatically generate a medicinal herb replenishment command when it detects that the medicinal herb inventory in the virtual scene does not meet the preset inventory conditions.
[0063] Special events refer to exclusive activities in the game that require specific medicinal materials to be carried out, such as limited-time treatment events, imperial medicine requisition events, medicinal material refining events, plague relief events, and large-scale business order events. These events often have a large and urgent demand for specific medicinal materials, requiring players to quickly replenish the corresponding medicinal materials to carry them out smoothly. Therefore, when a user selects at least one special event, the system can read the configuration data corresponding to the special event to determine the type and quantity of medicinal materials required to complete the special event.
[0064] Indicatively, such as Figure 4 As shown, Figure 4 An interface illustration of a manually triggered scenario for a medicinal herb replenishment command provided in an embodiment of this application; Figure 4 In the game, when a user selects the "Imperial Requisition of Medicine" event, the system can analyze the configuration of the event and determine that it requires 50 ginseng, 30 lingzhi, and 80 astragalus. If the user also selects the "Plague Relief" event, the system can further determine that it requires 100 isatis root and 60 honeysuckle. Then, the system can generate a medicine supply instruction based on these medicinal material data.
[0065] Furthermore, when a user selects multiple special events simultaneously, the system can also prioritize these events based on their importance level, remaining completion time, and contribution to business revenue, ensuring that the supply of medicinal materials for events with higher urgency is prioritized. For example, the urgency of time-limited treatment events can be higher than that of ordinary business order events, thus allowing limited resources to be used primarily for critical business tasks.
[0066] Furthermore, the preset inventory conditions for medicinal herbs in the virtual environment can include a preset minimum threshold for each virtual herb. These thresholds can be set by players based on their own business scale, or automatically adjusted by the system based on the daily treatment needs of the current clinic. When the inventory of any virtual herb in the herb warehouse falls below the preset minimum threshold, or when the overall herb inventory cannot meet the daily treatment consumption within a preset period, the system will automatically trigger a replenishment command. Players do not need to constantly monitor inventory changes, further reducing their management burden. For example, if a player's virtual clinic consumes an average of 10 units of ginseng per day, the system defaults to setting the minimum ginseng inventory threshold to 30 units. If the current ginseng inventory drops to 25 units due to continuous treatment consumption, falling below the preset minimum threshold of 30 units, the system will automatically trigger a herb replenishment command including the ginseng replenishment requirement, promptly initiating the collection process to replenish the inventory and preventing insufficient inventory from affecting daily treatment tasks.
[0067] Understandably, during gameplay, the virtual environment supports both manual and automatic herb replenishment modes. When players are preparing to participate in high-yield special events or engage in specific business activities, they can manually trigger the herb replenishment process, ensuring that herb resources quickly meet current business needs and enhancing the autonomy and flexibility of player decision-making. Furthermore, the system can automatically trigger the herb replenishment process based on inventory status and future consumption trends, preventing herb shortages caused by players forgetting to replenish stock or untimely inventory monitoring. This improves herb resource turnover efficiency and inventory utilization, significantly enhancing the user's gaming experience.
[0068] In one embodiment, the process of automatically triggering a medicinal herb replenishment command when the inventory of the medicinal herb warehouse in the virtual scene is detected to be insufficient to meet the preset inventory conditions in step S112 may include: S1121: Assess the potential demand for medicinal materials in the TCM clinic based on real-time patient data in the virtual scene, and dynamically update the preset inventory conditions based on the potential demand for medicinal materials.
[0069] S1122: When the inventory of medicinal materials in the virtual scene does not meet the preset inventory conditions, generate a medicinal material replenishment instruction based on the potential demand for medicinal materials.
[0070] In this embodiment, before monitoring the inventory of medicinal materials, the system can assess the potential demand for medicinal materials in the clinic based on the real-time patient data of the clinic in the virtual scene, and dynamically update the preset inventory conditions based on the potential demand for medicinal materials. Subsequently, the system can monitor the inventory of medicinal materials based on the preset inventory conditions, and generate a medicinal material replenishment instruction based on the potential demand for medicinal materials when the inventory of medicinal materials in the clinic does not meet the preset inventory conditions.
[0071] Specifically, the system can continuously acquire real-time patient data from the clinic, including the number of patients currently seeking treatment, the type and severity of their symptoms, patient growth trends, the number of patients awaiting treatment, and regional disease information. For example, when a seasonal flu event occurs in the virtual scenario, the clinic may see a large influx of patients suffering from colds; when a plague relief event is triggered in a certain area, the clinic may receive a large number of infected patients in a short period; and when players upgrade their clinic's level, it may attract more advanced patients. All of these situations will lead to changes in the subsequent consumption structure of medicinal materials. Therefore, after acquiring real-time patient data, the system can establish a correlation model between illnesses and medicinal materials, and predict future demand for medicinal materials based on the treatment plans corresponding to different illnesses. For example, the medicinal materials corresponding to cold-related illnesses are ephedra, cinnamon twig, and ginger; the medicinal materials corresponding to damp-heat illnesses are coptis, scutellaria, and honeysuckle; and the medicinal materials corresponding to patients with difficult and severe illnesses are ginseng and ganoderma. Based on the correlation model, the system can predict and calculate the consumption of medicinal materials within a preset period in the future, thereby obtaining the potential demand for various medicinal materials and adjusting the minimum thresholds for these medicinal materials to achieve dynamic updates of preset inventory conditions.
[0072] During the monitoring of medicinal herb inventory, the system can acquire real-time inventory data and compare it with dynamically updated preset inventory conditions. When the system detects that the inventory quantity of a certain type of virtual medicinal herb is lower than the corresponding preset inventory condition, it can determine that the inventory of that herb does not meet the inventory requirements. Subsequently, based on the inventory and potential demand for the herb, the system can determine the amount of data that needs to be replenished and the urgency level, and then generate a herb replenishment instruction.
[0073] For example, when a regional epidemic breaks out in a virtual scenario, the system will predict future demand based on real-time disease data. If it determines that the demand for Banlangen (Isatis root) will increase from an average of 20 servings per day to an average of 80 servings per day within the next 7 days, the system can automatically raise the preset minimum inventory threshold for Banlangen from 60 servings to 240 servings. If the current inventory of Banlangen in the medicine warehouse is only 100 servings, which is far below the adjusted minimum threshold, the system will automatically trigger a medicine replenishment instruction containing a demand for 200 servings of Banlangen, and start the corresponding collection process to replenish the inventory to meet the subsequent surge in medical consumption.
[0074] Understandably, the system can continuously adjust the minimum threshold of each virtual medicinal herb based on the actual operational dynamics within the virtual scenario, thereby automatically regulating the preset inventory conditions. This ensures that the preset inventory conditions always match the current actual consumption demand, preventing the accumulation of medicinal herb inventory due to excessively high thresholds that would occupy storage space, and also preventing the inability to cope with sudden increases in demand due to excessively low thresholds. This guarantees that the medicinal herb inventory is always at a reasonable level, effectively improving the intelligence of virtual operations and enhancing the player's gaming experience.
[0075] In one embodiment, step S110, which involves generating a medicinal herb collection event containing multiple virtual medicinal herbs to be collected and a collection priority in response to a medicinal herb replenishment command triggered in a virtual scene, may include: S113: Determine the medicinal material demand data in the medicinal material supply order, perform multi-dimensional inventory analysis on the medicinal material demand data, and generate an initial supply list.
[0076] S114: Display the initial supply list in the virtual scene, receive the submission result returned by the user based on the initial supply list, and generate the final supply list.
[0077] S115: Obtain the medicinal herb replanting requirements in the planting area of the virtual scene, and generate a medicinal herb collection event containing multiple virtual medicinal herbs to be collected and collection priorities based on the final supply list and medicinal herb replanting requirements.
[0078] In this embodiment, after the medicinal herb replenishment command is triggered, the system can first determine the medicinal herb demand data in the medicinal herb replenishment command, and perform multi-dimensional inventory analysis on the medicinal herb demand data to generate an initial replenishment list. Then, the initial replenishment list is displayed in the virtual scene, and the system receives the submission result returned by the user based on the initial replenishment list to generate a final replenishment list. Subsequently, the system can obtain the medicinal herb replanting demand in the planting area of the virtual scene, and generate a medicinal herb collection event containing multiple virtual medicinal herbs to be collected and collection priorities based on the final replenishment list and the medicinal herb replanting demand.
[0079] Among them, the medicinal herb demand data refers to the core information explicitly required in the medicinal herb supply order, such as the types of virtual medicinal herbs to be replenished, the total quantity required, and the replenishment deadline. Medicinal herb replanting demand refers to the medicinal herb planting needs generated to maintain or expand the medicinal herb production capacity within the planting area. It is automatically calculated based on factors such as the number of reserved planting slots in the planting area, the harvest cycle of currently planted medicinal herbs, and the planting permissions unlocked by the player's planting level. It is generally used to replenish new seedlings or replace old plants that have reached their harvest cycle, and therefore also requires obtaining corresponding medicinal herb seedlings through wild collection.
[0080] Specifically, when a medicinal herb replenishment command is triggered, the system first parses the medicinal herb demand data in the command to obtain information such as the virtual medicinal herbs to be collected, the required quantity, and the source of the demand. Then, it can perform multi-dimensional inventory analysis on this information, such as whether the existing inventory in the medicinal herb warehouse meets the demand, whether there are medicinal herbs being collected in the virtual scene but not yet stored, and whether the corresponding medicinal herbs are planted in the planting area. Through multi-dimensional inventory analysis, the system can calculate the actual quantity of each virtual medicinal herb that needs to be replenished. Simultaneously, it can perform preliminary sorting of the medicinal herbs based on their scarcity, thereby generating an initial replenishment list containing the corresponding medicinal herb types and required quantities. After generating the initial replenishment list, the system can also display the list in the interactive interface of the virtual scene for players to view and adjust. Players can modify and adjust the medicinal herb types, required quantities, collection priorities, and other information in the initial replenishment list according to their current resource collection status and management priorities. After the adjustments are completed, the player submits the modified results, allowing the system to generate a final replenishment list based on the user's submissions. Finally, the system can automatically calculate the replanting needs of medicinal herbs in the planting area of the current virtual scene, obtain the types, quantities and collection priorities of the medicinal herbs that need to be collected, and merge the medicinal herb information corresponding to the replanting needs into the final supply list, thereby generating the final medicinal herb collection event.
[0081] For example, if the current herb supply order is a Banlangen (Isatis root) supply order generated under a plague event, after multi-dimensional inventory analysis, the initial supply list is as follows: 200 Banlangen and 50 honeysuckle are needed, with Banlangen as the initial priority. After viewing the list, players can adjust the required quantity of honeysuckle to 30 according to their actual situation and confirm the submission of the list. Subsequently, the system calculates that the planting area needs to replenish 10 Banlangen seedlings and 5 honeysuckle seedlings. After incorporating the seedling requirements into the supply list, the order is re-sorted based on the urgency of the needs, ultimately generating a herb collection event with 200 mature Banlangen as the highest priority, followed by 10 Banlangen seedlings, 30 mature honeysuckle, and finally 5 honeysuckle seedlings.
[0082] In one embodiment, the process of performing multi-dimensional inventory analysis on medicinal material demand data and generating an initial replenishment list in step S113 may include: S1131: Determine the demand quantity, demand source, and urgency of each virtual medicinal material in the medicinal material demand data, and determine the collection priority of each virtual medicinal material based on the demand source and urgency of each virtual medicinal material.
[0083] S1132: Obtain the current inventory quantity of each virtual medicinal herb in the virtual scene's pharmacy warehouse, the quantity being collected in the wild area, and the growth status of the medicinal herb in the planting area.
[0084] S1133: Based on the existing inventory, the quantity of items being collected in transit, and the growth status of each virtual medicinal material, perform a gap analysis on the corresponding demand quantity to obtain the size of the gap for each virtual medicinal material.
[0085] S1134: Generate an initial supply list based on the size of the shortage of each virtual medicinal material and the collection priority.
[0086] In this embodiment, when analyzing the medicinal herb inventory, the system can first determine the required quantity, source, and urgency of each virtual medicinal herb in the medicinal herb demand data. Based on the source and urgency of each virtual medicinal herb, the system determines the collection priority of each virtual medicinal herb. Then, the system can obtain the existing inventory quantity of each virtual medicinal herb in the pharmacy warehouse in the virtual scene, the quantity being collected in the wild area, and the growth status of the medicinal herb in the planting area. This information is used to analyze the gap in the required quantity of each virtual medicinal herb and determine the size of the gap for each virtual medicinal herb. Subsequently, the system can generate an initial replenishment list based on the size of the gap and the collection priority of each virtual medicinal herb.
[0087] The demand quantity refers to the total quantity of medicinal materials needed to fulfill the supply requirements. The sources of demand can be divided into three main categories: special event demand, routine medical treatment demand, and planting / replenishment demand. Different sources correspond to different priority weights. For example, the basic weight of special event demand is higher than that of routine medical treatment demand, and the basic weight of routine medical treatment demand is higher than that of planting / replenishment demand. It should be noted that each main category can be further subdivided according to the specific attributes of the demand source. For example, in special events, events with time limits have a higher weight than non-time-limited events, and in routine medical treatment, the medicinal material demand for the current ailment has a higher weight than future routine demand. Therefore, the collection priority can be calculated by weighting the urgency of the demand source according to its priority weight. The higher the weight of the medicinal material, the higher the collection priority.
[0088] Specifically, during the gap analysis process, the system first adds up the existing inventory, the quantity of herbs en route that are about to be collected, and the quantity of mature herbs ready for harvest in the planting area to obtain the total quantity of herbs that can be immediately mobilized. Then, it calculates the difference between this total quantity and the required quantity. If the difference is greater than 0, there is no gap; if the difference is less than 0, its absolute value is taken as the gap size. Finally, the system sorts the virtual herbs with gap sizes greater than 0 according to their collection priority from high to low and fills them into the corresponding positions in the initial supply list. At the same time, it fills the list with the gap size as the required quantity of the corresponding herb, thus completing the generation of the initial supply list. If the gap size is 0, there is no need to include the corresponding herb in the initial supply list, avoiding the generation of unnecessary collection tasks and the waste of collection resources.
[0089] Understandably, when generating the initial supply list, the system considers not only the static inventory resources in the pharmacy warehouse, but also the resources being collected in the wild area and the future output resources in the planting area, thus achieving a full-link analysis of the status of medicinal resources. Therefore, it can ensure that the supply quantity fully matches the operational needs, avoid excess inventory due to repeated replenishment, and reduce unnecessary waste of collected resources.
[0090] In one embodiment, the process of receiving the submission result returned by the user based on the initial supply list and generating the final supply list in step S114 may include: S1141: In response to the user's direct confirmation operation based on the initial supply list, generate the final supply list based on the initial supply list.
[0091] S1142: In response to the user's modification operation based on the data returned by the initial supply list, generate the final supply list based on the data modification result of the initial supply list.
[0092] In this embodiment, after the system displays the initial supply list in the interactive area of the virtual scene, it can monitor the player's interactive behavior in the interactive area in real time. If the system detects that the user performs a direct confirmation operation by clicking in the interactive area, the system can generate the final supply list based on the initial supply list. If the system detects that the user performs a data modification operation by entering data in the interactive area, the system can generate the final supply list based on the data modification result of the initial supply list.
[0093] Indicatively, such as Figure 5 As shown, Figure 5 This is a screenshot of the interface for an interactive area of a supply list provided in this embodiment; Figure 5The interactive area should include at least a needs overview area, a list display area, a supply adjustment area, and a submission area. The needs overview area displays the overall background information for this supply mission, including the source of the need, the mission completion time, the quantity of required herbs, and the number of available gathering characters, helping players quickly grasp the overall situation. The list display area shows each virtual herb recorded in the initial supply list line by line, clearly labeling the herb name, shortage size, gathering priority, and available resources, allowing players to clearly understand the specific information for each need. The supply adjustment area provides an editable entry point, allowing players to directly modify the required quantity of corresponding herbs, drag to adjust the gathering priority of herbs, and select herbs that do not currently need to be gathered. The submission area has two operation buttons: confirm submission and cancel / return, allowing players to submit the results after making adjustments or cancel the adjustment and return to the previous page. Through this layered interactive area design, players can quickly understand the initial supply needs and flexibly adjust the gathering mission according to their current game strategy, effectively improving the interactive experience.
[0094] Specifically, if a player reviews and confirms that the initial supply list meets their current operational needs, clicking the "Confirm Submission" button will allow the system to directly use this initial supply list as the final supply list and proceed directly to the subsequent herb gathering event generation process. If a player reviews and deems it necessary to adjust the initial supply list, they can freely adjust the required quantity and gathering priority of herbs based on their current gathering character's available resources and the clinic's current operational priority. For example, they can increase the gathering priority of urgently needed medicinal herbs, decrease the gathering priority of non-urgent seedling replanting, directly reduce the required quantity of temporarily unnecessary herbs, or remove temporarily unnecessary herb entries. After submitting the adjustments, the system will generate the final supply list based on the player's changes. This manual confirmation and adjustment mechanism reduces the player's operational burden through automatic system analysis while fully preserving the player's autonomy, allowing gathering plans to align with the player's own game strategy and enhancing the player's independent operational experience.
[0095] In one embodiment, the process of obtaining the medicinal herb replanting needs of the planting area in the virtual scene in step S115 may include: S1151: Determine the growth status of planted medicinal herbs in the planting area of the virtual scene, and generate a planting plan based on the medicinal herb planting task and the growth status of the medicinal herbs in the virtual scene.
[0096] S1152: Obtain the inventory of medicinal herb seedlings in the planting area, and determine the replanting needs of medicinal herbs in the planting area based on the inventory of medicinal herb seedlings and the planting plan.
[0097] In this embodiment, when obtaining the replanting needs of medicinal herbs in the planting area, the system can first determine the growth status of the medicinal herbs already planted in the planting area in the virtual scene, and generate a planting plan based on the medicinal herb planting task and the growth status of the medicinal herbs in the virtual scene. At the same time, it can also obtain the medicinal herb seedling inventory in the planting area, and determine the replanting needs of medicinal herbs in the planting area based on the medicinal herb seedling inventory and the planting plan.
[0098] The planting area in the virtual scene is mainly used to continuously produce target medicinal materials through sowing, cultivation, management, and harvesting, thus providing a stable source of medicinal materials for the operation of the clinic. It can be built by the player or gradually unlocked as the clinic's level increases. (Illustratively, as shown...) Figure 6 As shown, Figure 6 An interface diagram of a planting area provided in an embodiment of this application; Figure 6 Within the system, planting areas can be further divided into multiple levels of medicinal fields based on their functional divisions. The quality of medicinal herbs grown in different levels of fields varies, with higher-level fields producing higher-quality herbs. The system can also manage medicinal fields based on their size, environmental conditions, and production capacity, and monitor the growth status of each herb in real time. This growth status includes five stages: sown but not yet germinated, germinated, seedling, mature, and withered. Planted herbs in the withered stage cannot continue to produce herbs and need to be cleared and replanted with new seedlings. Mature herbs can be harvested early according to the planting plan, clearing the planting area for replanting.
[0099] Specifically, the system can traverse all plantable plots in each medicinal field throughout the entire planting area, identifying idle plots and plots already planted with medicinal herbs but needing to be cleared and replaced, and calculating the total number of plots available for replanting. Then, it can combine this with pre-set medicinal herb planting tasks, which can be generated by the system based on the player's chosen medical clinic management project, or automatically generated by the system based on daily operational needs. Based on these medicinal herb planting tasks, the system can obtain the planned planting quantity and quality of different medicinal herbs. Combined with the number of medicinal herbs still growing normally and continuously producing in medicinal fields of different levels, it can calculate the types and corresponding quantities of medicinal herb seedlings that need to be additionally planted in each level of medicinal field. Subsequently, the system retrieves the current inventory data of medicinal herb seedlings. If the existing inventory can meet the planned planting needs, no replanting requirement is generated. If the inventory of medicinal herb seedlings is lower than the planned planting needs, the types and quantities of medicinal herbs corresponding to the inventory gap can be included in the replanting requirement, thus completing the statistical acquisition of medicinal herb replanting needs.
[0100] Understandably, when determining the replanting needs of medicinal herbs in the planting area, this application not only considers the current actual utilization of the planting pits in the planting area, but also matches the planting plan for the future period. This allows for the accurate determination of replanting needs that align with the clinic's operational plan, avoiding the waste of pit resources through blind replanting and ensuring that the planting output can match the daily consumption of medicinal herbs in the long term, thus maintaining the clinic's stable operation.
[0101] In one embodiment, the process of obtaining the medicinal properties of each virtual medicinal herb in step S120 may include: S121: Determine the collection priority of each virtual medicinal herb in the medicinal herb collection event.
[0102] S122: Obtain the medicinal properties of each virtual medicinal herb from the virtual medicinal herb library, and add the collection priority of each virtual medicinal herb to the corresponding medicinal property.
[0103] In this embodiment, after a medicinal herb collection event is generated, the system can first determine the collection priority of each virtual medicinal herb in the event, and then obtain the medicinal herb attributes of each virtual medicinal herb from the virtual medicinal herb library, including but not limited to scarcity level, growth environment, growth cycle, collection duration, and collection risk coefficient. Here, the system can add the collection priority of each virtual medicinal herb to the corresponding medicinal herb attributes, so that the final medicinal herb attributes have both static resource characteristics and dynamic demand characteristics.
[0104] Indicatively, such as Figure 7 As shown, Figure 7 An interface illustration of a virtual medicinal herb library provided for an embodiment of this application; Figure 7 The virtual herb library in the game can be used to store and manage the basic attribute data of all virtual herbs. During gameplay, players can unlock new types of virtual herbs by activating new wild areas and exploring these areas. Whenever a new virtual herb is unlocked and discovered, its relevant attribute information will be automatically entered into the virtual herb library for later use in gathering planning, ensuring that the virtual herb library can be continuously updated and improved as the player progresses through the game.
[0105] In the attributes of medicinal materials, scarcity level refers to the total existing quantity and harvesting frequency of virtual medicinal materials in the entire virtual scene. The fewer the existing quantity and the lower the daily harvesting limit, the higher the scarcity level of the virtual medicinal material, and the greater the difficulty of harvesting it. For example, the scarcity level of rare medicinal materials such as wild ginseng and Polygonum multiflorum is much higher than that of ordinary herbal medicinal materials. Growth environment refers to the type of wild area where virtual medicinal materials can grow naturally. Different types of wild areas will only grow virtual medicinal materials that are suitable for the corresponding environment. Only when the environmental requirements are met can the target medicinal material be successfully harvested. For example, high-value medicinal materials such as ginseng and Ganoderma lucidum can grow in forest areas, while common medicinal materials such as licorice and Astragalus membranaceus are distributed in grassland areas. Growth cycle refers to the harvesting time of virtual medicinal materials in wild areas. After that, the time required for the natural refresh of production is determined. The longer the growth cycle, the longer the interval between two harvests of the herb, and the more difficult it is to obtain. For example, the growth cycle of ginseng is much longer than that of common herbal herbs like dandelion. Harvesting time refers to the base time required to successfully harvest the herb in one go. The longer the harvesting time, the more time the harvesting character has to spend. For example, the harvesting time required to dig up a whole ginseng plant is longer than that required to harvest common herbal herbs. Harvesting risk coefficient refers to the environmental risk level of the wild area where the target herb is located. The higher the risk coefficient, the higher the probability of the harvesting character being injured or failing to harvest during the process. For example, the harvesting risk coefficient of rare herbs growing in cliff areas is much higher than that of common herbs growing in grassland areas.
[0106] Furthermore, since the collection priority is determined based on the demand sources and gaps of virtual medicinal materials, this attribute is not included in the virtual medicinal material library. Instead, it is generated in real time according to business needs and dynamically added to the corresponding medicinal material attributes through medicinal material collection events. This avoids the problem of static attributes being unable to match dynamic business needs.
[0107] In one embodiment, the process of determining the role attributes of each idle role in the role database in step S120 may include: S123: Select currently idle characters from the character collection library as idle characters, and obtain the character attributes of each idle character from the character attribute system.
[0108] In this embodiment, after the herb gathering event is generated, the system can filter out the currently idle characters from the gathering character library as idle characters, and obtain the character attributes of each idle character from the character attribute system. These character attributes include, but are not limited to, herb gathering skills, carrying capacity, official authority, and environmental adaptability.
[0109] It should be noted that, as Figure 8 As shown, Figure 8 An interface diagram for collecting a role library is provided as an embodiment of this application; Figure 8The gathering character library is mainly used to store information about characters with the ability to gather medicinal herbs in the virtual scene. Players can unlock and obtain new gathering characters through various methods such as completing tasks, visiting scenes, and recruiting in the market. All successfully recruited gathering characters will be automatically stored in the gathering character library for unified management. The system will update the current status of each gathering character in real time. If the gathering character is performing other tasks such as gathering or making house calls, it will be marked as busy. If it is not performing any tasks, it will be marked as idle and can be assigned and called by the current gathering task.
[0110] In character attributes, herbalism skill refers to a character's ability to find, identify, and collect medicinal herbs. For example, a higher herbalism skill level increases the probability of finding rare herbs and improves collection efficiency per unit time. Carrying capacity refers to the maximum weight of herbs a character can carry on a single outing. Therefore, characters with high carrying capacity reduce the number of trips and improve overall collection efficiency, while those with low carrying capacity are better suited for short-distance or small-scale collection tasks. Official rank authority refers to the level range of wild areas a character can enter. For example, ordinary herbalism apprentices can only enter basic collection areas, while advanced pharmacists, elders, or imperial physicians can enter special collection areas such as advanced herb gardens, royal herb gardens, or secret realms. Environmental adaptability refers to a character's resistance to different environments when performing collection tasks in wild areas. Higher environmental adaptability results in a lower probability of accidental injury when performing tasks in dangerous areas.
[0111] Understandably, this application can automatically filter currently available idle roles before the start of a medicinal herb collection task and obtain the role attributes of each role, thereby constructing an accurate and complete role resource information system. This allows the system to consider the differences in ability and current status between roles when dispatching subsequent role collection tasks, thereby improving the utilization rate of role resources and the efficiency of medicinal herb collection.
[0112] In one embodiment, the process of real-time monitoring of the regional attributes of various wild areas in the virtual scene in step S120 may include: S124: Real-time monitoring of the current distribution of medicinal herbs and current weather data in each wild area, and obtaining the static attributes of each wild area in the virtual scene from the wild area database.
[0113] S125: Dynamically update the regional attributes of each wild area based on the current distribution of medicinal materials, current weather data, and static attributes of each wild area.
[0114] In this embodiment, after a medicinal herb collection event is generated, the system can monitor the current distribution of medicinal herbs and the current weather data of each wild area in real time, and obtain the static attributes of each wild area in the virtual scene from the wild area database, including but not limited to the geographical location, terrain complexity, weather influence coefficient, and official access permissions. Subsequently, the system can dynamically update the regional attributes of each wild area based on the current distribution of medicinal herbs, the current weather data, and the static attributes of each wild area.
[0115] Indicatively, such as Figure 9 As shown, Figure 9 An interface diagram of a wild area database provided in this application embodiment; Figure 9 The Wild Area Library is mainly used to store and manage the fixed basic attribute information of each wild area. Similar to the Virtual Herb Library, whenever a player unlocks a new wild gathering area, the corresponding static attribute information of that area will be automatically entered into the Wild Area Library for future gathering planning.
[0116] Among the static attributes, the geographical location of the region refers to the spatial relationship of the wild region in the virtual scene map, which can determine the round-trip distance of the gathering character and the basic time required; the terrain complexity refers to the difficulty of traversing the wild region. The higher the difficulty of the region, the longer the travel time. For example, the terrain complexity of the plains region is low, while the terrain complexity of the canyon region and the snow mountain region is high; the weather influence coefficient refers to the degree of influence of different weather conditions on the efficiency of medicinal herb gathering in the wild region. For example, the influence coefficient is low when gathering on sunny days and high when gathering on rainy days; the official access permission corresponds to the official authority of the gathering character. Only gathering characters who meet the permission requirements can enter the corresponding region to perform gathering tasks.
[0117] In addition, the current distribution of medicinal herbs will change dynamically with the player's gathering behavior and natural respawn. Therefore, the system needs to update the types and quantities of virtual medicinal herbs that can be gathered in each wild area in real time to ensure that the information on gatherable medicinal herbs in the area attributes is consistent with the current situation. The current weather data will affect the gathering efficiency and risk in the area in real time. For example, gathering in mountainous areas on rainy days will increase the risk factor, and foggy weather will reduce the probability of the character finding rare medicinal herbs. Therefore, the system also needs to monitor the current weather conditions of each wild area.
[0118] Understandably, since the current distribution of medicinal herbs and the current weather data are dynamic and change with the game, the system can monitor these two parameters in real time and combine the monitored dynamic data with the static data in the wild area database. This allows the system to obtain regional attributes that fit the virtual scene in real time, avoiding errors in the collection planning due to outdated regional information and affecting the efficiency of medicinal herb collection.
[0119] In one embodiment, step S130, which involves performing a multi-dimensional adaptability analysis on the medicinal herb attributes, regional attributes, and role attributes to generate the optimal collection plan for the medicinal herb collection event, may include: S131: Invoke the multi-dimensional attribute matching model.
[0120] S132: Input the medicinal material attributes, regional attributes, and role attributes into a multi-dimensional attribute matching model for adaptability modeling analysis, and generate the optimal collection plan for medicinal material collection events through the multi-dimensional attribute matching model.
[0121] In this embodiment, after acquiring attribute data across multiple dimensions, the system can invoke a multi-dimensional attribute matching model. This model can be used to perform multi-dimensional attribute matching based on virtual medicinal materials, wild areas, and gathering roles. Therefore, after the system inputs the medicinal material attributes, area attributes, and role attributes into the multi-dimensional attribute matching model, the model can perform adaptability modeling analysis on these attribute data, thereby generating the optimal gathering plan for medicinal material gathering events.
[0122] Among them, the multi-dimensional attribute matching model is a machine learning model pre-built based on a multi-objective optimization algorithm. It establishes the relationship between virtual medicinal materials, wild areas and gathering roles, and comprehensively analyzes the degree of fit among the three, thereby achieving coordinated matching between medicinal material resource demand, regional resource supply and role execution capabilities.
[0123] It is understandable that the attributes of medicinal herbs, the attributes of the region, and the attributes of the role correspond to the demand dimension, resource dimension, and execution dimension in the task of gathering medicinal herbs, respectively. If the gathering decision is made based on only a single dimension, problems may easily arise, such as the target medicinal herb existing but the role being unable to enter the corresponding area, the role having sufficient capabilities but insufficient regional resources, or high-priority medicinal herbs not being gathered first. Therefore, the system can use a multi-dimensional attribute matching model to jointly analyze data from multiple dimensions.
[0124] Specifically, the system can first input the medicinal material attributes into the multi-dimensional attribute matching model. In addition to the scarcity level, growth environment, growth cycle, harvesting time and harvesting risk coefficient of the medicinal material itself, the medicinal material attributes also include the harvesting priority that represents the urgency of harvesting. Therefore, the model can assign higher decision weights to high-priority virtual medicinal materials during the analysis process, so that they can be given priority in the subsequent resource allocation process.
[0125] Subsequently, the system can input regional attributes into the multi-dimensional attribute matching model. These regional attributes can include static attributes such as regional geographical location, terrain complexity, weather influence coefficient, and official access permissions, as well as dynamic attributes such as current medicinal herb distribution and current weather data. In other words, the medicinal herb resources and environmental conditions in the wild area will continue to change as the game progresses. Therefore, the model can use real-time regional attributes to reflect the actual collection value of the current area during the analysis process, thereby avoiding making wrong decisions based on historical data.
[0126] Next, the system can input role attributes into a multi-dimensional attribute matching model. These role attributes mainly characterize the role's ability to perform gathering tasks, and may include information such as herb gathering skills, carrying capacity, official authority, and environmental adaptability. Different roles differ in their ability to identify medicinal herbs, transport resources, and survive in complex environments. Therefore, the system comprehensively considers the matching relationship between role capabilities and gathering tasks through role attributes.
[0127] After inputting multi-dimensional data, the multi-dimensional attribute matching model can perform adaptability modeling analysis on medicinal herb attributes, regional attributes, and role attributes. This includes establishing matching relationships between virtual medicinal herbs and wild areas, between gathering roles and wild areas, and between gathering roles and virtual medicinal herbs. Furthermore, it can comprehensively quantify and evaluate each matching relationship and generate the optimal gathering plan for medicinal herb gathering events based on the evaluation results. This ensures that the gathering role resources are maximized while meeting the needs of medicinal herb gathering, thereby improving the overall efficiency of medicinal herb gathering.
[0128] In one embodiment, the process of constructing the multi-dimensional attribute matching model in step S131 may include: S1311: Establish multi-layered strong constraint verification rules based on each attribute dimension in the medicinal material attributes, regional attributes, and role attributes; the multi-layered strong constraint verification rules shall include at least official authority constraints, environmental adaptation constraints, risk coefficient constraints, load capacity constraints, and regional resource constraints.
[0129] S1312: Normalize each attribute dimension to obtain the medicinal material dimension factor, regional dimension factor, role dimension factor and global cost factor, and use the analytic hierarchy process to assign weights to each dimension factor to obtain a multi-dimensional weighted scoring system.
[0130] S1313: Using multi-layered strong constraint verification rules as pre-filtering conditions, the preset initial matching model is iteratively trained using a multi-dimensional weighted scoring system to obtain a trained multi-dimensional attribute matching model.
[0131] In this embodiment, when constructing a multi-dimensional attribute matching model, the system can establish multi-layered strong constraint verification rules based on various attribute dimensions among medicinal material attributes, regional attributes, and role attributes. These rules include, but are not limited to, official authority constraints, environmental adaptation constraints, risk coefficient constraints, load capacity constraints, and regional resource constraints. Then, each attribute dimension can be normalized to obtain medicinal material dimension factors, regional dimension factors, role dimension factors, and global cost factors. The analytic hierarchy process (AHP) is then used to assign weights to each dimension factor, resulting in a multi-dimensional weighted scoring system. After constructing the multi-layered strong constraint verification rules and the multi-dimensional weighted scoring system, the system can use the multi-layered strong constraint verification rules as pre-filtering conditions and iteratively train the preset initial matching model using the multi-dimensional weighted scoring system to obtain the trained multi-dimensional attribute matching model.
[0132] The multi-layered strong constraint verification rules refer to a set of rules used to determine whether the virtual medicinal materials, wild areas, and idle roles meet the basic execution conditions. The rule set in this application includes at least official authority constraints, environmental adaptation constraints, risk factor constraints, weight capacity constraints, and regional resource constraints. Specifically, the official authority constraint determines whether an idle role has permission to enter a wild area; the environmental adaptation constraint determines whether the role's capabilities are adapted to the regional environment; the risk factor constraint determines whether the gathering role can bear the gathering risks; the weight capacity constraint determines whether the role's weight capacity meets the weight requirements for gathering medicinal materials; and the regional resource constraint determines whether there are sufficient medicinal materials to be gathered in the wild area. Through these multi-layered strong constraint verification rules, the system can preemptively filter out matching combinations that do not meet the basic conditions, reducing invalid calculations and improving model analysis efficiency.
[0133] The multi-dimensional weighted scoring system refers to a system that quantifies and scores the dimensions of medicinal materials, region, role, and cost. This application's multi-dimensional weighted scoring system can include four dimensions: medicinal material dimension factors, region dimension factors, role dimension factors, and global cost factors. The medicinal material dimension factors can include factors such as collection priority, scarcity level, collection risk, and collection duration, used to characterize the importance and difficulty of the medicinal material collection task. The region dimension factors can include factors such as resource abundance, weather stability, terrain complexity, and regional accessibility, used to characterize the resource value and collection environment of the region. The role dimension factors can include factors such as harvesting ability, carrying capacity, authority level, and environmental adaptability, used to characterize the role's comprehensive ability to perform collection tasks. The global cost factor characterizes the overall resource cost required to complete the collection task, such as travel time, transportation time, physical exertion, task risk cost, and opportunity cost. Through the multi-dimensional weighted scoring system, the system can quantify and optimize attribute data, thereby ensuring the feasibility of the model matching results.
[0134] Specifically, when training the initial matching model, the system first uses multi-layered strong constraint verification rules as a pre-filtering condition to eliminate all matching combinations that do not meet the basic execution conditions, retaining only valid matching samples that meet the basic requirements for the model training phase. During the training phase, the initial matching model can use a multi-dimensional weighted scoring system to comprehensively score each valid matching sample, thereby obtaining the final model inference score for each valid matching sample. Subsequently, the model can use historical collection results, historical benefit results, and historical task completion status to provide feedback and correction on the scoring results of different valid matching samples, and continuously adjust the model parameters, so that the model gradually learns the optimal matching rules between medicinal material demand, regional resources, and role capabilities, and finally iterates to obtain a multi-dimensional attribute matching model that takes into account both feasibility and optimality.
[0135] In one embodiment, the multi-dimensional attribute matching model in step S132 includes a constraint filtering layer, a dimension scoring layer, a matching inference layer, and a global optimization layer; wherein, the process of generating the optimal collection scheme for medicinal herb collection events through the multi-dimensional attribute matching model may include: S1321: Through a constraint filtering layer, the legality of medicinal material attributes, regional attributes, and role attributes is verified based on multi-layer strong constraint verification rules, so as to obtain a feasible candidate set by combining and matching virtual medicinal materials, wild areas, and idle roles.
[0136] S1322: Through the dimensional scoring layer, a multi-dimensional weighted scoring system is used to quantify and score the medicinal material attributes, regional attributes, and role attributes in the feasible candidate set to obtain a standardized score.
[0137] S1323: Through the matching inference layer, based on standardized scores, the feasible candidate set is matched bidirectionally between virtual medicinal materials and wild areas, matched between idle roles and wild areas, and matched between idle roles and virtual medicinal material collection quotas, and multiple feasible collection schemes are generated based on the matching results.
[0138] S1324: Through the global optimization layer, based on the greedy iterative algorithm and the global resource load balancing strategy, the optimal collection scheme for the medicinal material collection event is obtained by comprehensively optimizing each feasible collection scheme.
[0139] In this embodiment, as Figure 10 As shown, Figure 10 A structural illustration of a multi-dimensional attribute matching model provided in an embodiment of this application; Figure 10Structurally, the multi-dimensional attribute matching model includes a constraint filtering layer, a dimension scoring layer, a matching inference layer, and a global optimization layer. The constraint filtering layer verifies the legality of medicinal herb attributes, regional attributes, and role attributes based on multi-layered strong constraint verification rules, combining and matching virtual medicinal herbs, wild areas, and idle roles to obtain a feasible candidate set. The dimension scoring layer uses a multi-dimensional weighted scoring system to quantify and score the medicinal herb attributes, regional attributes, and role attributes in the feasible candidate set, obtaining standardized scores. The matching inference layer performs bidirectional matching between virtual medicinal herbs and wild areas, adaptive matching between idle roles and wild areas, and matching of collection quotas between idle roles and virtual medicinal herbs based on the standardized scores, generating multiple feasible collection schemes based on the matching results. The global optimization layer uses a greedy iterative algorithm and a global resource load balancing strategy to comprehensively optimize each feasible collection scheme, obtaining the optimal collection scheme for the medicinal herb collection event.
[0140] Specifically, the constraint filtering layer is located at the front end of the multi-dimensional attribute matching model, and its main function is to perform feasibility verification. Due to objective constraints such as permission restrictions, environmental limitations, and resource limitations during actual data collection, some combinations of virtual medicinal materials, wild areas, and idle characters are objectively not feasible. To address this, the constraint filtering layer can use its built-in multi-layered strong constraint verification rules to analyze the legality of medicinal material attributes, area attributes, and character attributes, prioritizing the filtering of invalid combinations that lack feasibility, ultimately forming a feasible candidate set.
[0141] For example, when the target medicinal herbs are located in the Secret Realm Herb Garden, and an idle character only has ordinary pharmacist permissions, the constraint filtering layer can directly determine that the character cannot enter the corresponding area based on official rank and permission constraints, thus removing the combination from the candidate set. Similarly, when the amount of medicinal herb resources in the target area is insufficient to meet the current gathering needs, the constraint filtering layer can determine that the area has no gathering value based on regional resource constraints. After multiple layers of constraint verification, the system can form a feasible candidate set that meets the basic execution conditions among virtual medicinal herbs, wild areas, and idle characters, thus providing a reliable data foundation for subsequent analysis.
[0142] The dimensional scoring layer follows the constraint filtering layer and is primarily responsible for quantitatively evaluating each attribute dimension in the feasible candidate set. Since the feasible candidate combinations after constraint filtering only meet basic execution requirements, but there are still significant differences in data collection benefits and execution costs between different combinations, the dimensional scoring layer can invoke a multi-dimensional weighted scoring system to extract corresponding factors for the medicinal herb attributes, regional attributes, and role attributes in each feasible candidate combination according to preset rules, and complete normalization calculations. This ultimately yields a standardized score for each candidate combination, transforming attribute data from different dimensions into directly comparable quantitative results, providing data support for subsequent matching inference.
[0143] The matching inference layer follows the dimensional scoring layer and is primarily used to analyze the compatibility relationships between objects in different dimensions, thus formulating specific collection and execution plans. The matching inference layer can perform matching analysis from three aspects: virtual medicinal materials and wild areas, idle characters and wild areas, and idle characters and virtual medicinal materials. Specifically, regarding virtual medicinal materials and wild areas, the matching inference layer can determine the optimal collection area for different medicinal materials based on their growth environment, regional distribution, and resource abundance; for example, ginseng is more suitable for high-altitude areas, while astragalus is more suitable for forest areas. Regarding idle characters and wild areas, the matching inference layer can determine the most suitable idle characters to enter the target area to perform tasks based on attributes such as the character's environmental adaptability, official rank, and mobility; for example, characters with strong adaptability to secret realms and high-level permissions can be prioritized for secret realm areas. Regarding idle characters and virtual medicinal materials, the matching inference layer can determine the collection workload for each character based on the required quantity of medicinal materials, the character's herb-gathering skills, and the character's carrying capacity; for example, high-level herb-gathering characters can undertake more high-value herb-gathering tasks, while ordinary characters are responsible for regular herb-gathering tasks. Through hierarchical and progressive matching reasoning, the matching reasoning layer can clarify the correspondence between virtual medicinal materials, wild areas, and idle characters, and automatically generate multiple feasible collection schemes that meet the execution conditions.
[0144] The global optimization layer is located at the output of the multi-dimensional attribute matching model and is mainly responsible for selecting the scheme with the best overall benefit from multiple feasible collection schemes. Since simple hierarchical matching is prone to getting stuck in local optima, only satisfying the optimal allocation of a single medicinal herb or a single area, it cannot take into account both global collection benefits and resource load balancing. Therefore, the global optimization layer can combine a greedy iterative algorithm and a global resource load balancing strategy to make multiple rounds of overall adjustments to each feasible collection scheme: in each iteration, the matching combination with the highest current overall score is retained first, while the remaining status of global idle character resources and medicinal herb quotas is updated. This iteration is repeated until all virtual medicinal herbs to be collected are allocated. During this process, the global optimization layer can also avoid the problem of a single character bearing an overloaded task or some areas having idle character resources through a global resource load balancing strategy, and finally obtain the optimal collection scheme that takes into account both global collection benefits and resource utilization.
[0145] For example, if we need to collect 100 ginseng and 80 astragalus, and there are currently three available herb-gathering characters, then high-level character A has high herb-gathering skills and sufficient carrying capacity but can only adapt to high-altitude areas; mid-level character B can adapt to forest areas but has limited carrying capacity; and low-level character C can adapt to all areas but has low herb-gathering efficiency. During the global optimization process, a greedy iteration will prioritize matching the high-scoring combination: all ginseng gathering tasks will be assigned to character A, who is adapted to high-altitude areas; most of the astragalus gathering tasks will be assigned to character B, who is adapted to forest areas; and the remaining astragalus gathering quota will be assigned to character C. Simultaneously, load balancing checks will confirm that the workload of all three characters does not exceed their carrying capacity and ability limits, preventing overload and idleness. Ultimately, this combination is determined as the optimal gathering solution for this event, completing all gathering requirements in the shortest time and maximizing overall gathering efficiency. Of course, the same idle character can collect multiple virtual herbs at the same time. For example, when an idle character still has remaining weight capacity and stamina after completing the assigned collection task, the matching model can assign other suitable collection tasks to the character under the premise of load balancing, making full use of the remaining character resources, further reducing the overall collection cost, and improving resource utilization.
[0146] Through the synergistic effect of various processing layers in the multi-dimensional attribute matching model, the system can first filter out invalid matching combinations that do not meet the basic conditions, then complete hierarchical matching reasoning based on quantitative scoring, and finally obtain the optimal collection scheme that takes into account collection benefits, execution efficiency and resource utilization through global coordination. This can not only avoid invalid calculations and reduce the pressure on model operation, but also ensure the scientificity and rationality of matching results, effectively solving the problems of resource waste and low efficiency caused by random or manual allocation in virtual medicinal material collection.
[0147] In one embodiment, step S130, which involves performing a multi-dimensional adaptability analysis on the medicinal herb attributes, regional attributes, and role attributes to generate the optimal collection plan for the medicinal herb collection event, may further include: S133: During the collection of various virtual medicinal materials, if the update of the regional attributes of each wild area in the virtual scene is detected, the current collection progress of the medicinal material collection event is obtained.
[0148] S134: Based on the current collection progress and the updated regional attributes, update the optimal collection plan for medicinal herb collection events using a multidimensional matching scoring model.
[0149] In this embodiment, during the collection of various virtual medicinal materials, if the system detects that the attributes of each wild area in the virtual scene are updated, the current collection progress of the medicinal material collection event can be obtained. Then, based on the current collection progress and the updated regional attributes, the optimal collection plan for the medicinal material collection event is updated through a multi-dimensional matching scoring model to meet the collection needs under the dynamic changes of the virtual scene.
[0150] Understandably, the attributes of wild areas in a virtual scene are not static and may change due to dynamic factors such as weather changes, area event updates, and resource consumption. When such area attribute update events occur, the original optimal collection plan may no longer meet the current actual conditions, and some collection tasks may even become unfeasible. Therefore, the system can trigger a dynamic adjustment mechanism for the collection plan to regenerate the optimal collection plan.
[0151] Specifically, the system can automatically obtain the current collection progress, determine the quantity of medicinal materials that have been collected, the remaining quota to be collected, the status of the dispatched roles, and the current remaining idle role resources. Then, it substitutes the updated regional attributes into the multi-dimensional attribute matching model, and generates a new optimal collection plan according to the process of constraint filtering, scoring quantification, matching reasoning, and global optimization. It also dynamically adjusts the allocation of unexecuted collection tasks.
[0152] For example, if a high-altitude area originally planned for ginseng harvesting experiences a sudden weather disaster, significantly increasing the risk level, the originally assigned harvesting roles may no longer meet the updated risk constraints. Therefore, the system can trigger a plan update. By obtaining the current harvesting progress, it can be confirmed that some ginseng has already been harvested, while role A is still en route to the originally designated high-altitude area and has not yet started harvesting. There are still 60 ginseng quotas to be harvested. At the same time, a new ginseng resource point has been detected in an adjacent low-altitude area. Based on this, the system can recalculate the updated regional attributes using a multi-dimensional attribute matching model. The final adjustment is to recall role A, who is heading to the high-risk area, and assign them to the newly refreshed low-altitude ginseng resource point to complete the remaining harvesting task. This ensures that the remaining harvesting task is completed on time while avoiding the risks associated with harvesting in the updated area, preventing the harvesting task from being interrupted due to changes in regional attributes.
[0153] In one embodiment, the optimal collection scheme in step S140 may include at least one medicinal herb collection task, each medicinal herb collection task including a target collection role, a target collection area, a medicinal herb category quota, and an optimal collection route; wherein, the process of executing the collection operation of each virtual medicinal herb according to the optimal collection scheme may include: S141: According to the medicinal herb collection task, control the target collection character to go to the target collection area to collect medicinal herbs according to the optimal collection route until the medicinal herb category quota is completed.
[0154] In this embodiment, the optimal collection plan output by the model can include at least one medicinal herb collection task. Each medicinal herb collection task includes a target collection role, a target collection area, a medicinal herb category quota, and an optimal collection route. Therefore, based on the optimal collection route, the system can control the target collection role to travel to the target collection area according to the optimal collection route to collect medicinal herbs until the medicinal herb category quota is completed.
[0155] Specifically, the optimal collection plan consists of at least one independent medicinal herb collection task. Each task is assigned to a corresponding target collection role. Each task clearly indicates the target collection area the role needs to go to, one or more types of medicinal herbs to be collected, and their corresponding quotas. Simultaneously, an optimal collection route is planned that includes all collection locations, minimizes travel distance, and reduces collection risk. Therefore, after receiving the assigned medicinal herb collection task, the target collection role can automatically move to the target collection area according to the optimal collection route. Within the area, it can locate the corresponding medicinal herb resource points based on the matching results, then initiate the automatic collection process, gradually completing the assigned quota of medicinal herb types. Once the quota is collected, the current collection task automatically ends, awaiting the system's next task assignment.
[0156] For example, in a medicinal herb gathering task, the task information clearly states that it requires collecting 50 portions of Astragalus membranaceus in the forest area and 20 portions of Ganoderma lucidum in the valley area. When an idle character accepts the gathering task, they can start from the town post station where the character is currently located according to the optimal gathering route planned by the system. They can first go through the nearby forest area to complete the Astragalus membranaceus gathering, and then go to the more distant valley area to complete the Ganoderma lucidum gathering. After the quotas of both medicinal herbs have been collected, the character will automatically return to the town to deliver the medicinal herbs and complete the gathering task.
[0157] In one embodiment, the method may further include: S150: Generate a progress screen for the medicinal herb collection event and display the progress screen in a preset position in the virtual scene; the progress screen includes a progress bar for each virtual medicinal herb.
[0158] S160: Update the collection progress bar in the collection progress screen in real time according to the current collection progress of the medicinal material collection event.
[0159] In this embodiment, when a medicinal herb collection event is triggered in the virtual scene, the system can also generate a collection progress screen for the medicinal herb collection event and display the collection progress screen in a preset position in the virtual scene. The collection progress screen can display the collection progress bar for each virtual medicinal herb. During the medicinal herb collection process, the system can also update the collection progress bar in the collection progress screen in real time according to the current collection progress of the medicinal herb collection event, so that players can intuitively grasp the completion status of the overall collection task.
[0160] Specifically, once the medicinal herb harvesting event is initiated, the system will automatically generate a dedicated harvesting progress screen in a preset display area of the virtual scene. (Illustratively, as shown...) Figure 11 As shown, Figure 11 An interface diagram showing the data acquisition progress screen provided in an embodiment of this application; Figure 11 In the game, players can set separate progress bars for each type of virtual medicinal herb to be collected. These bars simultaneously indicate the quantity collected, the remaining quota, and the target total quota. Throughout the collection process, the system synchronizes the progress in real-time after each herb is collected, automatically updating the fill ratio of the corresponding herb category's progress bar. This allows players to intuitively view the progress of each herb and track the overall collection task without manually navigating to the menu, enhancing the player experience.
[0161] Furthermore, in addition to the collection progress bar, the collection progress screen can also simultaneously display the status of each completed collection task. For example, it can mark different statuses such as completed, collecting in progress, and waiting to depart, making it convenient for players to quickly grasp the overall progress of the collection event. When the collection plan is dynamically adjusted, the task allocation and progress information can also be updated in the progress screen at the same time, so that players can know in time about the task adjustments caused by changes in the virtual scene, avoiding information gaps that affect players' judgment of the overall collection process.
[0162] The virtual medicinal herb collection device provided in the embodiments of this application is described below. The virtual medicinal herb collection device described below can be referred to in correspondence with the virtual medicinal herb collection method described above.
[0163] In one embodiment, such as Figure 12 As shown, Figure 12 This application provides a schematic diagram of the structure of a virtual medicinal herb collection device according to an embodiment of the present application. The present application also provides a virtual medicinal herb collection device, including an event generation module 210, an attribute acquisition module 220, a scheme generation module 230, and a medicinal herb collection module 240, specifically comprising the following: The event generation module 210 is used to generate a medicinal herb collection event containing multiple virtual medicinal herbs to be collected in response to a medicinal herb replenishment command triggered in the virtual scene.
[0164] The attribute acquisition module 220 is used to acquire the medicinal attributes of each virtual medicinal herb, determine the role attributes of each idle character in the character collection library, and monitor the regional attributes of each wild area in the virtual scene in real time.
[0165] The scheme generation module 230 is used to perform multi-dimensional adaptability analysis on the attributes of medicinal materials, regional attributes, and role attributes, and generate the optimal collection scheme for medicinal material collection events.
[0166] The medicinal herb collection module 240 is used to perform collection operations on each virtual medicinal herb according to the optimal collection scheme.
[0167] In the above embodiments, when a medicinal herb replenishment command is triggered in the virtual scene, this application can automatically respond to the command and generate a medicinal herb collection event containing multiple virtual medicinal herbs to be collected, realizing one-click collection task initiation and significantly reducing the tedious medicinal herb selection operation for players. Subsequently, the medicinal herb attributes of each virtual medicinal herb in the medicinal herb collection event can be obtained, the character attributes of each idle character in the collection character library can be determined, and the regional attributes of each wild area in the virtual scene can be monitored in real time. This allows the construction of a comprehensive dynamic data foundation covering three levels: medicinal herbs, characters, and regions. Among these, the real-time monitoring of regional attributes ensures that subsequent collection decisions are always generated based on the latest state of the virtual scene. During the collection decision-making process, this application can dynamically perform multi-dimensional adaptability analysis on medicinal herb attributes, regional attributes, and character attributes to generate the optimal collection plan for the medicinal herb collection event. This dynamic analysis mechanism can adapt to the dynamic changes of the virtual scene and match the optimal combination of medicinal herbs, characters, and regions. Therefore, executing the collection operation of each virtual medicinal herb according to the generated optimal collection plan can maximize collection efficiency and resource utilization, thereby directly translating into better business benefits.
[0168] In one embodiment, the event generation module 210 may include: The instruction generation submodule is used to receive at least one special event selected by the user in the virtual scene, and determine the medicinal material consumption requirements of at least one special event, so as to generate a medicinal material replenishment instruction based on the medicinal material consumption requirements.
[0169] The instruction triggering submodule is used to automatically trigger a medicinal material replenishment instruction when the inventory of medicinal materials in the virtual scene does not meet the preset inventory conditions.
[0170] In one embodiment, the instruction triggering submodule may include: The demand assessment unit is used to assess the potential demand for medicinal materials in a virtual TCM clinic based on real-time patient data, and to dynamically update the preset inventory conditions based on the potential demand for medicinal materials.
[0171] The inventory judgment unit is used to generate a medicinal material replenishment instruction based on the potential demand for medicinal materials when the inventory of medicinal materials in the virtual scenario does not meet the preset inventory conditions.
[0172] In one embodiment, the event generation module 210 may further include: The inventory analysis submodule is used to determine the medicinal material demand data in the medicinal material replenishment order, perform multi-dimensional inventory analysis on the medicinal material demand data, and generate an initial replenishment list.
[0173] The inventory generation submodule is used to display the initial supply inventory in the virtual scene, receive the submission results returned by the user based on the initial supply inventory, and generate the final supply inventory.
[0174] The event generation submodule is used to obtain the medicinal herb replanting needs of the planting area in the virtual scene, and generate medicinal herb collection events containing multiple virtual medicinal herbs to be collected and collection priorities based on the final supply list and medicinal herb replanting needs.
[0175] In one embodiment, the inventory analysis submodule may include: The parameter determination unit is used to determine the required quantity, source, and urgency of each virtual medicinal material in the medicinal material demand data, and to determine the collection priority of each virtual medicinal material based on its source and urgency.
[0176] The inventory acquisition unit is used to acquire the current inventory quantity of each virtual medicinal herb in the virtual scene's pharmacy warehouse, the quantity being collected in the wild area, and the growth status of the medicinal herb in the planting area.
[0177] The gap analysis unit is used to perform gap analysis on the corresponding demand quantity based on the existing inventory quantification, the quantity being collected in transit, and the growth status of each virtual medicinal material, so as to obtain the gap size of each virtual medicinal material.
[0178] The list generation unit is used to generate an initial supply list based on the size of the gap and collection priority of each virtual medicinal material.
[0179] In one embodiment, the manifest generation submodule may include: The user confirmation unit is used to generate the final supply list based on the initial supply list in response to the user's direct confirmation operation returned by the user based on the initial supply list.
[0180] The inventory confirmation unit is used to respond to the data modification operation entered by the user on the initial supply inventory and generate the final supply inventory based on the data modification result of the initial supply inventory.
[0181] In one embodiment, the event generation submodule may include: The planning generation unit is used to determine the growth status of planted medicinal herbs in the planting area of the virtual scene, and generate a planting plan based on the medicinal herb planting task and the growth status of the medicinal herbs in the virtual scene.
[0182] The demand determination unit is used to obtain the inventory of medicinal herb seedlings in the planting area and determine the replanting demand of medicinal herbs in the planting area based on the inventory of medicinal herb seedlings and the planting plan.
[0183] In one embodiment, the attribute acquisition module 220 may include: The priority determination submodule is used to determine the collection priority of each virtual medicinal herb in the medicinal herb collection event.
[0184] The herbal attribute acquisition submodule is used to obtain the herbal attributes of each virtual herbal medicine from the virtual herbal medicine library and add the acquisition priority of each virtual herbal medicine to the corresponding herbal attributes.
[0185] Among them, the attributes of medicinal materials should include at least the priority of collection, the degree of scarcity, the growth environment, the growth cycle, the collection duration, and the risk factor of collection.
[0186] In one embodiment, the attribute acquisition module 220 may include: The character attribute acquisition submodule is used to filter out currently idle characters from the character collection library, designate them as idle characters, and obtain the character attributes of each idle character from the character attribute system.
[0187] Among them, the character attributes include at least herb gathering skills, carrying capacity, official authority, and environmental adaptability.
[0188] In one embodiment, the attribute acquisition module 220 may include: The regional attribute acquisition submodule is used to monitor the current distribution of medicinal herbs and current weather data in each wild area in real time, and to obtain the static attributes of each wild area in the virtual scene from the wild area database.
[0189] The regional attribute update submodule is used to dynamically update the regional attributes of each wild area based on the current distribution of medicinal herbs, current weather data, and static attributes of each wild area.
[0190] Among them, static attributes include at least the regional geographical location, terrain complexity, weather impact coefficient, and official access authority.
[0191] In one embodiment, the solution generation module 230 may include: The model invocation submodule is used to invoke the multi-dimensional attribute matching model.
[0192] The model analysis submodule is used to input medicinal material attributes, regional attributes, and role attributes into a multi-dimensional attribute matching model for adaptability modeling analysis, and to generate the optimal collection plan for medicinal material collection events through the multi-dimensional attribute matching model.
[0193] In one embodiment, the model invocation submodule may include: The rule-establishing unit is used to establish multi-layered strong constraint verification rules based on various attribute dimensions in the medicinal material attributes, regional attributes, and role attributes. The multi-layered strong constraint verification rules include at least official authority constraints, environmental adaptation constraints, risk coefficient constraints, load capacity constraints, and regional resource constraints.
[0194] The system generation unit is used to normalize each attribute dimension to obtain the medicinal material dimension factor, the regional dimension factor, the role dimension factor, and the global cost factor. The hierarchical analysis method is then used to assign weights to each dimension factor to obtain a multi-dimensional weighted scoring system.
[0195] The model training unit is used to iteratively train the preset initial matching model using multi-layer strong constraint verification rules as pre-filtering conditions and a multi-dimensional weighted scoring system to obtain the trained multi-dimensional attribute matching model.
[0196] In one embodiment, the multi-dimensional attribute matching model in the model analysis submodule includes a constraint filtering layer, a dimension scoring layer, a matching inference layer, and a global optimization layer; the model analysis submodule may also include: The legality verification unit is used to perform legality verification on the attributes of medicinal materials, regional attributes, and role attributes based on multi-layer strong constraint verification rules through the constraint filtering layer, so as to obtain a feasible candidate set by combining and matching virtual medicinal materials, wild areas, and idle roles.
[0197] The attribute scoring unit is used to quantify and score the medicinal material attributes, regional attributes, and role attributes in the feasible candidate set through a multi-dimensional weighted scoring system via the dimensional scoring layer, thereby obtaining a standardized score.
[0198] The attribute matching unit is used to perform bidirectional matching between virtual medicinal materials and wild areas, adaptation matching between idle roles and wild areas, and collection quota matching between idle roles and virtual medicinal materials on feasible candidate sets based on standardized scores through the matching inference layer, and to generate multiple feasible collection schemes based on the matching results.
[0199] The scheme optimization unit is used to optimize various feasible collection schemes through a global optimization layer, based on a greedy iterative algorithm and a global resource load balancing strategy, to obtain the optimal collection scheme for the medicinal material collection event.
[0200] In one embodiment, the solution generation module 230 may further include: The parameter update submodule is used to obtain the current collection progress of the medicinal herb collection event if the update of the regional attributes of each wild area in the virtual scene is detected during the collection of each virtual medicinal herb.
[0201] The scheme update submodule is used to update the optimal collection scheme for medicinal material collection events based on the current collection progress and the updated regional attributes, using a multi-dimensional matching scoring model.
[0202] In one embodiment, the optimal collection scheme in the medicinal herb collection module 240 may include at least one medicinal herb collection task, each medicinal herb collection task including a target collection role, a target collection area, a medicinal herb category quota, and an optimal collection route; wherein, the medicinal herb collection module 240 may further include: The data collection control submodule is used to control the target data collection character to go to the target data collection area according to the optimal data collection route to collect medicinal materials according to the medicinal material collection task, until the medicinal material category quota is completed.
[0203] In one embodiment, the apparatus may further include: The image generation module is used to generate a progress image of the medicinal herb collection event and display the progress image in a preset position in the virtual scene; the progress image includes a progress bar for the collection of each virtual medicinal herb.
[0204] The progress update module is used to update the collection progress bar in the collection progress screen in real time according to the current collection progress of the medicinal material collection event.
[0205] In one embodiment, this application also provides a storage medium storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the virtual medicinal herb collection method as described in any of the above embodiments.
[0206] In one embodiment, this application also provides a computer device storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the virtual medicinal herb collection method as described in any of the above embodiments.
[0207] Indicatively, such as Figure 13 As shown, Figure 13 This is a schematic diagram of the internal structure of a computer device 300 provided in an embodiment of this application. The computer device 300 can be provided as a server. (Refer to...) Figure 13 The computer device 300 includes a processing component 302, which further includes one or more processors, and memory resources represented by memory 301 for storing instructions, such as application programs, that can be executed by the processing component 302. The application programs stored in memory 301 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 302 is configured to execute instructions to perform the virtual medicinal herb harvesting method of any of the above embodiments.
[0208] The computer device 300 may also include a power supply component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input / output (I / O) interface 305. The computer device 300 may operate on an operating system stored in memory 301, such as Windows Server™, Mac OS X™, Unix™, Linux™, Free BSD™, or similar.
[0209] Those skilled in the art will understand that Figure 13 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0210] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0211] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.
[0212] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for virtual medicinal herb collection, characterized in that, The method includes: In response to a medicinal herb replenishment command triggered in a virtual scene, a medicinal herb collection event is generated, which includes multiple virtual medicinal herbs to be collected. Obtain the medicinal properties of each virtual medicinal herb, determine the character attributes of each idle character in the character collection library, and monitor the regional attributes of each wild area in the virtual scene in real time. A multi-dimensional adaptability analysis is dynamically performed on the medicinal herb attributes, the regional attributes, and the role attributes to generate the optimal collection scheme for the medicinal herb collection event; The collection operation for each virtual medicinal material is performed according to the optimal collection scheme.
2. The virtual medicinal herb collection method according to claim 1, characterized in that, The triggering process for the medicinal material replenishment command includes: Receive at least one special event selected by the user in a virtual scene, and determine the medicinal material consumption requirement of the at least one special event, so as to generate a medicinal material replenishment instruction according to the medicinal material consumption requirement; And / or, when it is detected that the inventory of medicinal materials in the virtual scene does not meet the preset inventory conditions, a medicinal material replenishment command is automatically triggered.
3. The virtual medicinal herb collection method according to claim 2, characterized in that, When the monitoring detects that the inventory of medicinal materials in the virtual scene does not meet the preset inventory conditions, a medicinal material replenishment command is automatically triggered, including: The potential demand for medicinal materials in the TCM clinic is assessed based on the real-time patient data of the virtual scene, and the preset inventory conditions are dynamically updated based on the potential demand for medicinal materials. When the inventory of medicinal materials in the virtual scenario does not meet the preset inventory conditions, a medicinal material replenishment instruction is generated based on the potential demand for medicinal materials.
4. The virtual medicinal herb collection method according to claim 1, characterized in that, The response to a medicinal herb replenishment command triggered in the virtual scene generates a medicinal herb collection event containing multiple virtual medicinal herbs to be collected and collection priorities, including: Determine the medicinal herb demand data in the medicinal herb replenishment order, perform multi-dimensional inventory analysis on the medicinal herb demand data, and generate an initial replenishment list; The initial supply list is displayed in the virtual scene, and the user's submission result based on the initial supply list is received to generate the final supply list; Obtain the medicinal herb replanting needs of the planting area in the virtual scene, and generate medicinal herb collection events containing multiple virtual medicinal herbs to be collected and collection priorities based on the final supply list and the medicinal herb replanting needs.
5. The virtual medicinal herb collection method according to claim 4, characterized in that, The process of performing multi-dimensional inventory analysis on the medicinal material demand data to generate an initial replenishment list includes: Determine the required quantity, source, and urgency of each virtual medicinal material in the medicinal material demand data, and determine the collection priority of each virtual medicinal material based on its source and urgency. Obtain the current inventory quantity of each virtual medicinal herb in the pharmacy warehouse in the virtual scene, the quantity being collected en route from wild areas, and the growth status of the medicinal herb in the planting area; Based on the existing inventory, the quantity of items being collected in transit, and the growth status of each virtual medicinal herb, a gap analysis is performed on the corresponding demand quantity to obtain the size of the gap for each virtual medicinal herb. An initial supply list is generated based on the size of the shortage of each virtual medicinal herb and the collection priority.
6. The virtual medicinal herb collection method according to claim 4, characterized in that, The step of receiving the submission result returned by the user based on the initial supply list and generating the final supply list includes: In response to the user's direct confirmation based on the initial supply list, a final supply list is generated based on the initial supply list; Alternatively, in response to the user's data modification operation based on the initial supply list, a final supply list is generated based on the data modification result of the initial supply list.
7. The virtual medicinal herb collection method according to claim 4, characterized in that, The process of obtaining the medicinal herb replanting needs in the planting area of the virtual scene includes: Determine the growth status of the planted medicinal herbs in the planting area of the virtual scene, and generate a planting plan based on the medicinal herb planting task in the virtual scene and the growth status of the medicinal herbs; Obtain the inventory of medicinal herb seedlings in the planting area, and determine the replanting needs of medicinal herbs in the planting area based on the inventory of medicinal herb seedlings and the planting plan.
8. The virtual medicinal herb collection method according to claim 1, characterized in that, The acquisition of the medicinal properties of each virtual medicinal herb includes: Determine the collection priority of each virtual medicinal herb in the medicinal herb collection event; Obtain the medicinal properties of each virtual medicinal herb from the virtual medicinal herb library, and add the collection priority of each virtual medicinal herb to the corresponding medicinal herb properties; The medicinal material attributes include at least the following: collection priority, scarcity level, growth environment, growth cycle, collection duration, and collection risk factor.
9. The virtual medicinal herb collection method according to claim 1, characterized in that, The process of determining the character attributes of each idle character in the character database includes: Select currently idle characters from the character database and designate them as idle characters. Then, obtain the character attributes of each idle character from the character attribute system. The character attributes include at least herb gathering skills, carrying capacity, official authority, and environmental adaptability.
10. The virtual medicinal herb collection method according to claim 1, characterized in that, The real-time monitoring of the regional attributes of each wild area in the virtual scene includes: Real-time monitoring of the current distribution of medicinal herbs and current weather data in each wild area, and obtaining the static attributes of each wild area in the virtual scene from the wild area database; The regional attributes of each wild area are dynamically updated based on the current distribution of medicinal herbs, current weather data, and static attributes. The static attributes include at least the regional geographical location, terrain complexity, weather influence coefficient, and official access permissions.
11. The virtual medicinal herb collection method according to claim 1, characterized in that, The step of dynamically performing multi-dimensional adaptability analysis on the medicinal herb attributes, regional attributes, and role attributes to generate the optimal collection plan for the medicinal herb collection event includes: Call the multi-dimensional attribute matching model; The medicinal herb attributes, the regional attributes, and the role attributes are input into the multi-dimensional attribute matching model for adaptability modeling analysis, and the optimal collection scheme for the medicinal herb collection event is generated through the multi-dimensional attribute matching model.
12. The virtual medicinal herb collection method according to claim 11, characterized in that, The construction process of the multi-dimensional attribute matching model includes: A multi-layered strong constraint verification rule is established based on each attribute dimension of the medicinal material attribute, the regional attribute, and the role attribute; the multi-layered strong constraint verification rule includes at least official authority constraint, environmental adaptation constraint, risk coefficient constraint, load capacity constraint, and regional resource constraint. Normalization was performed on each attribute dimension to obtain the medicinal material dimension factor, the regional dimension factor, the role dimension factor, and the global cost factor. The analytic hierarchy process was then used to assign weights to each dimension factor to obtain a multi-dimensional weighted scoring system. Using the multi-layer strong constraint verification rules as pre-filtering conditions, the preset initial matching model is iteratively trained using the multi-dimensional weighted scoring system to obtain the trained multi-dimensional attribute matching model.
13. The virtual medicinal herb collection method according to claim 11, characterized in that, The multi-dimensional attribute matching model includes a constraint filtering layer, a dimension scoring layer, a matching inference layer, and a global optimization layer; The process of generating the optimal collection scheme for the medicinal herb collection event using the multi-dimensional attribute matching model includes: Through the constraint filtering layer, the legality of the medicinal material attributes, the regional attributes, and the role attributes is verified based on the multi-layer strong constraint verification rules, so as to obtain a feasible candidate set by combining and matching virtual medicinal materials, wild areas, and idle roles. Through the dimensional scoring layer, the medicinal material attributes, regional attributes, and role attributes in the feasible candidate set are quantitatively scored using the multi-dimensional weighted scoring system to obtain standardized scores; Through the matching inference layer, based on the standardized score, the feasible candidate set is matched bidirectionally between virtual medicinal materials and wild areas, matched with idle characters and wild areas, and matched with the collection quota of idle characters and virtual medicinal materials. Multiple feasible collection schemes are generated based on the matching results. Through the global optimization layer, based on the greedy iterative algorithm and the global resource load balancing strategy, the optimal collection scheme for the medicinal material collection event is obtained by comprehensively optimizing each feasible collection scheme.
14. The virtual medicinal herb collection method according to claim 1, characterized in that, The step of dynamically performing multi-dimensional adaptability analysis on the medicinal herb attributes, regional attributes, and role attributes to generate the optimal collection scheme for the medicinal herb collection event also includes: During the collection of various virtual medicinal herbs, if the update of the regional attributes of each wild area in the virtual scene is detected, the current collection progress of the medicinal herb collection event is obtained. Based on the current collection progress and the updated regional attributes, the optimal collection scheme for the medicinal herb collection event is updated using the multidimensional matching scoring model.
15. The virtual medicinal herb collection method according to claim 1, characterized in that, The optimal collection scheme includes at least one medicinal herb collection task, and each medicinal herb collection task includes a target collection role, a target collection area, a medicinal herb category quota, and an optimal collection route. The step of performing the collection operation for each virtual medicinal material according to the optimal collection scheme includes: According to the medicinal herb collection task, the target collection character is controlled to go to the target collection area to collect medicinal herbs according to the optimal collection route until the quota of the medicinal herb category is completed.
16. The virtual medicinal material collection method according to any one of claims 1-15, characterized in that, The method further includes: Generate a progress screen for the medicinal herb collection event and display the progress screen at a preset location in the virtual scene; the progress screen includes a progress bar for the collection of each virtual medicinal herb. The collection progress bar in the collection progress screen is updated in real time according to the current collection progress of the medicinal material collection event.
17. A virtual medicinal herb collection device, characterized in that, include: The event generation module is used to respond to the medicinal herb replenishment command triggered in the virtual scene and generate a medicinal herb collection event containing multiple virtual medicinal herbs to be collected. The attribute acquisition module is used to acquire the medicinal properties of each virtual medicinal herb, determine the role attributes of each idle character in the character collection library, and monitor the regional attributes of each wild area in the virtual scene in real time. The scheme generation module is used to dynamically perform multi-dimensional adaptability analysis on the medicinal material attributes, the regional attributes, and the role attributes to generate the optimal collection scheme for the medicinal material collection event. The medicinal herb collection module is used to perform collection operations on each virtual medicinal herb according to the optimal collection scheme.
18. A storage medium, characterized in that: The storage medium stores computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the virtual medicinal material collection method as described in any one of claims 1 to 7.
19. A computer device, characterized in that, include: One or more processors, and memory; The memory stores computer-readable instructions, which, when executed by the one or more processors, perform the steps of the virtual medicinal material collection method as described in any one of claims 1 to 7.