Scripted effect · All Under Heaven files
set_mandala_contract_tier_effect
set_mandala_contract_tier_effect = yesgame/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 3129 (49 lines). No parameters.
set_mandala_contract_tier_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 3129 of its file. It takes no parameters: set_mandala_contract_tier_effect = yes. The game's script calls it in 40 places, among them on_action_mandala_realm_contract_0002 (on action), on_action_mandala_realm_contract_0003 (on action) and on_action_mandala_realm_contract_0004 (on action). Patch 1.20.1.2, from game/common/scripted_effects/tgp_mandala_scripted_effects.txt.
What it does
- 1 of 3 things will happen:
- 67%: Nothing else happens
- 22% (base chance; changed in play): Nothing else happens
- 11% (base chance; changed in play): Nothing else happens
• 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 (49 lines of game script)
set_mandala_contract_tier_effect = {
#Consider county_opinion as a factor
random_list = {
30 = {
save_scope_value_as = {
name = mandala_task_contract_tier
value = define:NTaskContract|LOW_TASK_CONTRACT_TIER
}
}
10 = {
save_scope_value_as = {
name = mandala_task_contract_tier
value = define:NTaskContract|MEDIUM_TASK_CONTRACT_TIER
}
modifier = {
add = 10
scope:target_province.county.county_opinion >= 10
}
modifier = {
add = 10
scope:target_province.county.county_opinion >= 20
}
}
5 = {
save_scope_value_as = {
name = mandala_task_contract_tier
value = define:NTaskContract|HIGH_TASK_CONTRACT_TIER
}
modifier = {
add = 10
scope:target_province.county.county_opinion >= 40
}
modifier = {
add = 10
scope:target_province.county.county_opinion >= 60
}
modifier = {
add = 10
scope:target_province.county.county_opinion >= 80
}
modifier = {
add = 10
scope:target_province.county.county_opinion >= 100
}
}
}
}As written in game/common/scripted_effects/tgp_mandala_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls set_mandala_contract_tier_effect.
On actions (the game's own hooks) (40)
- on_action_mandala_realm_contract_0002
- on_action_mandala_realm_contract_0003
- on_action_mandala_realm_contract_0004
- on_action_mandala_realm_contract_0005
- on_action_mandala_realm_contract_0006
- on_action_mandala_realm_contract_0007
34 more
- on_action_mandala_realm_contract_0008
- on_action_mandala_realm_contract_0009
- on_action_mandala_realm_contract_0010
- on_action_mandala_realm_contract_0011
- on_action_mandala_realm_contract_0012
- on_action_mandala_realm_contract_0013
- on_action_mandala_realm_contract_0014
- on_action_mandala_realm_contract_0015
- on_action_mandala_realm_contract_0016
- on_action_mandala_realm_contract_0017
- on_action_mandala_realm_contract_0018
- on_action_mandala_realm_contract_0019
- on_action_mandala_realm_contract_0020
- on_action_mandala_realm_contract_0021
- on_action_mandala_realm_contract_0022
- on_action_mandala_realm_contract_0023
- on_action_mandala_realm_contract_0024
- on_action_mandala_realm_contract_0025
- on_action_mandala_realm_contract_0026
- on_action_mandala_realm_contract_0027
- on_action_mandala_realm_contract_0028
- on_action_mandala_realm_contract_0029
- on_action_mandala_realm_contract_0030
- on_action_mandala_realm_contract_0031
- on_action_mandala_realm_contract_0032
- on_action_mandala_realm_contract_0033
- on_action_mandala_realm_contract_0034
- on_action_mandala_realm_contract_0035
- on_action_mandala_realm_contract_0036
- on_action_mandala_realm_contract_0037
- on_action_mandala_realm_contract_0038
- on_action_mandala_realm_contract_0039
- on_action_mandala_realm_contract_0040
- on_action_mandala_realm_contract_0041
Source: game/common/scripted_effects/tgp_mandala_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.