Scripted effect · All Under Heaven files
change_to_mandala_interaction_effect
change_to_mandala_interaction_effect = yesgame/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 3352 (46 lines). No parameters.
change_to_mandala_interaction_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 3352 of its file. It takes no parameters: change_to_mandala_interaction_effect = yes. The game's script calls it in 4 places, among them Invite to Become Mandala (interaction), tgp_east_asia_interaction_events.1000 (event) and tgp_east_asia_interaction_events.1001 (event). Patch 1.20.1.2, from game/common/scripted_effects/tgp_mandala_scripted_effects.txt.
What it does
scope:actor:pay_short_term_gold = { … }
scope:recipient:If
scope:hook = yesscope:actor:has_usable_hook = scope:recipient
Then
scope:actor:use_hook = scope:recipient
If
scope:piety = yes
Then
scope:actor:add_piety = { … }
• 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 (46 lines of game script)
change_to_mandala_interaction_effect = {
scope:actor = {
pay_short_term_gold = {
target = scope:recipient
gold = {
value = 50
scope:recipient = {
if = {
limit = { highest_held_title_tier >= tier_kingdom }
multiply = 10
}
else_if = {
limit = { highest_held_title_tier >= tier_duchy }
multiply = 6
}
else_if = {
limit = { highest_held_title_tier >= tier_county }
multiply = 3
}
}
if = {
limit = { scope:gold ?= yes }
add = scope:actor.medium_gold_value
}
}
}
}
scope:recipient = { change_to_mandala_government_and_citadel_effect = yes }
if = {
limit = {
scope:hook = yes
scope:actor = { has_usable_hook = scope:recipient }
}
scope:actor = { use_hook = scope:recipient }
}
if = {
limit = { scope:piety = yes }
scope:actor = {
add_piety = {
value = {
subtract = piety_bribe_value
}
}
}
}
}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 change_to_mandala_interaction_effect.
Character interactions (1)
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.