Non-player character information generation method and device, equipment and storage medium
By automatically generating NPC's configuration description information and resource configuration, the problem of traditional NPC design relying on manual presets is solved, and development efficiency and personalized interactive experience are improved.
Patent Information
- Application Number
- CN202411997486.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-02-28
AI Technical Summary
Traditional NPC design methods rely on manual presets, consume a lot of human resources and are difficult to achieve personalized interactive experience.
By obtaining the preset character description information of the new NPC, the NPC's configuration description information is automatically generated, and the matching resource data is retrieved from the preset game resource library to perform configuration.
Improve the development efficiency of NPCs and enable the generated NPCs to meet the personalized needs of users.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a method, device, equipment and storage medium for generating information of a non-player character. Background Art
[0002] Non-player characters (NPCs) refer to game characters in electronic games that are not controlled by real players. As an important element in building the game world, the richness of NPC design directly affects the immersion and playability of the game.
[0003] Traditional NPC design methods mainly rely on manual presets. Game developers need to manually design the appearance, write background stories and dialogue content for each NPC. This method not only consumes a lot of manpower, but also makes it difficult to achieve a truly personalized interactive experience. Summary of the invention
[0004] In view of the deficiencies in the above-mentioned prior art, the present application provides a method, device, equipment and storage medium for generating information of a non-player character, so as to solve the problems existing in the prior art.
[0005] The technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for generating information of a non-player character, comprising:
[0007] Obtaining preset character description information of a new non-player character, wherein the preset character description information includes: preset equipment description information;
[0008] According to the preset equipment description information, retrieving equipment description information of a target non-player character that matches the preset character description information from a preset game character equipment library;
[0009] Generate target equipment description information of the new non-player character according to the preset character description information and the equipment description information of the target non-player character;
[0010] According to the target equipment description information, target equipment resource data matching the target equipment description information is retrieved from a preset game equipment resource library, and the target equipment resource data is used to configure equipment for the new non-player character.
[0011] In a second aspect, an embodiment of the present application provides a device for generating information of a non-player character, including:
[0012] An acquisition module is used to acquire preset character description information of a new non-player character, wherein the preset character description information includes: preset equipment description information;
[0013] A first retrieval module is used to retrieve equipment description information of a target non-player character that matches the preset character description information from a preset game character equipment library according to the preset equipment description information;
[0014] A generating module, configured to generate target equipment description information of the new non-player character according to the preset character description information and the equipment description information of the target non-player character;
[0015] The second retrieval module is used to retrieve target equipment resource data matching the target equipment description information from a preset game equipment resource library according to the target equipment description information, and the target equipment resource data is used to equip the new non-player character.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to implement the method for generating information of non-player characters described in the above embodiment.
[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium having program instructions stored thereon, and when the program instructions are executed by a processor, the method for generating information of a non-player character described in the above embodiment is implemented.
[0018] The beneficial effect of the present application is that the present application provides a method for generating information of a non-player character, which can automatically generate a non-player character through preset character description information of a new non-player character input by a user, thereby improving the development efficiency of the non-player character and also making the generated non-player character meet the personalized needs of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 One of the flowcharts of the method for generating information of a non-player character provided in an embodiment of the present application;
[0021] Figure 2 A second flowchart of a method for generating information of a non-player character provided in an embodiment of the present application;
[0022] Figure 3 A third flowchart of a method for generating information of a non-player character provided in an embodiment of the present application;
[0023] Figure 4 A fourth flowchart of a method for generating information of a non-player character provided in an embodiment of the present application;
[0024] Figure 5 A fifth flowchart of a method for generating information of a non-player character provided in an embodiment of the present application;
[0025] Figure 6 A sixth flowchart of a method for generating information of a non-player character provided in an embodiment of the present application;
[0026] Figure 7 Flow chart 7 of the method for generating information of a non-player character provided in an embodiment of the present application;
[0027] Figure 8 8 is a flow chart of a method for generating information of a non-player character provided in an embodiment of the present application;
[0028] Fig. 9 A ninth flowchart of a method for generating information of a non-player character provided in an embodiment of the present application;
[0029] Fig.10 A tenth flowchart of a method for generating information of a non-player character provided in an embodiment of the present application;
[0030] Fig.11 11 is a flow chart of a method for generating information of a non-player character provided in an embodiment of the present application;
[0031] Fig.12 A flowchart diagram of a method for generating information of a non-player character provided in an embodiment of the present application is shown in FIG. 12;
[0032] Fig.13 13. Flow chart of the method for generating information of a non-player character provided in an embodiment of the present application;
[0033] Fig.14 A schematic diagram of the structure of a device for generating information of a non-player character provided in an embodiment of the present application;
[0034] Fig.15 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.
[0036] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0037] In addition, the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0038] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.
[0039] The embodiment of the present application provides a method for generating information of a non-player character. The method can be generated by any electronic device with computing and processing capabilities. The electronic device can be, for example, a terminal-oriented computer device or a back-end server.
[0040] The following is a specific example description of the non-player character information generation method provided by the present application through multiple examples in conjunction with the accompanying drawings.
[0041] Figure 1 This is one of the flow charts of the method for generating information of a non-player character provided in an embodiment of the present application, such as Figure 1 As shown, the method includes:
[0042] S101. Obtain preset role description information of a new non-player role.
[0043] When a new non-player character needs to be generated, preset character description information of the new non-player character needs to be obtained based on information input by the user, wherein the information input by the user may be information input by a game developer or a game player, and the preset character description information includes preset equipment description information.
[0044] S102: According to the preset equipment description information, retrieve equipment description information of a target non-player character that matches the preset equipment description information from a preset game character equipment library.
[0045] The preset game character equipment library is a storage resource library that collects the equipment description information of various game characters. It is like a large warehouse full of different character "outfit" plans and the specific details of these plans. It covers the possible equipment situations of different types of non-player characters, making it convenient to extract the corresponding content on demand.
[0046] After obtaining the preset equipment description information, the equipment description information of the most similar target non-player character that matches the preset equipment description information can be retrieved from the preset game character equipment library as an example of the equipment description information of the new non-player character.
[0047] S103: Generate target equipment description information of a new non-player character according to preset equipment description information and equipment description information of the target non-player character.
[0048] The preset equipment description information and the equipment description information of the target non-player character are combined and input into the large language model to generate the target equipment description information of the new non-player character.
[0049] S104. According to the target equipment description information, target equipment resource data matching the target equipment description information is retrieved from a preset game equipment resource library.
[0050] The target equipment description information is also the equipment description information for the new non-player character. The preset game equipment resource library pre-stores the correspondence between the equipment description information and the equipment resource data. The target equipment resource data can be retrieved from the preset game equipment resource library based on the target equipment description information. The target equipment resource data is used to configure the equipment for the new non-player character.
[0051] It should be noted that the present application configures equipment for non-player characters, including but not limited to configuring the appearance of non-player characters, configuring the skills of non-player characters, and configuring the personality of non-player characters.
[0052] In summary, the embodiments of the present application provide a method for generating information of a non-player character, which can automatically generate a non-player character through preset role description information of a new non-player character input by a user, thereby improving the development efficiency of the non-player character and also making the generated non-player character meet the personalized needs of the user.
[0053] In one embodiment, if Figure 2 As shown, S103 generates target equipment description information of a new non-player character according to the preset equipment description information and the equipment description information of the target non-player character, which may include, for example:
[0054] S201. Generate sample description information of equipment for a new non-player character based on the equipment description information of the target non-player character.
[0055] After obtaining the equipment description information of the target non-player character, the equipment description information of the target non-player character is sorted out as the equipment sample description information of the new non-player character, that is, as an instance of the equipment description information of the new non-player character.
[0056] S202: Generate target assembly description information according to the assembly sample description information and the preset assembly description information.
[0057] Then, input the sample configuration description information and the preset configuration description information into the large language model to generate the target configuration description information. Specifically, it includes:
[0058] S301, generating a first prompt word according to the assembly sample description information and the preset assembly description information.
[0059] The configuration sample description information and the preset configuration description information are combined and a prompt process is performed to generate a first prompt word. In the field of large language models, prompt refers to the input text provided to the model to guide the model to generate a specific output.
[0060] S302: Generate target equipment description information based on the first prompt word using a preset large language model.
[0061] According to the first prompt word, the target equipment description information can be generated using the preset large language model. The target equipment description information is used to retrieve the target equipment resource data from the preset game equipment resource library.
[0062] The following is a specific example of the preset equipment description information.
[0063] In one embodiment, the preset equipment description information includes preset appearance equipment description information, the preset game character equipment library includes a first character equipment library, and the preset game equipment resource library includes a first game resource library.
[0064] S102, according to the preset equipment description information, retrieves the equipment description information of the target non-player character that matches the preset equipment description information from the preset game character equipment library, including: S401, according to the preset appearance equipment description information, retrieves the appearance equipment description information of the target non-player character that matches the preset appearance equipment description information from the first character equipment library.
[0065] The first character equipment library stores appearance equipment description information and the corresponding relationship between the appearance equipment description information and multiple non-player characters.
[0066] According to the preset appearance equipment description information input by the user, the appearance equipment description information of the target non-player character that matches the preset appearance equipment description information can be retrieved from the first character equipment library. For example, the preset appearance equipment description information input by the user is "generate a non-player character wearing a red top", and the first character equipment library is searched for the target non-player character that matches "non-player character in a red top", and the appearance equipment description information of the non-player character is retrieved.
[0067] The step S103 of generating target equipment description information of a new non-player character according to preset equipment description information and equipment description information of the target non-player character comprises: S402 of generating target appearance equipment description information of a new non-player character according to preset appearance equipment description information and appearance equipment description information of the target non-player character.
[0068] The preset appearance equipment description information and the appearance equipment description information of the target non-player character are combined and input into the large language model to generate the target appearance equipment description information of the new non-player character.
[0069] The step S104 of retrieving target equipment resource data matching the target equipment description information from a preset game equipment resource library according to the target equipment description information includes: S403 of retrieving target appearance equipment resource data matching the target appearance equipment description information from a first game resource library according to the target appearance equipment description information.
[0070] The first game resource library pre-stores the correspondence between appearance equipment description information and appearance equipment resource data. The target appearance equipment resource data can be retrieved from the first game resource library according to the target appearance equipment description information. That is, the target equipment resource data includes the target appearance equipment resource data, and the target appearance equipment resource data is used to equip the appearance of new non-player characters.
[0071] In the above embodiment, the target appearance equipment resource data is retrieved through the first game resource library, thereby implementing the appearance equipment of the non-player character.
[0072] In one embodiment, since the non-player character has multiple parts, the corresponding appearance is also the appearance of multiple parts. Therefore, the appearance equipment description information of the target non-player character may include the appearance equipment description information of multiple parts, the target appearance equipment description information may include the appearance equipment description information of multiple parts, and the target appearance equipment resource data may include the appearance equipment resource data of multiple parts.
[0073] Appearance matching is performed for multiple parts respectively, and multiple parts correspond to a variety of different appearance matching resource data, and the multiple appearance matching resource data can be freely combined, which improves the flexibility of appearance matching for non-player characters.
[0074] In one embodiment, the preset equipment description information includes preset skill equipment description information, the preset game character equipment library includes a second character equipment library, and the preset game equipment resource library includes a second game resource library.
[0075] S102, according to the preset equipment description information, retrieves the equipment description information of the target non-player character that matches the preset equipment description information from the preset game character equipment library, including: S501, according to the preset skill equipment description information, retrieves the skill equipment description information of the target non-player character that matches the preset skill equipment description information from the second character equipment library.
[0076] The second character equipment library stores skill equipment description information and the corresponding relationship between the skill equipment description information and multiple non-player characters.
[0077] According to the preset skill equipment description information input by the user, the skill equipment description information of the target non-player character that matches the preset skill equipment description information can be retrieved from the second character equipment library. For example, the preset skill equipment description information input by the user is "generate a non-player character with attack skills", and the second character equipment library is searched for the target non-player character that matches "non-player character with attack skills", and the skill equipment description information of the non-player character is retrieved.
[0078] The step of generating target equipment description information of a new non-player character according to preset equipment description information and equipment description information of the target non-player character in step S103 includes: S502, generating target skill equipment description information of a new non-player character according to preset skill description information and skill equipment description information of the target non-player character.
[0079] The preset skill description information and the skill equipment description information of the target non-player character are combined and input into the large language model to generate the target skill equipment description information of the new non-player character.
[0080] The step S104 of retrieving target equipment resource data matching the target equipment description information from a preset game equipment resource library according to the target equipment description information includes: S503 of retrieving target skill equipment resource data matching the target skill equipment description information from a second game resource library according to the target skill equipment description information.
[0081] The second game resource library pre-stores the correspondence between skill equipment description information and skill equipment resource data. The target skill equipment resource data can be retrieved from the second game resource library according to the target skill equipment description information. That is, the target equipment resource data includes the target skill equipment resource data, and the target skill equipment resource data is used to perform skill equipment on new non-player characters.
[0082] In the above embodiment, the target skill equipment resource data is retrieved through the second game resource library, thereby realizing the skill equipment for the non-player character.
[0083] In one embodiment, the preset character description information may further include preset environment description information, which is used to describe the environment in which the non-player character is located in the game. According to the preset environment description information, the area deployment information of the new non-player character can be generated. Specifically, it includes:
[0084] S601: Generate a second prompt word according to preset environment description information.
[0085] For example, if the preset environment description information is "there are four non-player characters playing mahjong under the tree", the second prompt words are: playing mahjong, four non-player characters.
[0086] S602: Generate new regional deployment information of non-player characters based on the second prompt word using a preset large language model.
[0087] According to the second prompt word, the preset large language model can be used to generate new regional deployment information of non-player characters. The regional deployment information is used to indicate the relationship, position, action, etc. of the non-player characters.
[0088] In the above embodiments, generating actions and positions based on the environment description information can make the behavior of non-player characters more diverse and unpredictable, increasing the fun and challenge of the game. For example, in an adventure game, non-player characters may make different reaction actions according to the terrain and the degree of danger, bringing more variables to the player's exploration and decision-making.
[0089] In one embodiment, the preset character description information may further include preset character description information. According to the preset character description information, character data of a new non-player character may be generated, specifically including:
[0090] S701: Generate a third prompt word according to preset character description information.
[0091] For example, if the preset character description information is "generate a non-player character with a good personality", the third prompt word is good personality.
[0092] S702: Generate new personality data of the non-player character based on the third prompt word using a preset large language model.
[0093] According to the third prompt word, a preset large language model is used to generate new character data of the non-player character. The character data is used to indicate the character and character characteristics of the non-player character.
[0094] In this embodiment, the personality, behavior and language of the non-player characters are more consistent with their set backgrounds and identities, allowing players to have a greater sense of immersion when interacting with the non-player characters, and feel as if they are in a real world and interacting with real people.
[0095] In one embodiment, if Figure 8 As shown, the step S401 of retrieving the appearance equipment description information of the target non-player character that matches the preset appearance equipment description information from the first character equipment library according to the preset appearance equipment description information may include:
[0096] S801. According to preset appearance equipment description information, first appearance summary information matching the preset appearance equipment description information is retrieved from a first character equipment library.
[0097] The first character equipment library pre-stores appearance summary information that matches the appearance equipment description information. According to the preset appearance equipment description information, the first appearance summary information that matches the preset appearance equipment description information can be retrieved from the first character equipment library.
[0098] For example, a description of a certain appearance equipment stored in the first character equipment library is "The demon wizard, Li Yunxing, is responsible for welcoming newcomers, with a firm look and full of faith. He wears a red wizard robe with a flame pattern on his chest and a pair of blazing flaming wings spread out behind him. He wears a red headdress with a lifelike demon head surrounded by flames, symbolizing his identity as a demon wizard. His arms are decorated with red gorgeous arm guards with exquisite and gorgeous flame elements. He wears red and white trousers on his legs, and the dark patterns on the fabric and the white lightning patterns on both sides add a bit of mystery. He wears a pair of red combat boots with blue gems inlaid on the toes and heels. The flame decoration on the side of the shoes is majestic and extraordinary. The overall shape is both powerful and luxurious." The appearance summary information corresponding to the appearance equipment description information is "The demon wizard Li Yunxing wears a red robe surrounded by flames, a demon head headdress, blazing wings on his back, gorgeous arm guards on his arms, and gem combat boots on his feet. His whole body exudes a powerful and mysterious aura."
[0099] When the preset appearance equipment description information is "red robe, demon headdress", it can be successfully matched with the appearance summary information, and "The demon wizard Li Yunxing is wearing a red robe surrounded by flames, a demon headdress on his head, blazing wings on his back, gorgeous arm guards on his arms, and jeweled boots on his feet. His whole body exudes a powerful and mysterious aura" will be used as the first appearance summary information.
[0100] S802: Determine, based on the first appearance summary information, appearance equipment description information of a target non-player character corresponding to the first appearance summary information from a first character equipment library.
[0101] After the first appearance summary information is determined, the appearance equipment description information of the target non-player character corresponding to the first appearance summary information can be determined from the first character equipment library according to the first appearance summary information. For example, the appearance equipment description information of the target non-player character is determined as "the demon wizard, Li Yunxing, whose duty is to welcome newcomers, with a firm look and full of faith. He wears a red wizard robe with a flame pattern decorating his chest and a pair of blazing flaming wings spread out behind him. He wears a red headdress with a lifelike demon head surrounded by flames, symbolizing his identity as a demon wizard. His arms are decorated with red gorgeous arm guards with exquisite and gorgeous flame elements. He wears red and white trousers on his legs, and the dark patterns on the fabric and the white lightning patterns on both sides add a bit of mystery. He wears a pair of red combat boots on his feet, with blue gems inlaid on the toes and heels, and the flame decorations on the sides of the shoes are majestic. The overall shape is both powerful and luxurious."
[0102] The present application also provides a method for constructing a first character equipment library, such as Fig. 9 As shown, before executing step S801, the method of the present application further includes:
[0103] S901, annotating the appearance of multiple preset non-player characters' appearance equipment pictures to generate appearance equipment description information of multiple preset non-player characters.
[0104] When constructing the first character assembly library, it is first necessary to obtain appearance equipment drawings of multiple preset non-player characters, and then annotate the appearance equipment drawings to generate appearance equipment description information of multiple preset non-player characters.
[0105] S902: Generate appearance summary information of multiple preset non-player characters according to appearance equipment description information of multiple preset non-player characters.
[0106] Then, the appearance and equipment description information of multiple preset non-player characters is refined to generate appearance summary information of multiple preset non-player characters, one appearance summary information corresponds to one appearance and equipment description information, and the appearance summary information is used to retrieve the corresponding appearance and equipment description information in the first character equipment library.
[0107] S903: Construct a first character equipment library according to appearance equipment description information and appearance summary information of multiple preset non-player characters.
[0108] Finally, the appearance equipment description information and appearance summary information of multiple preset non-player characters are stored one by one in the first character equipment library, and the first character equipment library can be used in subsequent operations to retrieve the appearance equipment description information of multiple preset non-player characters.
[0109] Specifically, S901 may include: S1001, generating a fourth prompt word according to information of multiple dimensions.
[0110] The multiple dimensions may include, for example, multiple parts. According to the information of the multiple dimensions, a fourth prompt word is generated, for example, prompt words for legs and head are generated.
[0111] S1002: Based on the fourth prompt word, use the preset visual macro model to annotate the appearance of each preset non-player character, and generate appearance description information of each preset non-player character in multiple dimensions.
[0112] According to the fourth prompt word, the preset visual large model is used to perform appearance annotation on the appearance and equipment diagram of each preset non-player character, so that the appearance and equipment description information of each preset non-player character in multiple dimensions can be generated. That is, the fourth prompt word is input into the preset visual large model, and the preset visual large model can automatically perform appearance annotation on the appearance and equipment diagram of each preset non-player character, and generate the appearance and equipment description information of each preset non-player character in multiple dimensions. The preset visual large model can be, for example, a Visual Large Model, referred to as VLM.
[0113] Then S902 generates appearance summary information of multiple preset non-player characters according to the appearance equipment description information of multiple preset non-player characters, which may include: S1003, generating appearance summary information of each preset non-player character according to the appearance equipment description information of each preset non-player character in multiple dimensions.
[0114] In one embodiment, if Fig.11 As shown, S403 retrieves target appearance equipment resource data matching the target appearance equipment description information from the first game resource library according to the target appearance equipment description information, which may include:
[0115] S1101. According to target appearance equipment description information, second appearance summary information matching the target appearance equipment description information is retrieved from a first game resource library.
[0116] The first game resource library pre-stores appearance summary information that matches the appearance equipment description information. According to the target appearance equipment description information, second appearance summary information that matches the target appearance equipment description information can be retrieved from the first game resource library.
[0117] For example, the description information of a certain appearance equipment stored in the first game resource library is "color description: red, gold, white; style description: Chinese stand-up collar, long sleeves, embroidery, long skirt; shape description: the overall shape is the wedding dress of an ancient Chinese bride, the stand-up collar is embroidered with golden patterns and dragon and phoenix patterns, the cuffs are embroidered with red patterns, the hem is embroidered with phoenix and auspicious cloud patterns, and the hem is embroidered with golden edging. The overall style is solemn and gorgeous; pattern and embellishment description: the top is embroidered with golden dragons and phoenixes, as well as auspicious cloud patterns. These patterns are traditional Chinese auspicious patterns, representing auspiciousness and happiness. In addition, the edges of the clothes are embroidered with golden edging, which increases the gorgeousness of the overall shape." The appearance summary information corresponding to the appearance equipment description information is "This Chinese stand-up collar long-sleeved top is red as the main color, with golden and white embroidery, showing the solemnity and magnificence of an ancient Chinese bride's wedding dress. The dragon and phoenix, phoenix and auspicious cloud patterns symbolize auspiciousness and happiness, and the golden edging adds a luxurious atmosphere."
[0118] When the preset appearance description information is "Chinese stand-up collar, long sleeves, red", it can be successfully matched with the appearance summary information, and "This Chinese stand-up collar, long-sleeved top, with red as the main color, with gold and white embroidery, presents the solemnity and magnificence of ancient Chinese brides' wedding dresses. The dragon, phoenix and auspicious cloud patterns symbolize good luck and happiness, and the gold edging adds a luxurious atmosphere" will be used as the second appearance summary information.
[0119] S1102. According to the second appearance summary information, determine, from the first game resource library, preset appearance equipment resource data corresponding to the second appearance summary information as target appearance equipment resource data.
[0120] After the second appearance summary information is determined, the target appearance equipment resource data corresponding to the second appearance summary information can be determined from the first game resource library according to the second appearance summary information. For example, the target appearance equipment resource data is determined as "color description: red, gold, white; style description: Chinese stand-up collar, long sleeves, embroidery, long skirt; shape description: the overall shape is presented as the wedding dress of an ancient Chinese bride, the stand-up collar is embroidered with golden patterns and dragon and phoenix patterns, the cuffs are embroidered with red patterns, the hem is embroidered with phoenix and auspicious cloud patterns, the hem is embroidered with golden borders, and the overall style is solemn and gorgeous; pattern and embellishment description: the top is embroidered with golden dragons and phoenixes, as well as auspicious cloud patterns. These patterns are all traditional Chinese auspicious patterns, representing auspiciousness and happiness. In addition, the edges of the clothes are also embroidered with golden borders, which increases the gorgeousness of the overall shape."
[0121] The present application also provides a method for constructing a first game resource library, such as Fig.12 As shown, before executing step S1101, the method of the present application further includes:
[0122] S1201. Perform appearance annotation on resource graphs corresponding to a plurality of preset appearance equipment resource data to obtain appearance equipment description information corresponding to the plurality of preset appearance equipment resource data.
[0123] When constructing the first game resource library, it is first necessary to obtain a resource graph corresponding to multiple preset appearance equipment resource data, and then annotate the resource graph with appearance to obtain appearance equipment description information corresponding to multiple preset appearance equipment resource data.
[0124] S1202. Generate appearance summary information of a plurality of preset appearance matching resource data according to the appearance matching description information corresponding to the plurality of preset appearance matching resource data.
[0125] Then, the appearance equipment description information corresponding to the multiple preset appearance equipment resource data is refined to generate appearance summary information of the multiple preset appearance equipment resource data, one appearance summary information corresponds to one appearance equipment description information, and the appearance summary information is used to retrieve the corresponding appearance equipment description information in the first game resource library.
[0126] S1203: construct a first game resource library according to appearance equipment description information and appearance summary information corresponding to a plurality of preset appearance equipment resource data.
[0127] Finally, the appearance equipment description information and appearance summary information corresponding to multiple preset appearance equipment resource data are stored one by one in the first game resource library. The first game resource library can be used in subsequent operations to retrieve the appearance equipment description information corresponding to multiple preset appearance equipment resource data.
[0128] Specifically, S1201 may include: S1301, generating a fifth prompt word according to information of multiple dimensions.
[0129] The multiple dimensions may include, for example, the color, style, shape, pattern and other aspects of the appearance. According to the information of the multiple dimensions, the fifth prompt word is generated, for example, prompt words of color, style, shape and pattern are generated.
[0130] S1302. According to the fifth prompt word, a preset visual macro model is used to perform appearance annotation on a resource map corresponding to each preset appearance configuration resource data, and appearance configuration description information in multiple dimensions is generated for each preset appearance configuration resource data.
[0131] According to the fifth prompt word, the preset visual macromodel is used to perform appearance annotation on the resource graph corresponding to each preset appearance and equipment resource data, so as to generate appearance and equipment description information of each preset appearance and equipment resource data in multiple dimensions. That is, by inputting the fifth prompt word into the preset visual macromodel, the preset visual macromodel can automatically perform appearance annotation on the resource graph corresponding to each preset appearance and equipment resource data, and generate appearance and equipment description information of each preset appearance and equipment resource data in multiple dimensions.
[0132] Then, generating appearance summary information of multiple preset appearance matching resource data according to the appearance matching description information corresponding to the multiple preset appearance matching resource data according to S1202 may include: S1303, generating appearance summary information of multiple preset appearance matching resource data according to the appearance matching description information of each preset appearance matching resource data in multiple dimensions.
[0133] The following is a corresponding explanation of the device, equipment and storage medium for executing the method for generating information of non-player characters provided in any of the above embodiments of the present application. The specific implementation process and the technical effects produced are the same as those of the corresponding method embodiments mentioned above. For the sake of brief description, for the parts not mentioned in the following embodiments, reference can be made to the corresponding contents in the method embodiments.
[0134] like Fig.14 As shown, the present application provides a device for generating information of a non-player character, comprising:
[0135] The acquisition module 10 is used to acquire preset character description information of a new non-player character, wherein the preset character description information includes: preset equipment description information.
[0136] The first retrieval module 20 is used to retrieve the equipment description information of the target non-player character that matches the preset equipment description information from the preset game character equipment library according to the preset equipment description information.
[0137] The generating module 30 is used to generate target equipment description information of a new non-player character according to preset equipment description information and equipment description information of a target non-player character.
[0138] The second retrieval module 40 is used to retrieve target equipment resource data matching the target equipment description information from a preset game equipment resource library according to the target equipment description information, and the target equipment resource data is used to configure equipment for a new non-player character.
[0139] Optionally, the generation module 30 is further used to generate equipment sample description information of a new non-player character according to the equipment description information of the target non-player character; and to generate target equipment description information according to the equipment sample description information and preset equipment description information.
[0140] Optionally, the generation module 30 is further used to generate a first prompt word according to the assembly sample description information and the preset assembly description information; and generate target assembly description information according to the first prompt word using a preset large language model.
[0141] Optionally, the preset equipment description information includes: preset appearance equipment description information, the preset game character equipment library includes: a first character equipment library, and the preset game equipment resource library includes: a first game resource library.
[0142] The first retrieval module 20 is used to retrieve the appearance equipment description information of the target non-player character that matches the preset appearance equipment description information from the first character equipment library according to the preset appearance equipment description information.
[0143] The generating module 30 is used to generate target appearance and equipment description information of a new non-player character according to preset appearance and equipment description information and appearance and equipment description information of a target non-player character.
[0144] The second retrieval module 40 is used to retrieve target appearance equipment resource data matching the target appearance equipment description information from the first game resource library according to the target appearance equipment description information; wherein the target equipment resource data includes: target appearance equipment resource data, and the target appearance equipment resource data is used to assemble the appearance of a new non-player character.
[0145] Optionally, the preset equipment description information includes: preset skill equipment description information, the preset game character equipment library includes: a second character equipment library, and the preset game equipment resource library includes: a second game resource library.
[0146] The first retrieval module 20 is used to retrieve the skill equipment description information of the target non-player character that matches the preset skill equipment description information from the second character equipment library according to the preset skill equipment description information.
[0147] The generating module 30 is used to generate target skill equipment description information of a new non-player character according to preset skill description information and skill equipment description information of the target non-player character.
[0148] The second retrieval module 40 is used to retrieve target skill equipment resource data matching the target skill equipment description information from the second game resource library according to the target skill equipment description information; wherein the target equipment resource data includes: target skill equipment resource data, and the target skill equipment resource data is used to perform skill equipment on a new non-player character.
[0149] Optionally, the preset role description information further includes preset environment description information. The generation module 30 is further configured to generate area deployment information of a new non-player role according to the preset environment description information.
[0150] Optionally, the generating module 30 is further configured to generate a second prompt word according to preset environment description information; and generate new regional deployment information of non-player characters according to the second prompt word by using a preset large language model.
[0151] Optionally, the preset character description information also includes: preset character description information; the generation module 30 is further used to generate character data of a new non-player character according to the preset character description information.
[0152] Optionally, the generating module 30 is further configured to generate a third prompt word according to preset character description information; and generate new character profile data of the non-player character according to the third prompt word using a preset large language model.
[0153] Optionally, the first retrieval module 20 is also used to retrieve first appearance summary information matching the preset appearance equipment description information from the first character equipment library according to the preset appearance equipment description information; and determine, from the first character equipment library, the appearance equipment description information of the target non-player character corresponding to the first appearance summary information according to the first appearance summary information.
[0154] Optionally, the device of the present application also includes a labeling module, which is used to perform appearance labeling on the appearance equipment drawings of multiple preset non-player characters, and generate appearance equipment description information of multiple preset non-player characters; the first retrieval module 20 is also used to generate appearance summary information of multiple preset non-player characters based on the appearance equipment description information of multiple preset non-player characters; and construct a first character equipment library based on the appearance equipment description information and appearance summary information of multiple preset non-player characters.
[0155] Optionally, the labeling module is used to generate a fourth prompt word based on information from multiple dimensions; based on the fourth prompt word, a preset visual macro model is used to perform appearance labeling on the appearance and equipment diagram of each preset non-player character, and generate appearance and equipment description information of each preset non-player character in multiple dimensions; the first retrieval module 20 is also used to generate appearance summary information of each preset non-player character based on the appearance and equipment description information of each preset non-player character in multiple dimensions.
[0156] Optionally, the second retrieval module 40 is also used to retrieve second appearance summary information matching the target appearance equipment description information from the first game resource library according to the target appearance equipment description information; and determine, according to the second appearance summary information, preset appearance equipment resource data corresponding to the second appearance summary information from the first game resource library as the target appearance equipment resource data.
[0157] Optionally, the annotation module is also used to perform appearance annotation on resource maps corresponding to multiple preset appearance equipment resource data to obtain appearance equipment description information corresponding to multiple preset appearance equipment resource data; the second retrieval module 40 is also used to generate appearance summary information of multiple preset appearance equipment resource data based on the appearance equipment description information corresponding to multiple preset appearance equipment resource data; and construct a first game resource library based on the appearance equipment description information and appearance summary information corresponding to multiple preset appearance equipment resource data.
[0158] Optionally, the labeling module is also used to generate a fifth prompt word based on information from multiple dimensions; based on the fifth prompt word, a preset visual macro model is used to perform appearance labeling on the resource map corresponding to each preset appearance equipment resource data, and appearance equipment description information in multiple dimensions for each preset appearance equipment resource data is generated; the second retrieval module 40 is also used to generate appearance summary information of multiple preset appearance equipment resource data based on the appearance equipment description information in multiple dimensions for each preset appearance equipment resource data.
[0159] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0160] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0161] like Fig.15 As shown, the present application also provides an electronic device, including a processor 100, a storage medium 200 and a bus 300, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the program instructions, and the implementation method includes:
[0162] Obtaining preset character description information of a new non-player character, the preset character description information including: preset equipment description information;
[0163] According to the preset equipment description information, the equipment description information of the target non-player character matching the preset equipment description information is retrieved from the preset game character equipment library;
[0164] Generate target equipment description information of a new non-player character according to the preset equipment description information and the equipment description information of the target non-player character;
[0165] According to the target equipment description information, target equipment resource data matching the target equipment description information is retrieved from a preset game equipment resource library, and the target equipment resource data is used to configure equipment for the new non-player character.
[0166] Optionally, generating target equipment description information of a new non-player character according to preset equipment description information and equipment description information of a target non-player character includes:
[0167] Generate new equipment sample description information of the non-player character according to the equipment description information of the target non-player character;
[0168] Generate target assembly description information according to assembly sample description information and preset assembly description information.
[0169] Optionally, generating target assembly description information according to the assembly sample description information and the preset assembly description information includes:
[0170] Generate a first prompt word according to the configuration sample description information and the preset configuration description information;
[0171] According to the first prompt word, a preset large language model is used to generate target equipment description information.
[0172] Optionally, the preset equipment description information includes: preset appearance equipment description information, the preset game character equipment library includes: a first character equipment library, and the preset game equipment resource library includes: a first game resource library;
[0173] According to the preset equipment description information, equipment description information of a target non-player character matching the preset equipment description information is retrieved from a preset game character equipment library, including:
[0174] According to the preset appearance equipment description information, the appearance equipment description information of the target non-player character matching the preset appearance equipment description information is retrieved from the first character equipment library;
[0175] Generate target equipment description information of a new non-player character according to the preset equipment description information and the equipment description information of the target non-player character, including:
[0176] Generate target appearance equipment description information of a new non-player character according to the preset appearance equipment description information and the appearance equipment description information of the target non-player character;
[0177] According to the target equipment description information, target equipment resource data matching the target equipment description information is retrieved from the preset game equipment resource library, including:
[0178] According to the target appearance equipment description information, the target appearance equipment resource data matching the target appearance equipment description information is retrieved from the first game resource library;
[0179] The target equipment resource data includes target appearance equipment resource data, and the target appearance equipment resource data is used to equip the appearance of a new non-player character.
[0180] Optionally, the appearance and equipment description information of the target non-player character includes: appearance and equipment description information of multiple parts of the target non-player character;
[0181] The target appearance equipment description information includes: appearance equipment description information of multiple parts, and the target appearance equipment resource data includes: appearance equipment resource data of multiple parts.
[0182] Optionally, the preset equipment description information includes: preset skill equipment description information, the preset game character equipment library includes: a second character equipment library, and the preset game equipment resource library includes: a second game resource library;
[0183] According to the preset equipment description information, equipment description information of a target non-player character matching the preset equipment description information is retrieved from a preset game character equipment library, including:
[0184] According to the preset skill equipment description information, the skill equipment description information of the target non-player character matching the preset skill equipment description information is retrieved from the second character equipment library;
[0185] Generate target equipment description information of a new non-player character according to the preset equipment description information and the equipment description information of the target non-player character, including:
[0186] Generate target skill equipment description information of a new non-player character according to the preset skill description information and the skill equipment description information of the target non-player character;
[0187] According to the target equipment description information, target equipment resource data matching the target equipment description information is retrieved from the preset game equipment resource library, including:
[0188] According to the target skill equipment description information, the target skill equipment resource data matching the target skill equipment description information is retrieved from the second game resource library;
[0189] The target equipment resource data includes: target skill equipment resource data, and the target skill equipment resource data is used to perform skill equipment on a new non-player character.
[0190] Optionally, the preset role description information further includes: preset environment description information;
[0191] The method also includes:
[0192] Generate new regional deployment information of non-player characters based on preset environment description information.
[0193] Optionally, according to the preset environment description information, the new area deployment information of the non-player character is generated, including:
[0194] Generate a second prompt word according to the preset environment description information;
[0195] According to the second prompt word, a preset large language model is used to generate new regional deployment information of non-player characters.
[0196] Optionally, the preset role description information further includes: preset character description information;
[0197] The method also includes:
[0198] Generate new character data for non-player characters based on preset character description information.
[0199] Optionally, generating new character data of a non-player character according to preset character description information includes:
[0200] Generate a third prompt word according to the preset character description information;
[0201] According to the third prompt word, a preset large language model is used to generate new personality data of the non-player character.
[0202] Optionally, according to the preset appearance equipment description information, retrieving the appearance equipment description information of the target non-player character that matches the preset appearance equipment description information from the first character equipment library includes:
[0203] According to the preset appearance equipment description information, first appearance summary information matching the preset appearance equipment description information is retrieved from the first character equipment library;
[0204] According to the first appearance summary information, appearance equipment description information of a target non-player character corresponding to the first appearance summary information is determined from a first character equipment library.
[0205] Optionally, before retrieving first appearance summary information matching the preset appearance equipment description information from the first character equipment library according to the preset appearance equipment description information, the method further includes:
[0206] Perform appearance annotation on the appearance and equipment diagrams of multiple preset non-player characters to generate appearance and equipment description information of the multiple preset non-player characters;
[0207] Generating appearance summary information of multiple preset non-player characters according to the appearance equipment description information of multiple preset non-player characters;
[0208] A first character equipment library is constructed based on appearance equipment description information and appearance summary information of multiple preset non-player characters.
[0209] Optionally, appearance annotation is performed on the appearance equipment drawings of the plurality of preset non-player characters to generate appearance equipment description information of the plurality of preset non-player characters, including:
[0210] Generate a fourth prompt word according to the information of multiple dimensions;
[0211] According to the fourth prompt word, using the preset visual macro model, annotating the appearance of each preset non-player character, and generating description information of the appearance of each preset non-player character in multiple dimensions;
[0212] According to the appearance equipment description information of the plurality of preset non-player characters, appearance summary information of the plurality of preset non-player characters is generated, including:
[0213] According to the appearance equipment description information of each preset non-player character in multiple dimensions, the appearance summary information of each preset non-player character is generated.
[0214] Optionally, according to the target appearance equipment description information, retrieving target appearance equipment resource data matching the target appearance equipment description information from the first game resource library includes:
[0215] According to the target appearance equipment description information, second appearance summary information matching the target appearance equipment description information is retrieved from the first game resource library;
[0216] According to the second appearance summary information, preset appearance equipment resource data corresponding to the second appearance summary information is determined from the first game resource library as the target appearance equipment resource data.
[0217] Optionally, before retrieving second appearance summary information matching the target appearance equipment description information from the first game resource library according to the target appearance equipment description information, the method further includes:
[0218] Perform appearance annotation on resource graphs corresponding to a plurality of preset appearance equipment resource data to obtain appearance equipment description information corresponding to the plurality of preset appearance equipment resource data;
[0219] Generate appearance summary information of the plurality of preset appearance equipment resource data according to the appearance equipment description information corresponding to the plurality of preset appearance equipment resource data;
[0220] A first game resource library is constructed based on appearance equipment description information and appearance summary information corresponding to multiple preset appearance equipment resource data.
[0221] Optionally, the resource graphs corresponding to the plurality of preset appearance equipment resource data are annotated with appearance to obtain the appearance equipment description information corresponding to the plurality of preset appearance equipment resource data, including:
[0222] Generate a fifth prompt word according to the information of multiple dimensions;
[0223] According to the fifth prompt word, a preset visual macro model is used to perform appearance annotation on the resource graph corresponding to each preset appearance and equipment resource data, and appearance and equipment description information of each preset appearance and equipment resource data in multiple dimensions is generated;
[0224] According to the appearance equipment description information corresponding to the plurality of preset appearance equipment resource data, appearance summary information of the plurality of preset appearance equipment resource data is generated, including:
[0225] According to the appearance configuration description information of each preset appearance configuration resource data in multiple dimensions, appearance summary information of multiple preset appearance configuration resource data is generated.
[0226] The present application also provides a readable storage medium, on which program instructions are stored. When the program instructions are executed by a processor, the method implemented includes:
[0227] Obtaining preset character description information of a new non-player character, the preset character description information including: preset equipment description information;
[0228] According to the preset equipment description information, the equipment description information of the target non-player character matching the preset equipment description information is retrieved from the preset game character equipment library;
[0229] Generate target equipment description information of a new non-player character according to the preset equipment description information and the equipment description information of the target non-player character;
[0230] According to the target equipment description information, target equipment resource data matching the target equipment description information is retrieved from a preset game equipment resource library, and the target equipment resource data is used to configure equipment for the new non-player character.
[0231] Optionally, generating target equipment description information of a new non-player character according to preset equipment description information and equipment description information of a target non-player character includes:
[0232] Generate new equipment sample description information of the non-player character according to the equipment description information of the target non-player character;
[0233] Generate target assembly description information according to assembly sample description information and preset assembly description information.
[0234] Optionally, generating target assembly description information according to the assembly sample description information and the preset assembly description information includes:
[0235] Generate a first prompt word according to the configuration sample description information and the preset configuration description information;
[0236] According to the first prompt word, a preset large language model is used to generate target equipment description information.
[0237] Optionally, the preset equipment description information includes: preset appearance equipment description information, the preset game character equipment library includes: a first character equipment library, and the preset game equipment resource library includes: a first game resource library;
[0238] According to the preset equipment description information, equipment description information of a target non-player character matching the preset equipment description information is retrieved from a preset game character equipment library, including:
[0239] According to the preset appearance equipment description information, the appearance equipment description information of the target non-player character matching the preset appearance equipment description information is retrieved from the first character equipment library;
[0240] Generate target equipment description information of a new non-player character according to the preset equipment description information and the equipment description information of the target non-player character, including:
[0241] Generate target appearance equipment description information of a new non-player character according to the preset appearance equipment description information and the appearance equipment description information of the target non-player character;
[0242] According to the target equipment description information, target equipment resource data matching the target equipment description information is retrieved from the preset game equipment resource library, including:
[0243] According to the target appearance equipment description information, the target appearance equipment resource data matching the target appearance equipment description information is retrieved from the first game resource library;
[0244] The target equipment resource data includes target appearance equipment resource data, and the target appearance equipment resource data is used to equip the appearance of a new non-player character.
[0245] Optionally, the appearance and equipment description information of the target non-player character includes: appearance and equipment description information of multiple parts of the target non-player character;
[0246] The target appearance equipment description information includes: appearance equipment description information of multiple parts, and the target appearance equipment resource data includes: appearance equipment resource data of multiple parts.
[0247] Optionally, the preset equipment description information includes: preset skill equipment description information, the preset game character equipment library includes: a second character equipment library, and the preset game equipment resource library includes: a second game resource library;
[0248] According to the preset equipment description information, equipment description information of a target non-player character matching the preset equipment description information is retrieved from a preset game character equipment library, including:
[0249] According to the preset skill equipment description information, the skill equipment description information of the target non-player character matching the preset skill equipment description information is retrieved from the second character equipment library;
[0250] Generate target equipment description information of a new non-player character according to the preset equipment description information and the equipment description information of the target non-player character, including:
[0251] Generate target skill equipment description information of a new non-player character according to the preset skill description information and the skill equipment description information of the target non-player character;
[0252] According to the target equipment description information, target equipment resource data matching the target equipment description information is retrieved from the preset game equipment resource library, including:
[0253] According to the target skill equipment description information, the target skill equipment resource data matching the target skill equipment description information is retrieved from the second game resource library;
[0254] The target equipment resource data includes: target skill equipment resource data, and the target skill equipment resource data is used to perform skill equipment on a new non-player character.
[0255] Optionally, the preset role description information further includes: preset environment description information;
[0256] The method also includes:
[0257] Generate new regional deployment information of non-player characters based on preset environment description information.
[0258] Optionally, according to the preset environment description information, the new area deployment information of the non-player character is generated, including:
[0259] Generate a second prompt word according to the preset environment description information;
[0260] According to the second prompt word, a preset large language model is used to generate new regional deployment information of non-player characters.
[0261] Optionally, the preset role description information further includes: preset character description information;
[0262] The method also includes:
[0263] Generate new character data for non-player characters based on preset character description information.
[0264] Optionally, generating new character data of a non-player character according to preset character description information includes:
[0265] Generate a third prompt word according to the preset character description information;
[0266] According to the third prompt word, a preset large language model is used to generate new personality data of the non-player character.
[0267] Optionally, according to the preset appearance equipment description information, retrieving the appearance equipment description information of the target non-player character that matches the preset appearance equipment description information from the first character equipment library includes:
[0268] According to the preset appearance equipment description information, first appearance summary information matching the preset appearance equipment description information is retrieved from the first character equipment library;
[0269] According to the first appearance summary information, appearance equipment description information of a target non-player character corresponding to the first appearance summary information is determined from a first character equipment library.
[0270] Optionally, before retrieving first appearance summary information matching the preset appearance equipment description information from the first character equipment library according to the preset appearance equipment description information, the method further includes:
[0271] Perform appearance annotation on the appearance and equipment diagrams of multiple preset non-player characters to generate appearance and equipment description information of the multiple preset non-player characters;
[0272] Generating appearance summary information of multiple preset non-player characters according to the appearance equipment description information of multiple preset non-player characters;
[0273] A first character equipment library is constructed based on appearance equipment description information and appearance summary information of multiple preset non-player characters.
[0274] Optionally, appearance annotation is performed on the appearance equipment drawings of the plurality of preset non-player characters to generate appearance equipment description information of the plurality of preset non-player characters, including:
[0275] Generate a fourth prompt word according to the information of multiple dimensions;
[0276] According to the fourth prompt word, using the preset visual macro model, annotating the appearance of each preset non-player character, and generating description information of the appearance of each preset non-player character in multiple dimensions;
[0277] According to the appearance equipment description information of the plurality of preset non-player characters, appearance summary information of the plurality of preset non-player characters is generated, including:
[0278] According to the appearance equipment description information of each preset non-player character in multiple dimensions, the appearance summary information of each preset non-player character is generated.
[0279] Optionally, according to the target appearance equipment description information, retrieving target appearance equipment resource data matching the target appearance equipment description information from the first game resource library includes:
[0280] According to the target appearance equipment description information, second appearance summary information matching the target appearance equipment description information is retrieved from the first game resource library;
[0281] According to the second appearance summary information, preset appearance equipment resource data corresponding to the second appearance summary information is determined from the first game resource library as the target appearance equipment resource data.
[0282] Optionally, before retrieving second appearance summary information matching the target appearance equipment description information from the first game resource library according to the target appearance equipment description information, the method further includes:
[0283] Perform appearance annotation on resource graphs corresponding to a plurality of preset appearance equipment resource data to obtain appearance equipment description information corresponding to the plurality of preset appearance equipment resource data;
[0284] Generate appearance summary information of the plurality of preset appearance equipment resource data according to the appearance equipment description information corresponding to the plurality of preset appearance equipment resource data;
[0285] A first game resource library is constructed based on appearance equipment description information and appearance summary information corresponding to multiple preset appearance equipment resource data.
[0286] Optionally, the resource graphs corresponding to the plurality of preset appearance equipment resource data are annotated with appearance to obtain the appearance equipment description information corresponding to the plurality of preset appearance equipment resource data, including:
[0287] Generate a fifth prompt word according to the information of multiple dimensions;
[0288] According to the fifth prompt word, a preset visual macro model is used to perform appearance annotation on the resource graph corresponding to each preset appearance and equipment resource data, and appearance and equipment description information of each preset appearance and equipment resource data in multiple dimensions is generated;
[0289] According to the appearance equipment description information corresponding to the plurality of preset appearance equipment resource data, appearance summary information of the plurality of preset appearance equipment resource data is generated, including:
[0290] According to the appearance configuration description information of each preset appearance configuration resource data in multiple dimensions, appearance summary information of multiple preset appearance configuration resource data is generated.
[0291] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0292] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0293] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0294] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0295] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for generating information of a non-player character, characterized in that: include: Obtaining preset character description information of a new non-player character, wherein the preset character description information includes: preset equipment description information; According to the preset equipment description information, retrieving equipment description information of a target non-player character that matches the preset equipment description information from a preset game character equipment library; Generate target equipment description information of the new non-player character according to the preset equipment description information and the equipment description information of the target non-player character; According to the target equipment description information, target equipment resource data matching the target equipment description information is retrieved from a preset game equipment resource library, and the target equipment resource data is used to configure equipment for the new non-player character.
2. The method according to claim 1, characterized in that The step of generating target equipment description information of the new non-player character according to the preset equipment description information and the equipment description information of the target non-player character comprises: Generating sample description information of equipment for the new non-player character according to the equipment description information of the target non-player character; The target assembly description information is generated according to the assembly sample description information and the preset assembly description information.
3. The method according to claim 2, characterized in that The step of generating the target assembly description information according to the assembly sample description information and the preset assembly description information includes: Generate a first prompt word according to the configuration sample description information and the preset configuration description information; According to the first prompt word, a preset large language model is used to generate the target equipment description information.
4. The method according to claim 1, characterized in that The preset equipment description information includes: preset appearance equipment description information, the preset game character equipment library includes: a first character equipment library, and the preset game equipment resource library includes: a first game resource library; The step of retrieving equipment description information of a target non-player character that matches the preset equipment description information from a preset game character equipment library according to the preset equipment description information comprises: According to the preset appearance equipment description information, the appearance equipment description information of the target non-player character matching the preset appearance equipment description information is retrieved from the first character equipment library; The step of generating target equipment description information of the new non-player character according to the preset equipment description information and the equipment description information of the target non-player character comprises: Generate target appearance equipment description information of the new non-player character according to the preset appearance equipment description information and the appearance equipment description information of the target non-player character; The step of retrieving target equipment resource data matching the target equipment description information from a preset game equipment resource library according to the target equipment description information includes: According to the target appearance equipment description information, target appearance equipment resource data matching the target appearance equipment description information is retrieved from the first game resource library; The target equipment resource data includes: the target appearance equipment resource data, and the target appearance equipment resource data is used to assemble the appearance of the new non-player character.
5. The method according to claim 4, characterized in that The appearance and equipment description information of the target non-player character includes: appearance and equipment description information of multiple parts of the target non-player character; The target appearance fitting description information includes: appearance fitting description information of the multiple parts, and the target appearance fitting resource data includes: appearance fitting resource data of the multiple parts.
6. The method according to claim 1, characterized in that The preset equipment description information includes: preset skill equipment description information, the preset game character equipment library includes: a second character equipment library, and the preset game equipment resource library includes: a second game resource library; The step of retrieving equipment description information of a target non-player character that matches the preset equipment description information from a preset game character equipment library according to the preset equipment description information comprises: According to the preset skill equipment description information, retrieving the skill equipment description information of the target non-player character that matches the preset skill equipment description information from the second character equipment library; The step of generating target equipment description information of the new non-player character according to the preset equipment description information and the equipment description information of the target non-player character comprises: Generate target skill equipment description information of the new non-player character according to the preset skill equipment description information and the skill equipment description information of the target non-player character; The step of retrieving target equipment resource data matching the target equipment description information from a preset game equipment resource library according to the target equipment description information includes: According to the target skill equipment description information, retrieving target skill equipment resource data matching the target skill equipment description information from the second game resource library; The target equipment resource data includes: the target skill equipment resource data, and the target skill equipment resource data is used to perform skill equipment on the new non-player character.
7. The method according to claim 1, characterized in that The preset role description information also includes: preset environment description information; The method further comprises: The area deployment information of the new non-player character is generated according to the preset environment description information.
8. The method according to claim 7, characterized in that The step of generating the area deployment information of the new non-player character according to the preset environment description information includes: Generate a second prompt word according to the preset environment description information; According to the second prompt word, a preset large language model is used to generate the area deployment information of the new non-player character.
9. The method according to claim 1, characterized in that: The preset role description information also includes: preset character description information; The method further comprises: According to the preset character description information, character profile data of the new non-player character is generated.
10. The method according to claim 9, characterized in that Generating the character data of the new non-player character according to the preset character description information includes: Generate a third prompt word according to the preset character description information; According to the third prompt word, a preset large language model is used to generate the personality data of the new non-player character.
11. The method according to claim 4, characterized in that The step of retrieving, from the first character equipment library, the appearance equipment description information of the target non-player character that matches the preset appearance equipment description information according to the preset appearance equipment description information comprises: According to the preset appearance equipment description information, first appearance summary information matching the preset appearance equipment description information is retrieved from the first character equipment library; According to the first appearance summary information, the appearance equipment description information of the target non-player character corresponding to the first appearance summary information is determined from the first character equipment library.
12. The method according to claim 11, characterized in that Before retrieving first appearance summary information matching the preset appearance equipment description information from the first character equipment library according to the preset appearance equipment description information, the method further includes: Performing appearance annotation on the appearance and equipment diagrams of a plurality of preset non-player characters to generate appearance and equipment description information of the plurality of preset non-player characters; Generating appearance summary information of the plurality of preset non-player characters according to the appearance equipment description information of the plurality of preset non-player characters; The first character equipment library is constructed according to the appearance equipment description information and appearance summary information of the plurality of preset non-player characters.
13. The method according to claim 12, characterized in that The step of labeling the appearance of the plurality of preset non-player characters and generating the appearance description information of the plurality of preset non-player characters includes: Generate a fourth prompt word according to the information of multiple dimensions; According to the fourth prompt word, using a preset visual macro model, annotating the appearance of each preset non-player character, and generating description information of the appearance of each preset non-player character in the multiple dimensions; Generating appearance summary information of the plurality of preset non-player characters according to the appearance equipment description information of the plurality of preset non-player characters includes: The appearance summary information of each preset non-player character is generated according to the appearance equipment description information of each preset non-player character in the multiple dimensions.
14. The method according to claim 4, characterized in that The step of retrieving target appearance equipment resource data matching the target appearance equipment description information from the first game resource library according to the target appearance equipment description information includes: According to the target appearance equipment description information, retrieving second appearance summary information matching the target appearance equipment description information from the first game resource library; According to the second appearance summary information, preset appearance equipment resource data corresponding to the second appearance summary information is determined from the first game resource library as the target appearance equipment resource data.
15. The method according to claim 14, characterized in that Before retrieving second appearance summary information matching the target appearance equipment description information from the first game resource library according to the target appearance equipment description information, the method further includes: Perform appearance annotation on resource graphs corresponding to a plurality of preset appearance equipment resource data to obtain appearance equipment description information corresponding to the plurality of preset appearance equipment resource data; Generate appearance summary information of the plurality of preset appearance equipment resource data according to the appearance equipment description information corresponding to the plurality of preset appearance equipment resource data; The first game resource library is constructed according to the appearance equipment description information and the appearance summary information corresponding to the plurality of preset appearance equipment resource data.
16. The method according to claim 15, characterized in that The step of performing appearance annotation on resource graphs corresponding to a plurality of preset appearance equipment resource data to obtain appearance equipment description information corresponding to the plurality of preset appearance equipment resource data includes: Generate a fifth prompt word according to the information of multiple dimensions; According to the fifth prompt word, a preset visual macro model is used to perform appearance annotation on the resource graph corresponding to each preset appearance equipment resource data, and appearance equipment description information in multiple dimensions of each preset appearance equipment resource data is generated; The step of generating appearance summary information of the plurality of preset appearance matching resource data according to the appearance matching description information corresponding to the plurality of preset appearance matching resource data comprises: According to the appearance matching description information of each preset appearance matching resource data in multiple dimensions, appearance summary information of the multiple preset appearance matching resource data is generated.
17. A device for generating information of a non-player character, characterized in that: include: An acquisition module is used to acquire preset character description information of a new non-player character, wherein the preset character description information includes: preset equipment description information; A first retrieval module is used to retrieve equipment description information of a target non-player character that matches the preset equipment description information from a preset game character equipment library according to the preset equipment description information; A generating module, configured to generate target equipment description information of the new non-player character according to the preset equipment description information and the equipment description information of the target non-player character; The second retrieval module is used to retrieve target equipment resource data matching the target equipment description information from a preset game equipment resource library according to the target equipment description information, and the target equipment resource data is used to equip the new non-player character.
18. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the program instructions to implement the non-player character information generation method described in any one of claims 1 to 16.
19. A readable storage medium, characterized in that: The readable storage medium stores program instructions, and when the program instructions are executed by a processor, the method for generating information of a non-player character according to any one of claims 1 to 16 is implemented.