I've been playing around with this all day.
Shouldn't it be possible to create an event/decision to replace a province's trade_goods with an custom trade good that has the same name in the localisations file, but allows a different unit type. For example:
I've tested changing trade_goods and discovered that it does not interrupt the trade route, so from a player POV it would be seamless. One obvious problem is that a recipient of a trade good would be able to create the same units, regardless of their technology or culture (or whatever you base the unit changes on). But maybe that'd be a good reason for trade protectionism.
Is it possible to create new unit types (e.g. light_infantry, medium_infantry, etc.)? How do you define their cost, speed and time, all of which are found in the defines.txt file for the vanilla units?
Shouldn't it be possible to create an event/decision to replace a province's trade_goods with an custom trade good that has the same name in the localisations file, but allows a different unit type. For example:
Code:
[...\common\tradegoods.txt]
iron_roman_1 = {
color = { 1.0 0.0 0.0 }
allow_unit_type = light_infantry #hastati
allow_unit_type = medium_infantry #principes
allow_unit_type = heavy_infantry #triarii
}
iron_roman_2 = {
color = { 1.0 0.0 0.0 }
allow_unit_type = medium_infantry #miles
}
[...\localisation\txt.csv]
iron_roman1;Iron;Fer;Eisen;;Hierro;Ferro;;;;;;x
iron_roman2;Iron;Fer;Eisen;;Hierro;Ferro;;;;;;x
I've tested changing trade_goods and discovered that it does not interrupt the trade route, so from a player POV it would be seamless. One obvious problem is that a recipient of a trade good would be able to create the same units, regardless of their technology or culture (or whatever you base the unit changes on). But maybe that'd be a good reason for trade protectionism.
Is it possible to create new unit types (e.g. light_infantry, medium_infantry, etc.)? How do you define their cost, speed and time, all of which are found in the defines.txt file for the vanilla units?