• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

jbizon1998

Sergeant
Jul 7, 2025
51
77
Can someone tell me how to actually add new modifiers?

So I want to add a modifier that makes it easier to make certain buildings, so like bg_heavy_industry or bg_mining gets a construction speed bonus, something like companies modifier.

There's this in 00_modifier_types (same with construction_efficiency_bonus for companies)

country_company_throughput_bonus_add={
decimals=0
color=good
percent=yes
game_data={
ai_value=0
}


Company construction efficiency is located in: 00_code_static_modifiers, so this is base bonuses that companies get, okay. There's also one's from principle group, so I know that I can add this modifier freely, as it is in "00_modifier_types".

1st question - is there a dictionary that explains what certain modifiers do? A database?


So if I add "country_company_throughput_bonus_add = X" as a modifier to tech, it's easy to add a bonus to a company via tech aswell, same with "country_company_construction_efficiency_bonus_add" "state_construction_mult = x" no problem, there.

Ex see below, I add this as a modifier to ex. steelworking and it works, no problem.

country_company_throughput_bonus_add = 0.2
country_company_construction_efficiency_bonus_add = 0.5
And my company buildings have bonus throughput and are made for less construction.

However, how do I add construction_efficiency to certain buildings WITHOUT companies while researching tech:

So from "modifier_types_md" I get this:

# while a modifier definition key that starts with `state_` with an entry in the same static modifier will flow through countries to all states in that country

I tried adding this to 00_modifier_types:

country_building_group_bg_heavy_industry_construction_bonus_add = {
decimals = 0
color = good
percent = yes
game_data = {
ai_value = 0
}

I based this on:
"Building_group_bg_heavy_industry_laborers_mortality_mult = 0.1" from static_modifiers while also adding "state" so it applies to a country.

Is the modifier ready to be used right now? Can I add this modifier to tech?

Ex. edit technology, add modifier: "country_building_group_bg_heavy_industry_construction_bonus_add = 0.1" to tech modifiers?

Or do i need to add something to "00_code_static_modifiers", like
industrial_boost = {
country_building_group_bg_heavy_industry_construction_bonus_add = 0.1
}
And then add modifier named "industrial_boost to tech?

Whatever I do I cannot do this right.


Am I doing something wrong? How to really make modifiers? Wiki says they are easily moddable, see, but I really

A modifier is essentially a variable used in internal calculations. However, unlike defines, modifiers are dynamically changeable within any modifier block. In general, modifiers are typically used to create a consistent and long-lasting effect that can be easily reversed.

And then this states this is outdated. So it's really really frustrating...https://vic3.paradoxwikis.com/Modifier_types

This states this is outdated. So it's really really frustrating...

Please help!!
 
It is not possible to create modifiers in this manner, unfortunately. It is hard coded which modifiers can be added in the modifier definitions. As far as I know, there are no other types of modifiers that can be added except ones following the same format as the ones used in base game, such as goods_output_<goods name>_mult or as you mentioned, building_group_<building group name>_laborers_mortality_mult