So can anyone with more mod experience than me help. I do not get how things like on_actions and events work in this game and I'm stuck.
So with the scottish pompeii event I'm trying to make it so that in the year 1000 (a thing in my mod) the island of orkney has a high chance to become uncolonized and a low chance to damage the economy of the country.
And with the farm the lands event I am trying to make it so when you own a province it will change the trade good to livestock if you have the pastoral community government form (another thing in the mod).
I managed to get the scottish pompeii event to kind of work, but then I tweaked something to try and get it to what I wanted but then the game just started crashing constantly.
Any help would be much appreciated.
Thanks.
on_bi_yearly_pulse = {
if = {
limit = {
is_year = 1000
}
events = scottish_pompeii.1
}
}
on_bi_yearly_pulse = {
if = {
any_owned_province = {
OR = {
trade_goods = fur
trade_goods = grain
trade_goods = wine
trade_goods = wool
trade_goods = cloth
trade_goods = salt
trade_goods = copper
trade_goods = gold
trade_goods = iron
trade_goods = slaves trade_goods = ivory
trade_goods = tea
trade_goods = chinaware
trade_goods = spices
trade_goods = coffee
trade_goods = cotton trade_goods = sugar
trade_goods = tobacco
trade_goods = cocoa
trade_goods = silk
trade_goods = dyes
trade_goods = tropical_wood
trade_goods = incense
trade_goods = glass
trade_goods = paper
trade_goods = gems
}
}
limit = {
government = pastoral_community
}
events = farm_the_lands.1
}
}
if = {
limit = {
is_year = 1000
}
events = scottish_pompeii.1
}
}
on_bi_yearly_pulse = {
if = {
any_owned_province = {
OR = {
trade_goods = fur
trade_goods = grain
trade_goods = wine
trade_goods = wool
trade_goods = cloth
trade_goods = salt
trade_goods = copper
trade_goods = gold
trade_goods = iron
trade_goods = slaves trade_goods = ivory
trade_goods = tea
trade_goods = chinaware
trade_goods = spices
trade_goods = coffee
trade_goods = cotton trade_goods = sugar
trade_goods = tobacco
trade_goods = cocoa
trade_goods = silk
trade_goods = dyes
trade_goods = tropical_wood
trade_goods = incense
trade_goods = glass
trade_goods = paper
trade_goods = gems
}
}
limit = {
government = pastoral_community
}
events = farm_the_lands.1
}
}
1:
namespace = scottish_pompeii
country_event = {
id = scottish_pompeii.1
title = scottish_pompeii.1.t
desc = scottish_pompeii.1.d
picture = FAMINE_eventPicture
fire_only_once = yes
option = {
name = scottish_pompeii.1.a
ai_chance = {
factor = 40
}
add_adm_power = -200
add_years_of_income = -0.5
add_prestige = 5
random_list = {
65 = { #The Storm Kills everyone
SKB = {
country_event = { id = scottish_pompeii.2 }
}
}
35 = { #A few survive
SKB = {
country_event = { id = scottish_pompeii.3 }
}
}
}
}
}
# The storm kills all
country_event = {
id = scottish_pompeii.2
title = scottish_pompeii.2.t
desc = scottish_pompeii.2.d
picture = PLAGUE_eventPicture
fire_only_once = yes
is_triggered_only = yes
major = yes
option = {
name = "scottish_pompeii.2.a"
369 = { #Orkney
remove_core = SKB
cede_province = XXX
}
}
}
)
country_event = {
id = scottish_pompeii.3
title = scottish_pompeii.3.t
desc = scottish_pompeii.3.d
picture = PLAGUE_eventPicture
fire_only_once = yes
is_triggered_only = yes
major = yes
option = {
name = "scottish_pompeii.3.a"
369 = { #Orkney
production_efficiency = -3
}
}
}
}
2:
namespace = pastoral
province_event = {
id = farm_the_lands.1
title = farm_the_lands.1.t
desc = farm_the_lands.1.d
picture = FAMINE_eventPicture
is_triggered_only = yes
option = {
name = farm_the_lands.1.a
ai_chance = {
factor = 100
}
change_trade_goods = livestock
}
}
namespace = scottish_pompeii
country_event = {
id = scottish_pompeii.1
title = scottish_pompeii.1.t
desc = scottish_pompeii.1.d
picture = FAMINE_eventPicture
fire_only_once = yes
option = {
name = scottish_pompeii.1.a
ai_chance = {
factor = 40
}
add_adm_power = -200
add_years_of_income = -0.5
add_prestige = 5
random_list = {
65 = { #The Storm Kills everyone
SKB = {
country_event = { id = scottish_pompeii.2 }
}
}
35 = { #A few survive
SKB = {
country_event = { id = scottish_pompeii.3 }
}
}
}
}
}
# The storm kills all
country_event = {
id = scottish_pompeii.2
title = scottish_pompeii.2.t
desc = scottish_pompeii.2.d
picture = PLAGUE_eventPicture
fire_only_once = yes
is_triggered_only = yes
major = yes
option = {
name = "scottish_pompeii.2.a"
369 = { #Orkney
remove_core = SKB
cede_province = XXX
}
}
}
)
country_event = {
id = scottish_pompeii.3
title = scottish_pompeii.3.t
desc = scottish_pompeii.3.d
picture = PLAGUE_eventPicture
fire_only_once = yes
is_triggered_only = yes
major = yes
option = {
name = "scottish_pompeii.3.a"
369 = { #Orkney
production_efficiency = -3
}
}
}
}
2:
namespace = pastoral
province_event = {
id = farm_the_lands.1
title = farm_the_lands.1.t
desc = farm_the_lands.1.d
picture = FAMINE_eventPicture
is_triggered_only = yes
option = {
name = farm_the_lands.1.a
ai_chance = {
factor = 100
}
change_trade_goods = livestock
}
}
So with the scottish pompeii event I'm trying to make it so that in the year 1000 (a thing in my mod) the island of orkney has a high chance to become uncolonized and a low chance to damage the economy of the country.
And with the farm the lands event I am trying to make it so when you own a province it will change the trade good to livestock if you have the pastoral community government form (another thing in the mod).
I managed to get the scottish pompeii event to kind of work, but then I tweaked something to try and get it to what I wanted but then the game just started crashing constantly.
Any help would be much appreciated.
Thanks.