2172 lines
53 KiB
Text
2172 lines
53 KiB
Text
|
|
namespace = gdp_republic_patrician_decision
|
|
|
|
##################################################
|
|
### Patrician going for a walk in *their* city ###
|
|
##################################################
|
|
# gdp_republic_patrician_decision.1000 - Come across some left behind cargo
|
|
# gdp_republic_patrician_decision.1010 - What a nice, relaxing garden stroll
|
|
# gdp_republic_patrician_decision.1020 - Explore the Great Plaza
|
|
# gdp_republic_patrician_decision.1030 - Harbor - help local fishermen invest in better nets
|
|
# gdp_republic_patrician_decision.1040 - Great Plaza/Great project -- now, who.. who contributed this?
|
|
# gdp_republic_patrician_decision.1100 - The door to your study is stuck. Shucks!
|
|
|
|
|
|
#Lifting out for readability
|
|
scripted_effect patrician_decision_1000_apply_deficit_modifier_effect = {
|
|
switch = {
|
|
trigger = scope:abandoned_trade_good
|
|
trade_good_type:trade_good_grain = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_grain_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_millet = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_millet_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_rice = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_rice_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_meat = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_meat_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_fish = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_fish_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_cheese = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_cheese_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_fruit = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_fruit_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_oil = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_oil_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_honey = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_honey_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_tea = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_tea_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_beer = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_beer_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_wine = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_wine_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_wood = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_wood_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_hemp = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_hemp_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_wool = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_wool_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_cotton = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_cotton_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_flax = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_flax_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_textiles = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_textiles_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_furs = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_furs_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_leather = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_leather_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_sugar = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_sugar_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_spices = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_spices_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_ceramics = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_ceramics_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_glass = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_glass_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_lacquerware = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_lacquerware_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_silk = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_silk_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_incense = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_incense_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_medicaments = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_medicaments_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_salt = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_salt_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_alum = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_alum_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_dyes = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_dyes_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
trade_good_type:trade_good_books_paper = {
|
|
add_character_modifier = {
|
|
modifier = gdp_trade_good_books_paper_deficiency_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#Come across some left behind cargo
|
|
gdp_republic_patrician_decision.1000 = {
|
|
type = character_event
|
|
window = big_event_window
|
|
title = gdp_republic_patrician_decision.1000.t
|
|
desc = gdp_republic_patrician_decision.1000.desc
|
|
theme = republic
|
|
left_portrait = {
|
|
character = root
|
|
animation = interested
|
|
}
|
|
center_portrait = {
|
|
character = scope:local_character
|
|
animation = storyteller
|
|
camera = camera_event_scheme_center_look_right
|
|
hide_info = yes
|
|
}
|
|
right_portrait = {
|
|
character = scope:local_character_2
|
|
animation = contemplating
|
|
camera = camera_event_scheme_vs_extra_right_look_left
|
|
hide_info = yes
|
|
}
|
|
lower_right_portrait = {
|
|
trigger = { exists = scope:liege_scope }
|
|
character = scope:liege_scope
|
|
}
|
|
cooldown = { years = 5 }
|
|
trigger = {
|
|
is_available_adult = yes
|
|
}
|
|
immediate = {
|
|
capital_province = {
|
|
save_scope_as = city_location
|
|
barony.trade_market = {
|
|
if = {
|
|
limit = {
|
|
any_trade_good_with_need = { count >= 1 }
|
|
}
|
|
random_trade_good_with_need = {
|
|
limit = {
|
|
save_temporary_scope_as = trade_good_check
|
|
is_breakable_trade_good_trigger = { TRADE_GOOD = scope:trade_good_check }
|
|
}
|
|
save_scope_as = abandoned_trade_good
|
|
}
|
|
save_scope_as = is_needs_trade_good
|
|
}
|
|
else = {
|
|
random_trade_good_type = {
|
|
limit = {
|
|
save_temporary_scope_as = trade_good_check
|
|
is_breakable_trade_good_trigger = { TRADE_GOOD = scope:trade_good_check }
|
|
}
|
|
save_scope_as = abandoned_trade_good
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if = {
|
|
limit = { is_independent_ruler = no }
|
|
liege = { save_scope_as = liege_scope }
|
|
}
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
}
|
|
weight = {
|
|
base = 1
|
|
modifier = {
|
|
has_character_flag = created
|
|
add = 1
|
|
}
|
|
}
|
|
save_scope_as = local_character
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = generic_peasant_character
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character
|
|
after_creation = { add_character_flag = created }
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
this != scope:local_character
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
this != scope:local_character
|
|
}
|
|
save_scope_as = local_character_2
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = generic_peasant_character
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character_2
|
|
after_creation = { add_character_flag = created }
|
|
}
|
|
}
|
|
}
|
|
#Break it to create a deficit?
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1000.a
|
|
flavor = gdp_republic_patrician_decision.1000.a.flavor
|
|
trigger = { exists = scope:is_needs_trade_good }
|
|
patrician_decision_1000_apply_deficit_modifier_effect = yes
|
|
ai_chance = {
|
|
base = 100
|
|
}
|
|
}
|
|
#Sell it!
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1000.b
|
|
add_gold = major_gold_value
|
|
ai_chance = {
|
|
base = 100
|
|
}
|
|
}
|
|
#Gift it to the local liege
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1000.c
|
|
trigger = { exists = scope:liege_scope }
|
|
if = {
|
|
limit = {
|
|
NOT = { has_relation_friend = scope:liege_scope }
|
|
}
|
|
scope:liege_scope = {
|
|
progress_towards_friend_effect = {
|
|
REASON = friend_gifted_trade_goods
|
|
CHARACTER = root
|
|
OPINION = 30
|
|
}
|
|
}
|
|
}
|
|
else = {
|
|
reverse_add_opinion = {
|
|
target = scope:liege_scope
|
|
modifier = grateful_opinion
|
|
opinion = 30
|
|
}
|
|
}
|
|
ai_chance = {
|
|
base = 100
|
|
modifier = {
|
|
has_relation_rival = scope:liege_scope
|
|
factor = 0
|
|
}
|
|
}
|
|
}
|
|
#Let's not engage
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1000.d
|
|
add_character_modifier = {
|
|
modifier = gdp_city_stroll_modifier
|
|
years = 5
|
|
}
|
|
stress_impact = {
|
|
base = miniscule_stress_impact_loss
|
|
craven = minor_stress_loss
|
|
paranoid = medium_stress_loss
|
|
}
|
|
ai_chance = {
|
|
base = 200
|
|
}
|
|
}
|
|
after = {
|
|
scope:local_character = {
|
|
silent_disappearance_ai_if_created_effect = yes
|
|
}
|
|
scope:local_character_2 = {
|
|
silent_disappearance_ai_if_created_effect = yes
|
|
}
|
|
}
|
|
}
|
|
|
|
#What a nice, relaxing garden stroll
|
|
gdp_republic_patrician_decision.1010 = {
|
|
type = character_event
|
|
window = big_event_window
|
|
title = gdp_republic_patrician_decision.1010.t
|
|
desc = gdp_republic_patrician_decision.1010.desc
|
|
theme = republic
|
|
override_background = { reference = garden }
|
|
left_portrait = {
|
|
character = scope:local_character_2
|
|
animation = admiration
|
|
camera = camera_event_very_left_further_back
|
|
hide_info = yes
|
|
}
|
|
center_portrait = {
|
|
character = scope:local_character
|
|
animation = laugh
|
|
camera = camera_event_right_pointing_very_right
|
|
hide_info = yes
|
|
}
|
|
right_portrait = {
|
|
character = root
|
|
animation = thinking
|
|
camera = camera_center_large
|
|
}
|
|
cooldown = { years = 5 }
|
|
trigger = {
|
|
is_available_adult = yes
|
|
}
|
|
immediate = {
|
|
capital_province = { save_scope_as = city_location }
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
}
|
|
weight = {
|
|
base = 1
|
|
modifier = {
|
|
has_character_flag = created
|
|
add = 1
|
|
}
|
|
}
|
|
save_scope_as = local_character
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = generic_peasant_character
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character
|
|
after_creation = { add_character_flag = created }
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
this != scope:local_character
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
this != scope:local_character
|
|
}
|
|
save_scope_as = local_character_2
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = generic_peasant_character
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character_2
|
|
after_creation = { add_character_flag = created }
|
|
}
|
|
}
|
|
}
|
|
#You a herbalist?
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1010.b
|
|
trigger = { has_trait = lifestyle_herbalist }
|
|
random_list = {
|
|
10 = {
|
|
desc = gdp_republic_patrician_decision.1010.b.poison_plant
|
|
add_character_modifier = {
|
|
modifier = hunt_poisonous_herbs_modifier
|
|
years = 5
|
|
}
|
|
}
|
|
10 = {
|
|
desc = gdp_republic_patrician_decision.1010.b.health_plant
|
|
add_character_modifier = {
|
|
modifier = hunt_medicinal_herbs_modifier
|
|
years = 5
|
|
}
|
|
}
|
|
}
|
|
ai_chance = {
|
|
base = 200
|
|
}
|
|
}
|
|
#... deviant?
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1010.c
|
|
trigger = {
|
|
is_deviant_trigger = yes
|
|
should_be_naked_trigger = no
|
|
}
|
|
flavor = gdp_republic_patrician_decision.1010.c.flavor
|
|
duel = {
|
|
skill = prowess
|
|
value = average_skill_rating
|
|
75 = {
|
|
compare_modifier = {
|
|
value = scope:duel_value
|
|
multiplier = 3.5
|
|
min = -49
|
|
}
|
|
desc = gdp_republic_patrician_decision.1010.c.success
|
|
send_interface_toast = {
|
|
title = gdp_republic_patrician_decision.1010.c.success
|
|
left_icon = root
|
|
}
|
|
}
|
|
25 = {
|
|
compare_modifier = {
|
|
value = scope:duel_value
|
|
multiplier = -3.5
|
|
min = -49
|
|
}
|
|
desc = gdp_republic_patrician_decision.1010.c.failure
|
|
send_interface_toast = {
|
|
title = gdp_republic_patrician_decision.1010.c.failure
|
|
left_icon = root
|
|
add_character_modifier = {
|
|
modifier = gdp_shamed_nudity_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stress_and_fulfillment_impact = {
|
|
base = major_stress_impact_loss
|
|
}
|
|
ai_chance = {
|
|
base = 50
|
|
}
|
|
}
|
|
#We should make it nicer!
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1010.a
|
|
add_character_modifier = {
|
|
modifier = gdp_patrician_city_investments_modifier
|
|
years = 10
|
|
}
|
|
scope:city_location = {
|
|
add_province_modifier = {
|
|
modifier = gdp_city_investments_province_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
remove_short_term_gold = major_gold_value
|
|
ai_chance = {
|
|
base = 100
|
|
}
|
|
}
|
|
#Alright, alright
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1010.d
|
|
add_character_modifier = {
|
|
modifier = gdp_city_stroll_modifier
|
|
years = 5
|
|
}
|
|
stress_and_fulfillment_impact = {
|
|
base = miniscule_stress_impact_loss
|
|
}
|
|
ai_chance = {
|
|
base = 200
|
|
}
|
|
}
|
|
after = {
|
|
scope:local_character = {
|
|
silent_disappearance_ai_if_created_effect = yes
|
|
}
|
|
scope:local_character_2 = {
|
|
silent_disappearance_ai_if_created_effect = yes
|
|
}
|
|
}
|
|
}
|
|
|
|
scripted_trigger 1020_generic_option_trigger = {
|
|
NOR = {
|
|
exists = scope:lost_maa_brigade
|
|
exists = scope:trader_recruit
|
|
exists = scope:physician_recruit
|
|
exists = scope:scheme_to_boost
|
|
exists = scope:dropped_jewellery
|
|
}
|
|
}
|
|
|
|
#Explore the Great Plaza
|
|
gdp_republic_patrician_decision.1020 = {
|
|
type = character_event
|
|
window = big_event_window
|
|
title = gdp_republic_patrician_decision.1020.t
|
|
desc = {
|
|
#Intro
|
|
desc = gdp_republic_patrician_decision.1020.intro
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = { exists = scope:rainy_day }
|
|
desc = gdp_republic_patrician_decision.1020.intro.rain
|
|
}
|
|
random_valid = {
|
|
desc = gdp_republic_patrician_decision.1020.intro.01
|
|
desc = gdp_republic_patrician_decision.1020.intro.02
|
|
desc = gdp_republic_patrician_decision.1020.intro.03
|
|
desc = gdp_republic_patrician_decision.1020.intro.04
|
|
}
|
|
}
|
|
#Mid
|
|
triggered_desc = {
|
|
trigger = { exists = scope:lost_maa_brigade }
|
|
desc = gdp_republic_patrician_decision.1020.desc.maa
|
|
}
|
|
triggered_desc = {
|
|
trigger = { exists = scope:trader_recruit }
|
|
desc = gdp_republic_patrician_decision.1020.desc.trader
|
|
}
|
|
triggered_desc = {
|
|
trigger = { exists = scope:physician_recruit }
|
|
desc = gdp_republic_patrician_decision.1020.desc.physician
|
|
}
|
|
triggered_desc = {
|
|
trigger = { exists = scope:scheme_to_boost }
|
|
desc = gdp_republic_patrician_decision.1020.desc.scheme
|
|
}
|
|
triggered_desc = {
|
|
trigger = { exists = scope:dropped_jewellery }
|
|
desc = gdp_republic_patrician_decision.1020.desc.jewellery
|
|
}
|
|
triggered_desc = {
|
|
trigger = { 1020_generic_option_trigger = yes }
|
|
desc = gdp_republic_patrician_decision.1020.desc.generic
|
|
}
|
|
}
|
|
theme = republic
|
|
override_effect_2d = {
|
|
trigger = { exists = scope:rainy_day }
|
|
reference = rain
|
|
}
|
|
left_portrait = {
|
|
character = scope:local_character_2
|
|
#Soldier 2
|
|
triggered_animation = {
|
|
trigger = { exists = scope:lost_maa_brigade }
|
|
animation = relaxed_spear
|
|
}
|
|
#Trader on-looker
|
|
triggered_animation = {
|
|
trigger = { exists = scope:trader_recruit }
|
|
animation = dismissal
|
|
}
|
|
#Physician on-looker
|
|
triggered_animation = {
|
|
trigger = { exists = scope:physician_recruit }
|
|
animation = contemplating
|
|
}
|
|
#Poor people around
|
|
triggered_animation = {
|
|
trigger = { 1020_generic_option_trigger = yes }
|
|
animation = worry
|
|
}
|
|
animation = admiration
|
|
camera = camera_event_center_background_crowd_left
|
|
hide_info = yes
|
|
}
|
|
center_portrait = {
|
|
character = scope:local_character
|
|
#Soldier 1
|
|
triggered_animation = {
|
|
trigger = { exists = scope:lost_maa_brigade }
|
|
animation = relaxed_spear
|
|
}
|
|
#Trader
|
|
triggered_animation = {
|
|
trigger = { exists = scope:trader_recruit }
|
|
animation = anger
|
|
}
|
|
#Physician
|
|
triggered_animation = {
|
|
trigger = { exists = scope:physician_recruit }
|
|
animation = storyteller
|
|
}
|
|
#Poor people around
|
|
triggered_animation = {
|
|
trigger = { 1020_generic_option_trigger = yes }
|
|
animation = stress
|
|
}
|
|
animation = laugh
|
|
camera = camera_event_center_background_crowd_right
|
|
}
|
|
right_portrait = {
|
|
character = root
|
|
animation = interested_left
|
|
camera = camera_event_center_pointing_slighty_left
|
|
}
|
|
artifact = {
|
|
target = scope:dropped_jewellery
|
|
position = lower_left_portrait
|
|
}
|
|
trigger = {
|
|
is_available_adult = yes
|
|
capital_province = { province_has_district = republic_great_plaza_district }
|
|
}
|
|
immediate = {
|
|
capital_province = { save_scope_as = city_location }
|
|
random_list = {
|
|
50 = {
|
|
#Sunshine
|
|
}
|
|
25 = {
|
|
save_scope_as = rainy_day
|
|
}
|
|
}
|
|
if = {
|
|
limit = { is_independent_ruler = no }
|
|
liege = { save_scope_as = liege_scope }
|
|
}
|
|
#Generate option
|
|
random_list = {
|
|
20 = {
|
|
#Nothing at all!
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
}
|
|
weight = {
|
|
base = 1
|
|
modifier = {
|
|
has_character_flag = created
|
|
add = 1
|
|
}
|
|
}
|
|
save_scope_as = local_character
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = generic_peasant_character
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character
|
|
after_creation = { add_character_flag = created }
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
this != scope:local_character
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
this != scope:local_character
|
|
}
|
|
save_scope_as = local_character_2
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = generic_peasant_character
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character_2
|
|
after_creation = { add_character_flag = created }
|
|
}
|
|
}
|
|
}
|
|
10 = {
|
|
save_scope_as = lost_maa_brigade
|
|
#Soldier 1
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
has_character_flag = created_soldier
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
has_character_flag = created_soldier
|
|
}
|
|
save_scope_as = local_character
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = generic_peasant_character
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character
|
|
after_creation = { add_character_flag = created_soldier }
|
|
}
|
|
}
|
|
#Soldier 2
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
has_character_flag = created_soldier
|
|
this != scope:local_character
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
has_character_flag = created_soldier
|
|
this != scope:local_character
|
|
}
|
|
save_scope_as = local_character_2
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = generic_peasant_character
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character_2
|
|
after_creation = { add_character_flag = created_soldier }
|
|
}
|
|
}
|
|
scope:local_character = { add_character_flag = need_military_outfit }
|
|
scope:local_character_2 = { add_character_flag = need_military_outfit }
|
|
}
|
|
10 = {
|
|
save_scope_as = trader_recruit
|
|
#Trader
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
has_character_flag = created_trader
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
has_character_flag = created_trader
|
|
}
|
|
save_scope_as = local_character
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = trader_diplomacy_template
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character
|
|
after_creation = { add_character_flag = created_trader }
|
|
}
|
|
}
|
|
#On-looker
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
this != scope:local_character
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
this != scope:local_character
|
|
}
|
|
weight = {
|
|
base = 1
|
|
modifier = {
|
|
has_character_flag = created
|
|
add = 1
|
|
}
|
|
}
|
|
save_scope_as = local_character_2
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = generic_peasant_character
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character_2
|
|
after_creation = { add_character_flag = created }
|
|
}
|
|
}
|
|
}
|
|
10 = {
|
|
save_scope_as = physician_recruit
|
|
#Physician
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
has_character_flag = created_physician
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
has_character_flag = created_physician
|
|
}
|
|
save_scope_as = local_character
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = physician_high_character_template
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character
|
|
after_creation = { add_character_flag = created_physician }
|
|
}
|
|
}
|
|
#On-looker
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
this != scope:local_character
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
this != scope:local_character
|
|
}
|
|
weight = {
|
|
base = 1
|
|
modifier = {
|
|
has_character_flag = created
|
|
add = 1
|
|
}
|
|
}
|
|
save_scope_as = local_character_2
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = generic_peasant_character
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character_2
|
|
after_creation = { add_character_flag = created }
|
|
}
|
|
}
|
|
}
|
|
10 = {
|
|
trigger = {
|
|
any_scheme = {
|
|
NOT = { has_scheme_modifier = gdp_opportunity_scheme_modifier }
|
|
}
|
|
}
|
|
random_scheme = {
|
|
limit = {
|
|
NOT = { has_scheme_modifier = gdp_opportunity_scheme_modifier }
|
|
}
|
|
save_scope_as = scheme_to_boost
|
|
}
|
|
}
|
|
10 = {
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
}
|
|
weight = {
|
|
base = 1
|
|
modifier = {
|
|
has_character_flag = created
|
|
add = 1
|
|
}
|
|
}
|
|
save_scope_as = local_character
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = generic_peasant_character
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character
|
|
after_creation = { add_character_flag = created }
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
this != scope:local_character
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
this != scope:local_character
|
|
}
|
|
save_scope_as = local_character_2
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = generic_peasant_character
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character_2
|
|
after_creation = { add_character_flag = created }
|
|
}
|
|
}
|
|
#Create jewellery to lose
|
|
scope:local_character = {
|
|
random_list = {
|
|
10 = { set_artifact_rarity_illustrious = yes }
|
|
20 = { set_artifact_rarity_famed = yes }
|
|
40 = { set_artifact_rarity_masterwork = yes }
|
|
}
|
|
save_scope_as = no_artifact_history
|
|
random_list = {
|
|
50 = {
|
|
create_artifact_brooch_effect = {
|
|
OWNER = scope:local_character
|
|
SMITH = scope:local_character
|
|
}
|
|
}
|
|
50 = {
|
|
create_artifact_ring_effect = {
|
|
OWNER = scope:local_character
|
|
SMITH = scope:local_character
|
|
}
|
|
}
|
|
50 = {
|
|
create_artifact_necklace_effect = {
|
|
OWNER = scope:local_character
|
|
SMITH = scope:local_character
|
|
}
|
|
}
|
|
}
|
|
clear_saved_scope = no_artifact_history
|
|
scope:newly_created_artifact ?= {
|
|
add_scaled_artifact_modifier_prestige_effect = yes
|
|
#Don't need no notification about this
|
|
set_variable = {
|
|
name = suppress_artifact_notifications
|
|
value = yes
|
|
days = 2
|
|
}
|
|
save_scope_as = dropped_jewellery
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#Donate gold
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1020.a
|
|
trigger = { 1020_generic_option_trigger = yes }
|
|
add_character_modifier = {
|
|
modifier = gdp_city_stroll_alms_modifier
|
|
years = 5
|
|
}
|
|
remove_short_term_gold = major_gold_value
|
|
ai_chance = {
|
|
base = 100
|
|
ai_value_modifier = {
|
|
ai_greed = -1
|
|
}
|
|
modifier = {
|
|
short_term_gold <= major_gold_value
|
|
factor = 0
|
|
}
|
|
}
|
|
}
|
|
#Lost pack of MaA
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1020.b
|
|
trigger = { exists = scope:lost_maa_brigade }
|
|
spawn_army = {
|
|
name = event_troop_default_name
|
|
men_at_arms = {
|
|
type = armored_footmen
|
|
stacks = 2
|
|
}
|
|
inheritable = no
|
|
location = root.location
|
|
}
|
|
remove_short_term_gold = major_gold_value
|
|
ai_chance = {
|
|
base = 100
|
|
modifier = {
|
|
short_term_gold <= major_gold_value
|
|
factor = 0
|
|
}
|
|
}
|
|
}
|
|
#Recruit the trader
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1020.c
|
|
trigger = { exists = scope:trader_recruit }
|
|
add_courtier = scope:local_character
|
|
ai_chance = {
|
|
base = 200
|
|
modifier = {
|
|
has_trait = paranoid
|
|
factor = 0
|
|
}
|
|
}
|
|
}
|
|
#Recruit the physician
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1020.d
|
|
trigger = { exists = scope:physician_recruit }
|
|
if = {
|
|
limit = {
|
|
can_appoint_char_to_court_position = {
|
|
CHAR = scope:local_character
|
|
COURT_POS = court_physician_court_position
|
|
}
|
|
}
|
|
court_position_grant_effect = {
|
|
EMPLOYER = root
|
|
POS = court_physician
|
|
CANDIDATE = scope:local_character
|
|
}
|
|
}
|
|
ai_chance = {
|
|
base = 100
|
|
modifier = {
|
|
has_trait = paranoid
|
|
factor = 0
|
|
}
|
|
}
|
|
}
|
|
#Scheme boost?
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1020.e
|
|
trigger = { exists = scope:scheme_to_boost }
|
|
scope:scheme_to_boost = {
|
|
add_scheme_modifier = { type = gdp_opportunity_scheme_modifier }
|
|
}
|
|
remove_short_term_gold = major_gold_value
|
|
ai_chance = {
|
|
base = 100
|
|
modifier = {
|
|
short_term_gold <= major_gold_value
|
|
factor = 0
|
|
}
|
|
}
|
|
}
|
|
#Piece of jewellery
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1020.f
|
|
trigger = { exists = scope:dropped_jewellery }
|
|
scope:dropped_jewellery = {
|
|
set_owner = {
|
|
target = root
|
|
history = {
|
|
type = discovered
|
|
actor = root
|
|
recipient = root
|
|
location = root.location
|
|
}
|
|
}
|
|
}
|
|
ai_chance = {
|
|
base = 200
|
|
}
|
|
}
|
|
#Moving on
|
|
option = {
|
|
name = {
|
|
trigger = { 1020_generic_option_trigger = yes }
|
|
text = gdp_republic_patrician_decision.1020.g.alternate
|
|
}
|
|
name = gdp_republic_patrician_decision.1020.g
|
|
add_character_modifier = {
|
|
modifier = gdp_city_stroll_modifier
|
|
years = 5
|
|
}
|
|
ai_chance = {
|
|
base = 150
|
|
}
|
|
}
|
|
after = {
|
|
scope:local_character ?= {
|
|
silent_disappearance_ai_if_created_effect = yes
|
|
remove_character_flag = need_military_outfit
|
|
}
|
|
scope:local_character_2 ?= {
|
|
silent_disappearance_ai_if_created_effect = yes
|
|
remove_character_flag = need_military_outfit
|
|
}
|
|
}
|
|
}
|
|
|
|
#Harbor - help local fishermen invest in better nets
|
|
gdp_republic_patrician_decision.1030 = {
|
|
type = character_event
|
|
window = big_event_window
|
|
title = gdp_republic_patrician_decision.1030.t
|
|
desc = {
|
|
desc = gdp_republic_patrician_decision.1030.desc
|
|
first_valid = {
|
|
triggered_desc = {
|
|
trigger = { exists = scope:cat_scope }
|
|
desc = gdp_republic_patrician_decision.1030.desc.outro.cat
|
|
}
|
|
desc = gdp_republic_patrician_decision.1030.desc.outro
|
|
}
|
|
}
|
|
theme = republic
|
|
override_background = { reference = docks }
|
|
left_portrait = {
|
|
character = root
|
|
animation = thinking_all
|
|
}
|
|
center_portrait = {
|
|
character = scope:local_character_2
|
|
animation = stress
|
|
camera = camera_event_scheme_left
|
|
hide_info = yes
|
|
}
|
|
right_portrait = {
|
|
character = scope:local_character
|
|
animation = relaxed_spear
|
|
camera = camera_event_scheme_far_right
|
|
hide_info = yes
|
|
}
|
|
trigger = {
|
|
is_available_adult = yes
|
|
capital_province = { is_coastal = yes }
|
|
}
|
|
immediate = {
|
|
capital_province = { save_scope_as = city_location }
|
|
random_list = {
|
|
50 = {
|
|
#No cat
|
|
}
|
|
50 = {
|
|
trigger = { has_cat_trigger = no }
|
|
save_scope_as = cat_scope
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
}
|
|
weight = {
|
|
base = 1
|
|
modifier = {
|
|
has_character_flag = created
|
|
add = 1
|
|
}
|
|
}
|
|
save_scope_as = local_character
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = generic_peasant_character
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character
|
|
after_creation = { add_character_flag = created }
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
this != scope:local_character
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
this != scope:local_character
|
|
}
|
|
save_scope_as = local_character_2
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = generic_peasant_character
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character_2
|
|
after_creation = { add_character_flag = created }
|
|
}
|
|
}
|
|
}
|
|
#Teach them how to fish...
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1030.a
|
|
add_character_modifier = {
|
|
modifier = gdp_patrician_city_investments_modifier
|
|
years = 10
|
|
}
|
|
scope:city_location = {
|
|
add_province_modifier = {
|
|
modifier = gdp_city_investments_province_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
remove_short_term_gold = major_gold_value
|
|
ai_chance = {
|
|
base = 100
|
|
modifier = {
|
|
short_term_gold <= major_gold_value
|
|
factor = 0
|
|
}
|
|
}
|
|
}
|
|
#Buy their fish...
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1030.b
|
|
add_character_modifier = {
|
|
modifier = gdp_bulk_fish_modifier
|
|
years = 10
|
|
}
|
|
remove_short_term_gold = medium_gold_value
|
|
ai_chance = {
|
|
base = 100
|
|
modifier = {
|
|
short_term_gold <= medium_gold_value
|
|
factor = 0
|
|
}
|
|
}
|
|
}
|
|
#Cat? Cat!!
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1030.c
|
|
trigger = { exists = scope:cat_scope }
|
|
start_cat_story_cycle_effect = yes
|
|
ai_chance = {
|
|
base = 200
|
|
modifier = {
|
|
has_trait = sadistic
|
|
factor = 0
|
|
}
|
|
}
|
|
}
|
|
#Let's not engage
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1030.d
|
|
add_character_modifier = {
|
|
modifier = gdp_city_stroll_modifier
|
|
years = 5
|
|
}
|
|
stress_and_fulfillment_impact = {
|
|
base = miniscule_stress_impact_loss
|
|
}
|
|
ai_chance = {
|
|
base = 200
|
|
}
|
|
}
|
|
after = {
|
|
scope:local_character = {
|
|
silent_disappearance_ai_if_created_effect = yes
|
|
}
|
|
scope:local_character_2 = {
|
|
silent_disappearance_ai_if_created_effect = yes
|
|
}
|
|
}
|
|
}
|
|
|
|
#Great Plaza/Great project -- now, who.. who contributed this?
|
|
gdp_republic_patrician_decision.1040 = {
|
|
type = character_event
|
|
window = big_event_window
|
|
title = gdp_republic_patrician_decision.1040.t
|
|
desc = gdp_republic_patrician_decision.1040.desc
|
|
theme = republic
|
|
left_portrait = {
|
|
character = scope:local_character_2
|
|
animation = debating
|
|
camera = camera_event_right_away_3_4_more_right
|
|
hide_info = yes
|
|
}
|
|
center_portrait = {
|
|
character = scope:local_character
|
|
animation = stressed_teacher
|
|
camera = camera_event_center_moved_left
|
|
hide_info = yes
|
|
}
|
|
right_portrait = {
|
|
character = root
|
|
animation = interested_left
|
|
camera = camera_event_scheme_vs_center_look_left
|
|
}
|
|
lower_right_portrait = {
|
|
trigger = { exists = scope:liege_scope }
|
|
character = scope:liege_scope
|
|
}
|
|
lower_center_portrait = {
|
|
trigger = { scope:liege_scope != scope:actual_contributor }
|
|
character = scope:actual_contributor
|
|
}
|
|
trigger = {
|
|
is_available_adult = yes
|
|
is_independent_ruler = no
|
|
capital_province = {
|
|
province_has_district = republic_great_plaza_district
|
|
#Ongoing great project
|
|
any_great_project_in_province = {
|
|
OR = {
|
|
great_project_type = gdp_republic_expand_great_plaza_project
|
|
great_project_type = gdp_republic_great_plaza_loggia_project
|
|
great_project_type = gdp_republic_great_plaza_statute_hall_project
|
|
great_project_type = gdp_republic_great_plaza_council_chamber_project
|
|
great_project_type = gdp_republic_great_plaza_debt_office_project
|
|
great_project_type = gdp_republic_great_plaza_civic_hospital_project
|
|
great_project_type = gdp_republic_great_plaza_weigh_house_project
|
|
great_project_type = gdp_republic_great_plaza_clock_tower_project
|
|
great_project_type = gdp_republic_great_plaza_civic_ward_project
|
|
great_project_type = gdp_republic_great_plaza_league_chapter_house_project
|
|
great_project_type = gdp_republic_great_plaza_podesta_residence_project
|
|
great_project_type = gdp_republic_great_plaza_fountain_project
|
|
}
|
|
great_project_construction_phase_is = planned
|
|
any_contribution = {
|
|
is_owner_only_contribution_trigger = no
|
|
contribution_is_funded = no
|
|
}
|
|
}
|
|
}
|
|
}
|
|
immediate = {
|
|
capital_province = {
|
|
save_scope_as = city_location
|
|
random_great_project_in_province = {
|
|
limit = {
|
|
OR = {
|
|
great_project_type = gdp_republic_expand_great_plaza_project
|
|
great_project_type = gdp_republic_great_plaza_loggia_project
|
|
great_project_type = gdp_republic_great_plaza_statute_hall_project
|
|
great_project_type = gdp_republic_great_plaza_council_chamber_project
|
|
great_project_type = gdp_republic_great_plaza_debt_office_project
|
|
great_project_type = gdp_republic_great_plaza_civic_hospital_project
|
|
great_project_type = gdp_republic_great_plaza_weigh_house_project
|
|
great_project_type = gdp_republic_great_plaza_clock_tower_project
|
|
great_project_type = gdp_republic_great_plaza_civic_ward_project
|
|
great_project_type = gdp_republic_great_plaza_league_chapter_house_project
|
|
great_project_type = gdp_republic_great_plaza_podesta_residence_project
|
|
great_project_type = gdp_republic_great_plaza_fountain_project
|
|
}
|
|
great_project_construction_phase_is = planned
|
|
any_contribution = {
|
|
is_owner_only_contribution_trigger = no
|
|
contribution_is_funded = no
|
|
}
|
|
}
|
|
save_scope_as = target_great_project
|
|
#Check for Mandatory first
|
|
random_contribution = {
|
|
limit = {
|
|
is_owner_only_contribution_trigger = no
|
|
contribution_is_funded = no
|
|
contribution_is_required = yes
|
|
}
|
|
alternative_limit = {
|
|
is_owner_only_contribution_trigger = no
|
|
contribution_is_funded = no
|
|
}
|
|
save_scope_as = contribution_to_fund
|
|
}
|
|
}
|
|
}
|
|
#For loc
|
|
scope:target_great_project = {
|
|
switch = {
|
|
trigger = great_project_type
|
|
gdp_republic_expand_great_plaza_project = {
|
|
root = {
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_expand_great_plaza
|
|
}
|
|
}
|
|
}
|
|
gdp_republic_great_plaza_loggia_project = {
|
|
root = {
|
|
if = {
|
|
limit = {
|
|
capital_province = { has_building_or_higher = republic_loggia_01 }
|
|
}
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_improved_loggia
|
|
}
|
|
}
|
|
else = {
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_loggia
|
|
}
|
|
}
|
|
}
|
|
}
|
|
gdp_republic_great_plaza_statute_hall_project = {
|
|
root = {
|
|
if = {
|
|
limit = {
|
|
capital_province = { has_building_or_higher = republic_statute_hall_01 }
|
|
}
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_improved_statute_hall
|
|
}
|
|
}
|
|
else = {
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_statute_hall
|
|
}
|
|
}
|
|
}
|
|
}
|
|
gdp_republic_great_plaza_council_chamber_project = {
|
|
root = {
|
|
if = {
|
|
limit = {
|
|
capital_province = { has_building_or_higher = republic_council_chamber_01 }
|
|
}
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_improved_council_chamber
|
|
}
|
|
}
|
|
else = {
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_council_chamber
|
|
}
|
|
}
|
|
}
|
|
}
|
|
gdp_republic_great_plaza_debt_office_project = {
|
|
root = {
|
|
if = {
|
|
limit = {
|
|
capital_province = { has_building_or_higher = republic_debt_office_01 }
|
|
}
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_improved_debt_office
|
|
}
|
|
}
|
|
else = {
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_debt_office
|
|
}
|
|
}
|
|
}
|
|
}
|
|
gdp_republic_great_plaza_civic_hospital_project = {
|
|
root = {
|
|
if = {
|
|
limit = {
|
|
capital_province = { has_building_or_higher = republic_civic_hospital_01 }
|
|
}
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_improved_civic_hospital
|
|
}
|
|
}
|
|
else = {
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_civic_hospital
|
|
}
|
|
}
|
|
}
|
|
}
|
|
gdp_republic_great_plaza_weigh_house_project = {
|
|
root = {
|
|
if = {
|
|
limit = {
|
|
capital_province = { has_building_or_higher = republic_weigh_house_01 }
|
|
}
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_improved_weigh_house
|
|
}
|
|
}
|
|
else = {
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_weigh_house
|
|
}
|
|
}
|
|
}
|
|
}
|
|
gdp_republic_great_plaza_clock_tower_project = {
|
|
root = {
|
|
if = {
|
|
limit = {
|
|
capital_province = { has_building_or_higher = republic_clock_tower_01 }
|
|
}
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_improved_clock_tower
|
|
}
|
|
}
|
|
else = {
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_clock_tower
|
|
}
|
|
}
|
|
}
|
|
}
|
|
gdp_republic_great_plaza_civic_ward_project = {
|
|
root = {
|
|
if = {
|
|
limit = {
|
|
capital_province = { has_building_or_higher = republic_civic_ward_01 }
|
|
}
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_improved_civic_ward
|
|
}
|
|
}
|
|
else = {
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_civic_ward
|
|
}
|
|
}
|
|
}
|
|
}
|
|
gdp_republic_great_plaza_league_chapter_house_project = {
|
|
root = {
|
|
if = {
|
|
limit = {
|
|
capital_province = { has_building_or_higher = republic_league_chapter_house_01 }
|
|
}
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_improved_league_chapter_house
|
|
}
|
|
}
|
|
else = {
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_league_chapter_house
|
|
}
|
|
}
|
|
}
|
|
}
|
|
gdp_republic_great_plaza_podesta_residence_project = {
|
|
root = {
|
|
if = {
|
|
limit = {
|
|
capital_province = { has_building_or_higher = republic_podesta_residence_01 }
|
|
}
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_improved_podesta_residence
|
|
}
|
|
}
|
|
else = {
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_podesta_residence
|
|
}
|
|
}
|
|
}
|
|
}
|
|
gdp_republic_great_plaza_fountain_project = {
|
|
root = {
|
|
if = {
|
|
limit = {
|
|
capital_province = { has_building_or_higher = republic_fountain_01 }
|
|
}
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_improved_fountain
|
|
}
|
|
}
|
|
else = {
|
|
set_variable = {
|
|
name = gp_great_plaza_expansion
|
|
value = flag:gp_fountain
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
liege = {
|
|
save_scope_as = liege_scope
|
|
if = {
|
|
limit = {
|
|
any_vassal = { this != root }
|
|
}
|
|
random_vassal = {
|
|
limit = { this != root }
|
|
save_scope_as = actual_contributor
|
|
}
|
|
}
|
|
else = {
|
|
save_scope_as = actual_contributor
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
}
|
|
weight = {
|
|
base = 1
|
|
modifier = {
|
|
has_character_flag = created
|
|
add = 1
|
|
}
|
|
}
|
|
save_scope_as = local_character
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = generic_peasant_character
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character
|
|
after_creation = { add_character_flag = created }
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
any_pool_character = {
|
|
province = scope:city_location
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
this != scope:local_character
|
|
}
|
|
}
|
|
random_pool_character = {
|
|
province = scope:city_location
|
|
limit = {
|
|
is_available_healthy_ai_adult = yes
|
|
has_no_particular_noble_roots_trigger = yes
|
|
this != scope:local_character
|
|
}
|
|
save_scope_as = local_character_2
|
|
}
|
|
}
|
|
else = {
|
|
create_character = {
|
|
template = generic_peasant_character
|
|
location = scope:city_location
|
|
culture = scope:city_location.culture
|
|
faith = scope:city_location.faith
|
|
save_scope_as = local_character_2
|
|
after_creation = { add_character_flag = created }
|
|
}
|
|
}
|
|
}
|
|
#I contributed that, obviously
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1040.a
|
|
duel = {
|
|
skills = { diplomacy intrigue }
|
|
value = average_skill_rating
|
|
75 = {
|
|
compare_modifier = {
|
|
value = scope:duel_value
|
|
multiplier = 3.5
|
|
min = -49
|
|
}
|
|
desc = gdp_republic_patrician_decision.1040.a.success
|
|
send_interface_toast = {
|
|
title = gdp_republic_patrician_decision.1040.a.success
|
|
left_icon = root
|
|
fund_great_project_contribution = {
|
|
contribution = scope:contribution_to_fund
|
|
cost = no
|
|
check_can_contribute = no
|
|
}
|
|
}
|
|
}
|
|
25 = {
|
|
compare_modifier = {
|
|
value = scope:duel_value
|
|
multiplier = -3.5
|
|
min = -49
|
|
}
|
|
desc = gdp_republic_patrician_decision.1040.a.failure
|
|
send_interface_toast = {
|
|
title = gdp_republic_patrician_decision.1040.a.failure
|
|
left_icon = root
|
|
add_character_modifier = {
|
|
modifier = gdp_publicly_shamed_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stress_and_fulfillment_impact = {
|
|
base = miniscule_stress_impact_loss
|
|
honest = minor_stress_impact_gain
|
|
}
|
|
ai_chance = {
|
|
base = 100
|
|
modifier = {
|
|
has_trait = honest
|
|
factor = 0
|
|
}
|
|
}
|
|
}
|
|
#Liege did!
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1040.b
|
|
trigger = { scope:liege_scope != scope:actual_contributor }
|
|
scope:liege_scope = {
|
|
add_popular_opinion = 10
|
|
fund_great_project_contribution = {
|
|
contribution = scope:contribution_to_fund
|
|
cost = no
|
|
check_can_contribute = no
|
|
}
|
|
}
|
|
if = {
|
|
limit = {
|
|
has_relation_friend = scope:liege_scope
|
|
can_set_relation_best_friend_trigger = { CHARACTER = scope:liege_scope }
|
|
}
|
|
set_relation_best_friend = {
|
|
reason = friend_accredited_contribution
|
|
target = scope:liege_scope
|
|
}
|
|
}
|
|
else_if = {
|
|
limit = {
|
|
NOT = { has_relation_friend = scope:liege_scope }
|
|
}
|
|
scope:liege_scope = {
|
|
progress_towards_friend_effect = {
|
|
REASON = friend_accredited_contribution
|
|
CHARACTER = root
|
|
OPINION = 40
|
|
}
|
|
}
|
|
}
|
|
else = {
|
|
reverse_add_opinion = {
|
|
target = scope:liege_scope
|
|
modifier = grateful_opinion
|
|
opinion = 40
|
|
}
|
|
}
|
|
ai_chance = {
|
|
base = 100
|
|
modifier = {
|
|
has_relation_rival = scope:liege_scope
|
|
factor = 0
|
|
}
|
|
}
|
|
}
|
|
#Let's not engage
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1040.c
|
|
flavor = gdp_republic_patrician_decision.1040.c.flavor
|
|
if = {
|
|
limit = { scope:liege_scope = scope:actual_contributor }
|
|
custom_tooltip = {
|
|
text = gdp_republic_patrician_decision.1040.c.tt
|
|
scope:actual_contributor = {
|
|
fund_great_project_contribution = {
|
|
contribution = scope:contribution_to_fund
|
|
cost = no
|
|
check_can_contribute = no
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else = {
|
|
scope:actual_contributor = {
|
|
fund_great_project_contribution = {
|
|
contribution = scope:contribution_to_fund
|
|
cost = no
|
|
check_can_contribute = no
|
|
}
|
|
}
|
|
}
|
|
add_character_modifier = {
|
|
modifier = gdp_city_stroll_modifier
|
|
years = 5
|
|
}
|
|
stress_and_fulfillment_impact = {
|
|
base = miniscule_stress_impact_loss
|
|
}
|
|
ai_chance = {
|
|
base = 200
|
|
}
|
|
}
|
|
after = {
|
|
scope:local_character = {
|
|
silent_disappearance_ai_if_created_effect = yes
|
|
}
|
|
scope:local_character_2 = {
|
|
silent_disappearance_ai_if_created_effect = yes
|
|
}
|
|
remove_variable = gp_great_plaza_expansion
|
|
}
|
|
}
|
|
|
|
#The door to your study is stuck. Shucks!
|
|
gdp_republic_patrician_decision.1100 = {
|
|
type = character_event
|
|
window = big_event_window
|
|
title = gdp_republic_patrician_decision.1100.t
|
|
desc = gdp_republic_patrician_decision.1100.desc
|
|
theme = republic
|
|
override_background = study
|
|
left_portrait = {
|
|
character = root
|
|
triggered_animation = {
|
|
trigger = { has_trait = athletic }
|
|
animation = ecstasy
|
|
}
|
|
animation = stress
|
|
}
|
|
cooldown = { years = 5 }
|
|
trigger = {
|
|
is_available_adult = yes
|
|
}
|
|
immediate = {
|
|
capital_province = { save_scope_as = city_location }
|
|
}
|
|
#ANYONE?!
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1100.a
|
|
flavor = gdp_republic_patrician_decision.1100.a.flavor
|
|
add_character_modifier = {
|
|
modifier = gdp_city_stroll_modifier
|
|
years = 15
|
|
}
|
|
stress_and_fulfillment_impact = {
|
|
base = minor_stress_impact_gain
|
|
}
|
|
ai_chance = {
|
|
base = 100
|
|
}
|
|
}
|
|
#Jumping that window
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1100.b
|
|
duel = {
|
|
skill = prowess
|
|
value = average_skill_rating
|
|
25 = {
|
|
trigger = { prowess < medium_skill_rating }
|
|
compare_modifier = {
|
|
value = scope:duel_value
|
|
multiplier = 3.5
|
|
min = -49
|
|
}
|
|
desc = gdp_republic_patrician_decision.1100.b.success
|
|
send_interface_toast = {
|
|
title = gdp_republic_patrician_decision.1100.b.success
|
|
left_icon = root
|
|
add_prowess_skill = 1
|
|
add_character_modifier = {
|
|
modifier = gdp_city_stroll_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
}
|
|
50 = {
|
|
compare_modifier = {
|
|
value = scope:duel_value
|
|
multiplier = 3.5
|
|
min = -49
|
|
}
|
|
desc = gdp_republic_patrician_decision.1100.b.success
|
|
send_interface_toast = {
|
|
title = gdp_republic_patrician_decision.1100.b.success
|
|
left_icon = root
|
|
add_character_modifier = {
|
|
modifier = gdp_city_stroll_modifier
|
|
years = 10
|
|
}
|
|
}
|
|
}
|
|
50 = {
|
|
compare_modifier = {
|
|
value = scope:duel_value
|
|
multiplier = -3.5
|
|
min = -49
|
|
}
|
|
desc = gdp_republic_patrician_decision.1100.b.failure
|
|
send_interface_toast = {
|
|
title = gdp_republic_patrician_decision.1100.b.failure
|
|
left_icon = root
|
|
increase_wounds_no_death_effect = { REASON = fall }
|
|
}
|
|
}
|
|
}
|
|
ai_chance = {
|
|
base = 50
|
|
}
|
|
}
|
|
#Workout!
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1100.c
|
|
if = {
|
|
limit = {
|
|
NOT = { has_trait = athletic }
|
|
}
|
|
random = {
|
|
chance = 10
|
|
add_trait = athletic
|
|
}
|
|
}
|
|
else = {
|
|
stress_and_fulfillment_impact = {
|
|
athletic = major_stress_impact_loss
|
|
}
|
|
}
|
|
ai_chance = {
|
|
base = 200
|
|
}
|
|
}
|
|
#Let's not engage
|
|
option = {
|
|
name = gdp_republic_patrician_decision.1100.d
|
|
add_character_modifier = {
|
|
modifier = gdp_armchair_patrician_modifier
|
|
years = 5
|
|
}
|
|
stress_impact = {
|
|
base = miniscule_stress_impact_loss
|
|
athletic = minor_stress_impact_gain
|
|
}
|
|
ai_chance = {
|
|
base = 200
|
|
}
|
|
}
|
|
}
|