Introduction to how to add building attributes
First, I will teach you how to modify special buildings. First download notepnd and use this to edit the text. Then find the 00_special_buildings file from the game directory and open it. Here are all special buildings. Take the Tower of London in England as an example to find the data and modify it.
##########
# The Tower of London
##########
the_tower_of_london_01 = {
asset = {
type=pdxmesh
name = "building_special_tower_of_london_mesh"
}
construction_time = very_slow_construction_time
type_icon = "icon_structure_tower_of_london.dds"
can_construct_potential = {
building_requirement_tribal = no
}
can_construct = {
scope:holder.culture = {
has_innovation = innovation_battlements
}
}
cost_gold = 1000
character_modifier = {
men_at_arms_cap = 12 #The number of legions, this is the key point
men_at_arms_limit = 22 #Legion size, this is the key point
monthly_county_control_change_factor = 0.5 # Control growth percentage
dread_gain_mult = 0.5 #Monarch terror value
powerful_vassal_opinion = 50 #Powerful princes have a favorable impression of the monarch
clergy_opinion = 50 #The clergy has a favorable impression of the monarch
same_faith_opinion = 20 #Same faith favors the monarch
monthly_piety = 5 #Monthly piety points
monthly_prestige = 5 #Add prestige points every month
monthly_dynasty_prestige = 5 #Add clan prestige every month
stewardship = 20 # monarchmanagement
martial = 20 #君military
learning = 20 #君learning
knight_limit = 10 #Number of knights
knight_effectiveness_mult = 0.5 #Knight combat effectiveness percentage
archers_damage_add = 20 #Archer attack power
archers_toughness_add = 20 #Archer defense
skirmishers_damage_add = 20 #skirmishers
skirmishers_pursuit_add = 20
skirmishers_toughness_add = 20
pikemen_toughness_add = 30 #guard
pikemen_damage_add = 30
heavy_infantry_toughness_add = 20 #Heavy infantry
heavy_infantry_damage_add = 20
light_cavalry_damage_add = 20 #Light cavalry attack
light_cavalry_toughness_add = 20 #Light cavalry defense
light_cavalry_pursuit_add = 20 #Light cavalry pursuit
heavy_cavalry_toughness_add = 50 #Heavy Cavalry
heavy_cavalry_damage_add = 50
army_maintenance_mult = -0.5 #Army maintenance fee
}
garrison = 20000 #Number of guard troops
levy = 20000 #The number of conscripts, this is the key point
province_modifier = {#The bonus of the barony where {# is located
monthly_income = 100 #Add money, this is the key point
levy_size = 0.5 #Conscription increase percentage
levy_reinforcement_rate = 0.5 #Conscription reinforcement speed
defender_advantage = 20 #Defense advantage
fort_level = 20 #Fortress level
}
county_modifier = {#The bonus of the county where it is located
supply_limit = 20000 #supply number of people
development_growth = 0.5 #Development growth points
development_growth_factor = 0.5 ## Development growth percentage
tax_mult = 0.5 #Tax increase percentage
build_speed = -5 #Building time
}
ai_value = {
base=100
}
type = special
}
Okay, now that you have seen that everyone should be able to change the special building bonus, but not everyone can have this special building, so I will teach you how to add a building, just add this to this file.
##########
# Walls # You can name it as you like. I used the city walls of Rome as a template, which is Aurelian Walls.
##########
walls = {#Name whatever you want
construction_time = very_slow_construction_time
type_icon = "icon_structure_aurelian_walls.dds"
can_construct_potential = {
barony = title:b_london #This is where this building can be built. I changed it to build it in Barony London. As long as the title is correct, you can build it wherever you want.
building_requirement_tribal = no
}
cost_gold = 3000
garrison = 2000 #Number of guard troops
duchy_capital_county_modifier = {
levy_size = 0.5 #Conscription increase percentage
tax_mult = 0.15 #Tax
}
county_modifier = {
development_growth = 0.2
development_growth_factor = 0.1
hostile_raid_time = 0.5
}
province_modifier = {
fort_level = 10
garrison_size = 0.5 #Garrison troop increase percentage
}
ai_value = {
base=0
}
type = duchy_capital #Barony of the capital of the duchy
}
Because the Tower of London was changed above, I didn’t add many self-created buildings. If you want to add more, just copy the above three items. There is no Chinese translation for this new building. You can add a Chinese translation in the buildings_l_simp_chinese file. After the changes, you will have money and soldiers. There is no need to worry, you can just keep your own capital and give out all the other lands, because the military money is added to the barony where the special building is located.