Organization Payment
Tribute System
The Middle Kingdom has long been considered the cultural center of the world. As such, neighboring countries send delegations to offer tribute and submit to the authority of the Huángdì. In return, they receive gifts exceeding the tribute in value, as well as recognition and legitimization of their status as rulers.
3get_payer_list = {
4leader_country ?= {
5add_to_local_variable_list = {
6name = payers
7target = this
}
}
}
11get_payee_list = {
12every_international_organization_member = {
13limit = {
14NOT = {
14is_leader_of_international_organization = root
}
}
17add_to_local_variable_list = {
18name = payees
19target = this
}
}
}
24uses_maintenance = yes
25min_slider_value = 0
26maintenance_modifier = {
27potential_trigger = {
28payment_maintenance(scope:recipient|middle_kingdom_tribute) < 0.5
}
30scale = {
31value = 1
32subtract = {
33value = "payment_maintenance(scope:recipient|middle_kingdom_tribute)"
34multiply = 2
}
}
37monthly_celestial_authority = -0.2
}
39maintenance_modifier = {
40potential_trigger = {
41payment_maintenance(scope:recipient|middle_kingdom_tribute) > 0.5
}
43scale = {
44value = "payment_maintenance(scope:recipient|middle_kingdom_tribute)"
45subtract = 0.5
46multiply = 2
}
48monthly_celestial_authority = 0.2
}
50price_multiplier = {
51add = {
52desc = middle_kingdom_tribute_price_modifier Based on the total trade and tax income of all members
53every_international_organization_member = {
54limit = {
55not = {
55is_leader_of_international_organization = root
}
}
57add = {
58value = monthly_income_trade_and_tax
}
}
}
}
67proportion_for_payer = {
68add = {
69desc = "chinese_emperor" Huángdì
70value = 1
}
}
73proportion_for_payee = {
74add = {
75desc = "AUTO_MODIFIER_NAME_monthly_income_impact" Monthly Income
76value = monthly_income_trade_and_tax
}
78multiply = {
79format = "TWO_DP_ENTRY_FORMAT_PERCENT_MULTIPLIER"
80desc = "MODIFIER_TYPE_NAME_tribute_payment_received_modifier" Middle Kingdom Tribute Received Modifier
81value = 1
}
}