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)
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.
However, how do I add construction_efficiency to certain buildings WITHOUT companies while researching tech:
So from "modifier_types_md" I get this:
I tried adding this to 00_modifier_types:
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
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
vic3.paradoxwikis.com
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!!
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.
And my company buildings have bonus throughput and are made for less construction.country_company_throughput_bonus_add = 0.2
country_company_construction_efficiency_bonus_add = 0.5
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
And then add modifier named "industrial_boost to tech?industrial_boost = {
country_building_group_bg_heavy_industry_construction_bonus_add = 0.1
}
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
Modifier modding - Victoria 3 Wiki
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!!