
ActionChanged this version
Reclaim High Kingship Land
High Kings are chosen defenders of the kingship lands, and are expected to use their force to reclaim land taken by external powers.
High KingshipInternational Organizationallow, select trigger 1, select trigger 2Definitionin_game/common/generic_actions/high_kingship_of_ireland.txt:1
2type = internationalorganization
3show_message = no
5ai_tick = monthly
6ai_tick_frequency = 6
8allow = {
9scope:actor = {
10at_war = no
11any_international_organizations_member_of = {
13international_organization_has_leader = yes
14leader_country = prev
}
}
17region:ireland_region = {
18any_ownable_location_in_region = {
19owner = {
20NOT = {
21any_international_organizations_member_of = {
}
}
}
}
}
}
28price = price:high_kingship_reclaim_land
30cooldown = {
31type = reclaim_high_kingship_land
32years = 5
}
35select_trigger = {
36looking_for_a = international_organization
37source = actor
38target_flag = recipient
39name = "choose_international_organization" Choose the International Organization:
40column = {
41data = name
}
}
48select_trigger = {
49looking_for_a = province
50interaction_source_list = {
51region:ireland_region = {
52every_ownable_location_in_region = {
53limit = {
54owner = {
55NOT = {
56any_international_organizations_member_of = {
}
}
}
59is_province_capital = yes
}
61province = {
61add_to_list = source
}
}
}
}
65target_flag = target_province
66name = "choose_international_organization" Choose the International Organization:
67column = {
67data = name
}
68column = {
68data = rank
}
69column = {
69data = population
}
}
72effect = {
73scope:actor = {
74add_casus_belli = {
76province = scope:target_province
77target = scope:target_province.owner
}
}
}
82ai_will_do = {
83value = -50
84if = {
85limit = {
85exists = scope:target_province
}
86add = scope:actor.stability
87add = scope:actor.legitimacy
88add = {
89value = scope:actor.num_loans
90multiply = -5
}
92if = {
93limit = {
94scope:actor = {
94is_during_bankruptcy = yes
}
}
96subtract = 1000
}
98scope:target_province.owner = {
99subtract = {
100scope:actor = {
101value = this_opinion_of_prev
102multiply = 0.1
}
}
}
106multiply = {
107value = 1
108add = "scope:actor.relative_strength(scope:target_province.owner)"
}
}
}