Scripted effect · All Under Heaven files
develop_celestial_tributaries
develop_celestial_tributaries = yesgame/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 1260 (47 lines). No parameters.
develop_celestial_tributaries is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1260 of its file. It takes no parameters: develop_celestial_tributaries = yes. The game's script calls it in 1 place, among them random_yearly_playable_pulse (on action). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.
The comment above it in the file
This effect improves Development in Celestial Tributaries' capital provinces, for as long as they have the Trade Investiture and as long as it's below the Development level of China's capital province
What it does
If
subject_contract_has_flag = celestial_investiture_tradecapital_county.development_level < overlord.capital_county.development_level- Subject Standing more than 10
Then
If
scope:tributary_capital_development_growth >= 1
Then
- Their capital county:
change_development_progress_with_overflow = scope:tributary_capital_development_growth
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (47 lines of game script)
develop_celestial_tributaries = {
if = {
limit = {
subject_contract_has_flag = celestial_investiture_trade
capital_county.development_level < overlord.capital_county.development_level
subject_standing > 10
}
save_scope_value_as = {
name = tributary_capital_development_growth
value = {
add = { # ratio of how close they are in development
add = capital_county.development_level
divide = overlord.capital_county.development_level
}
subtract = 1
multiply = -1
multiply = { # ratio of subject standing, with a minimum value to make at least something happen
add = subject_standing
divide = 100
min = 0.2
}
multiply = celestial_investiture_trade_bonus_max
add = { # to make it feel a bit more dynamic
fixed_range = {
min = -5
max = 5
}
}
}
}
if = {
limit = { scope:tributary_capital_development_growth >= 1 }
send_interface_message = {
type = msg_tributary_capital_province_development_growth
title = msg_tributary_capital_province_development_growth_title
desc = msg_tributary_capital_province_development_growth_desc
left_icon = root
right_icon = overlord
capital_county = {
change_development_progress_with_overflow = scope:tributary_capital_development_growth
}
}
}
}
}As written in game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls develop_celestial_tributaries.
On actions (the game's own hooks) (1)
- random_yearly_playable_pulse
Source: game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.