• 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.
Status
Not open for further replies.

Minimum

Private
38 Badges
May 7, 2017
11
0
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings III
  • Imperator: Rome Sign Up
  • Stellaris
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Jade Dragon
  • Stellaris: Galaxy Edition
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.

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
}
}

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
}

}


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.
 

gigau

Imperare Orbis Universi
Moderator
218 Badges
May 4, 2005
43.567
8.255
47
www.twitch.tv
  • Imperator: Rome Deluxe Edition
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • Victoria 3 Sign Up
  • Hearts of Iron IV: Colonel
  • Stellaris: Galaxy Edition
  • 200k Club
  • 500k Club
  • Paradox Order
  • PDXCON 2017 Gold Ticket holder
  • PDXCON 2018 "The Emperor"
  • PDXCon 2019 "King"
  • PDXCon 2017 Awards Winner
Status
Not open for further replies.