EventChanged this version
Founding of Dahomey

The Fon people within The Gold Coast have organized themselves under Dahomey, ruled by Target Character. They speak of militaristic ambitions, ready to expand further in Guinea.
VodunReligionimmediatedah_spawned_from_uncolonized_flagVariableoption 1, option 2, option 3Definitionin_game/events/DHE/flavor_dah.txt:3
4type = country_event
5title = flavor_dah.1.title Founding of Dahomey
6desc = flavor_dah.1.desc The Fon people within The Gold Coast have organized themselves under Dahomey, ruled by Target Character. They speak of militaristic ambitions, ready to expand further in Guinea.
7outcome = neutral
9fire_only_once = yes
10major = yes
11major_trigger = {
12capital ?= {
13region = region:guinea_region
}
}
17trigger = {
18is_real_country = yes
19country_type = location
20OR = {
21AND = {
22own_entire_province = province_definition:fon_province
23capital.province_definition != province_definition:fon_province
}
25province_definition:fon_province = {
26any_location_in_province_definition = {
27is_ownable = yes
28has_owner = no
}
}
}
}
34illustration_tags = {
3510 = regular
3610 = exterior
}
39immediate = {
}
41if = {
42limit = {
43province_definition:fon_province = {
44any_location_in_province_definition = {
45is_ownable = yes
46has_owner = no
}
}
}
51province_definition:fon_province = {
52random_location_in_province_definition = {
53limit = {
54is_ownable = yes
55has_owner = no
}
57save_scope_as = target_dahomey_capital
}
}
60scope:target_dahomey_capital ?= {
61change_location_owner = ROOT
62create_country_from_location = {
63save_scope_as = dahomey_country
64set_capital = scope:target_dahomey_capital
}
}
68scope:dahomey_country ?= {
69change_country_color = map_dahomey
70form_country = formable_country:DAH_f
}
}
84else_if = {
85limit = {
86own_entire_province = province_definition:fon_province
}
89province_definition:fon_province = {
90random_location_in_province_definition = {
91limit = {
92is_ownable = yes
}
94save_scope_as = target_dahomey_capital
}
}
97scope:target_dahomey_capital = {
98create_country_from_location = {
99save_scope_as = dahomey_country
100set_capital = scope:target_dahomey_capital
}
}
104scope:dahomey_country = {
105form_country = formable_country:DAH_f
106change_country_color = map_dahomey
}
109province_definition:fon_province = {
110every_location_in_province_definition = {
111limit = {
112is_ownable = yes
}
114change_location_owner = scope:dahomey_country
115add_core = scope:dahomey_country
}
}
}
122location:abomey = {
123create_dynasty_from_location = aladaxonou_dynasty
}
126create_character = {
127dynasty = dynasty:aladaxonou_dynasty
131age = 20
132save_scope_as = target_character
}
134scope:target_character = {
136max_adm = 75
137min_adm = 50
138max_dip = 75
139min_dip = 50
140max_mil = 75
141min_mil = 50
}
}
147set_new_ruler = scope:target_character
148every_province = {
149limit = {
149any_location_in_province = {
149NOT = {
149integration_level = core
}
}
}
150change_province_integration = core
}
152hidden_effect = {
153add_reform = government_reform:autocracy
170add_gold = 1000
171add_estate_satisfaction = {
}
172add_estate_satisfaction = {
}
173add_estate_satisfaction = {
}
174add_estate_satisfaction = {
}
178ordered_owned_location = {
179order_by = population
180position = 0
181save_scope_as = target_location
}
183scope:target_location = {
185change_max_raw_material_workers = 2
}
193every_province = {
194change_province_food = 1000
}
}
}
199region:guinea_region = {
200every_present_country = {
201limit = {
202this != root
203capital ?= {
204region = region:guinea_region
}
}
}
}
}