Script ValueChanged this version
alliance_upkeep_cost
these use first/second as scopes.
Definitionin_game/common/script_values/diplomatic_values.txt:205
206add = {
207desc = "UPKEEP_BASE_VALUE" Base Value
208value = 0.5
}
210add = {
211desc = "RELATIVE_ECO_BASE" Relative Economic Base
212value = scope:second.country_economical_base
213divide = {
214value = scope:first.country_economical_base
215min = 1
}
217multiply = 2.0
218min = 0.1
219max = 3.0
}
222add = {
223add = 0.5
224subtract = {
225scope:first = {
226scope:second = {
227value = this_opinion_of_prev
}
}
230divide = 200
}
232desc = "UPKEEP_TARGET_OPINION" Their Opinion
}
235if = {
236limit = {
237scope:second = {
238is_great_power = yes
}
}
242add = {
243value = 1
244desc = "UPKEEP_THEY_GREAT_POWER" They are a Great Power
}
}
248if = {
249limit = {
250scope:second = {
251is_regional_power = yes
}
}
255add = {
256value = 0.5
257desc = "UPKEEP_THEY_REGIONAL_POWER" They are a Regional Power
}
}
261add = {
262desc = "UPKEEP_BLOC_SATURATION" Alliance Bloc
263value = scope:first.powerful_ally_weight
264subtract = 1
265multiply = 0.3
266min = 0
}