宗族模组制作

本页面讲述的内容长期有效
咯咯炀讨论 | 贡献2020年9月28日 (一) 10:34的版本 (同步到官方wiki 09:18, 24 September 2020‎ 155.69.181.18)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

A new feature of Crusader Kings 3 are the improved dynasties, which can be composed by a limitless number of houses. Dynasty modding gives the opportunity to create new dynasties. It's also possible to change name, coat of arms and houses of any existing dynasty.

Creating a new dynasty

A new dynasty is created by adding files to four folders.

The first change is applied by adding a new file example-dynasty.txt to the folder common/dynasties of the mod folder. In the file an id is assigned to the new dynasty, for example 2100001. Then lines are added for culture and name. The nsme line doesn't contain the name, but instead the path in the localisation file. It should look like this when finished:

2100001 = {
	prefix = "dynnp_de"
	name = "dynn_Lyon"
	culture = "french"
}

The prefix only adds the "de" before the name and is already included in the original localisation files. There are several prefixes for different cultures.

The second change is made in the folder common/localization/german/dynasties either to a copy of the original dynasty_names_I_german.yml or an empty example_dynasty_names_german.yml. The same path applies for other languages, only the name of the file changes as well as the folder following common/localization. In this file, the real name of the dynasty is added.

dynn_Lyon:0 "Lyon"

The next change is made in common/coat_of_arms/coat_of_arms to the 90_dynasties.txt or the empty new file. Here is added the description of the coat of arms. Here any existing or new one can be pasted. The example uses the coat of arms of the county of Saarbrücken in Lotharingia.

2100001 = { # Lyon
	pattern = "pattern_solid.dds"	
	color1 = "blue"
	color2 = "white"				
	colored_emblem = {
		texture = "ce_lion_rampant_crown.dds"
		color1 = "white"
		color2 = "yellow"
		instance = { position = { 0.5 0.5 } scale = { 1.0 1.0 }  }			
	}		
}

Finally, the founding house needs to be assigned in a text file in common/dynasty_houses.

house_lyon = {
	prefix = "dynnp_de"
	name = "dynn_Lyon"
	dynasty = 2100001 #Lyon
}

When every step is done, the final result ingame should look like this:

Modded Lyon-Dynasty.jpg