Script Value
chinese_expedition_scoring_function
Function that calculates a score between 0 and 1 for the likelihood of the AI to respond to the Treasure Voyage events
Definitionin_game/common/script_values/chinese_expedition.txt:3
4value = 0.5
5add = {
6value = scope:expedition_initiator.var:chinese_expedition_expedition_leader.dip
7divide = 100
8subtract = 0.5
9multiply = 0.3
}
16add = {
17value = scope:expedition_initiator.country_rank_level
18subtract = country_rank_level
19multiply = 0.05
}
21min = 0
22max = 1