Hairstyles and beards for scripted characters See the following example from the game files, used to add a character flag and set character sexuality randomly: Īdd_character_flag = has_scripted_appearance Various other effects can be used that have a character scope, either directly in the date block or in an effect sub-block.Assignments defined in the previous section, like trait = TRAIT_ID, may also be used in date blocks.give_council_position = COUNCILLOR_ID to make the character a councillor.employer = CHARACTER_ID, similar to set_employer = CHARACTER_ID effect, moves the scoped character to the specified character's court.Later uses of give_nickname replace old nicknames. give_nickname = NICKNAME_ID to add nicknames.add_spouse = CHARACTER_ID, remove_spouse = CHARACTER_ID to add/remove spouses. ![]() Sometimes, like for Charlemagne, there are already most of the possible lines.Īdvanced use of date blocks The same steps work for changing existing characters. Alternatively, replace yes with the date surrounded by speech marks ( "). The clothing templates will look more or less like this:ĭeal_with_it_sunglasses =, replacing. The next step is to find or create our subgroup's outfit tag.Īll clothing (actually genes, which includes hair) that can be worn by characters is stored inside files located at. ![]() Be sure to keep an eye on the subgroup names and write down the ones you want to use. Once selected, click on the button right under "subgroup" and do the same to select a specific article of clothing (gene).Ĭongratulations! You are now able to preview genes in the portrait editor. Afterwards, click on the field right under "gene" to display a dropdown menu, select (or type in) the category you desire to preview. Optionally, you can click "randomize DNA" to get a character that looks more human. Image showcasing how to open and use the portrait editor.īefore we get to scripting anything, we're going to want to preview the clothes in the portrait editor so we can get an idea of what it is that we want to add an outfit tag to.įirst, open the portrait editor (small right-hand green button in the console menu). Once you have found an outfit tag you wish to use, you can either add it directly to the portrait. game\gfx\portraits\portrait_modifiers folders for the keyword outfit_tags. There are currently no compiled lists of valid outfit tags, therefore, the standard method of locating outfit tags is to search the. Instead you should set the single_combat_duel_armor character flag in immediate and then remove it in the after block of your event. Outfit tags help us sell that fantasy by letting us force specific clothing or clothing groups on characters during an event.īe warned that you should not apply armor to characters thorugh outfit tags. Playing dress-up with characters is a very important part of selling the medieval fantasy presented by Crusader Kings 3. ![]() If you encounter any issues, check the error.log of the game for any specific error messages and correct your script accordingly. You can add a flag to a character with the add_character_flag command, like this: ![]() This will add the western_imperial headgear and change the hair color of any character with the "dna_change_example_modifier" flag. Has_character_flag = dna_change_example_modifier Create a file in gfx/portraits/portrait_modifiers with any filename and add this: You can change a character's DNA through dna_modifiers. These changes allow for more specific and realistic appearances.
0 Comments
Leave a Reply. |