Efeito de Script
horde_raid_location
Retaliação por IncursãoCasus BelliifDefiniçãoin_game/common/scripted_effects/location_effects.txt:38
46if = {
47limit = {
48has_owner = yes
49exists = scope:target_country
50owner = {
51NOT = {
51this = scope:target_country
}
}
}
54owner = {
55add_opinion = {
56target = scope:target_country
57modifier = opinion_raided_our_borders
}
59if = {
60limit = {
60NOT = {
60has_casus_belli_of_type_on = {
60target = scope:target_country
}
}
}
}
}
64scope:target_country = {
65capital = {
65save_scope_as = slave_target
}
}
67save_scope_value_as = {
68name = pops_to_affect
69value = 1
}
71every_pop = {
72limit = {
72pop_size > 0.2
}
73save_scope_as = pop_to_lose
74if = {
75limit = {
75exists = scope:slave_target
}
76scope:slave_target = {
77add_pop = {
78culture = scope:pop_to_lose.culture
79religion = scope:pop_to_lose.religion
81size = {
82value = scope:pops_to_affect
83multiply = 0.05
84max = {
85value = scope:pop_to_lose.pop_size
86divide = 10
}
}
}
}
}
92add_pop_size = {
93value = scope:pops_to_affect
94multiply = 0.1
95max = {
96value = scope:pop_to_lose.pop_size
97divide = 10
}
99multiply = -1
}
}
102scope:target_country = {
102loot_location = prev
}
}