Script Value
strength_ratio_for_garrison_sortie
root is location
Definitionin_game/common/script_values/garrison.txt:2
4save_temporary_value_as = {
5name = attacker_strength
6value = 0
}
8save_temporary_value_as = {
9name = defender_strength
10value = garrison_strength
}
13if = {
14limit = {
14has_combat = yes
}
15combat ?= {
16combat_defender ?= {
17save_temporary_value_as = {
18name = defender_strength
19value = {
20value = scope:defender_strength
21add = combat_side_strength
}
}
}
25combat_attacker ?= {
26save_temporary_value_as = {
27name = attacker_strength
28value = {
29value = scope:attacker_strength
30add = combat_side_strength
}
}
}
}
}
36else = {
37siege ?= {
38save_temporary_value_as = {
39name = attacker_strength
40value = {
41value = scope:attacker_strength
42add = besieger_strength
}
}
}
}
48value = scope:defender_strength
49divide = {
50value = scope:attacker_strength
51min = 0.01
}