I've never liked how resource production in a province wasn't tied to Infrastructure, IC, or economic need (ex. many countries waste resource production currently due to the stockpile). After all, if market demand for a resource is sufficiently low, or production is way too high, price would go down and firms would exit the industry. There would be a cap on resource expansion/shrinking in each province, of course, to create a range of possible production that is reflected by actual resource deposits in a region. Ideally, such a mod would need additional (currently not existing) triggers such as infrastructure or IC in a province.
I don't have the time to personally work on such a mod, but is anyone interested in it?
Below is an incomplete template I thought of for my CG mod.
I don't have the time to personally work on such a mod, but is anyone interested in it?
Below is an incomplete template I thought of for my CG mod.
Code:
# Dynamic Resource Allocation Script by Limith
# For Code Geass DH Total Conversion
# Resource Expansion
event = {
id = 2000
random = no
persistent = yes
one_action = yes
trigger = {
random = 25
or = {
and = {
resource_shortage = oil
}
and = {
resource_shortage = energy
}
and = {
resource_shortage = metal
}
and = {
resource_shortage = rare_materials
not = {
or = {
and = {
rare_materials = 50
ic = 5
}
and = {
rare_materials = 400
ic = 25
}
and = {
rare_materials = 650
ic = 45
}
and = {
rare_materials = 800
ic = 60
}
and = {
rare_materials = 1000
ic = 80
}
and = {
rare_materials = 1500
ic = 100
}
}
}
or = {
and = {
control = { province = 1086 }
not = { flag = 1086_RE } #Esfahan
}
}
# Add other provinces that produce rares here.
}
}
}
date = { day = 0 month = 0 year = 1930 }
offset = 2
deathdate = { day = 0 month = 0 year = 1970 }
name = "Resource Expansion"
desc = "The current lack of strategic resources had resulted in a large price jump in the private market, with wealthy investors stepping in to increase our national production."
picture = "resources"
style = 2
action = {
trigger = {
resource_shortage = oil
or = {
}
}
}
action = {
trigger = {
resource_shortage = energy
or = {
}
}
}
action = {
trigger = {
resource_shortage = metal
or = {
}
}
}
#Esfahan
action = {
trigger = {
resource_shortage = rare_materials
not = {
or = {
and = {
rare_materials = 50
ic = 5
}
and = {
rare_materials = 400
ic = 25
}
and = {
rare_materials = 650
ic = 45
}
and = {
rare_materials = 800
ic = 60
}
and = {
rare_materials = 1000
ic = 80
}
and = {
rare_materials = 1500
ic = 100
}
}
}
and = {
control = { province = 1086 }
not = { flag = 1086_RE} #Esfahan
}
}
name = "Our Rare Metal Industry has expanded"
command = { trigger = { and = { control = { province = 1086 } not = { flag = 1086_RE} } } type = add_prov_resource which = 1086 value = 2 where = rare_materials } #Esfahan
command = { trigger = { and = { control = { province = 1086 } not = { flag = 1086_RE} } } type = setflag which = 1086_RE } #Esfahan
}
}