Scripted effect · All Under Heaven files
nomad_domicile_refund_treasury_or_gold_effect
nomad_domicile_refund_treasury_or_gold_effect = yesgame/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 3841 (27 lines). No parameters.
nomad_domicile_refund_treasury_or_gold_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 3841 of its file. It takes no parameters: nomad_domicile_refund_treasury_or_gold_effect = yes. The game's script calls it in 1 place, among them Become a Meritocratic Khanate (decision). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.
What it does
- If has a domicile: … Domicile Buildings are exchanged for Treasury
• 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 (27 lines of game script)
nomad_domicile_refund_treasury_or_gold_effect = {
#Domicile buildings give cash refund
if = {
limit = {
has_domicile = yes
}
save_scope_as = former_nomad
custom_tooltip = nomad_domicile_buildings_converted_for_treasury_or_gold
hidden_effect = {
save_scope_value_as = {
name = domicile_refund_treasury_or_gold_value
value = {
value = medium_gold_value
switch = {
trigger = domicile.num_domicile_buildings
7 = { multiply = 7 }
6 = { multiply = 6 }
5 = { multiply = 5 }
4 = { multiply = 4 }
3 = { multiply = 3 }
2 = { multiply = 2 }
}
}
}
}
}
}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 nomad_domicile_refund_treasury_or_gold_effect.
Decisions (1)
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.