Scripted effect · All Under Heaven files
divine_happenstance_adopt_mandala_effect
divine_happenstance_adopt_mandala_effect = yesgame/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 1538 (27 lines). No parameters.
divine_happenstance_adopt_mandala_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1538 of its file. It takes no parameters: divine_happenstance_adopt_mandala_effect = yes. The game's script calls it in 3 places, among them Adopt Mandala Government (decision), Divine Intervention (event tgp_east_asia_mandala_events.9000) and New Horizons (event tgp_east_asia_decision_events.0010). Patch 1.20.1.2, from game/common/scripted_effects/tgp_mandala_scripted_effects.txt.
What it does
add_piety = { value = major_piety_value multiply = 1.5 }- If government uses the Mandala Capital Temple Complex Great Project and Great Building:
add_legitimacy_effect = { LEGITIMACY = major_legitimacy_gain }
- Otherwise:
- If has “vying for mandala divinity” (a variable the game's script sets):
create_character_memory = { type = ascended_as_divined_mandala_devaraja_memory }
- Otherwise:
create_character_memory = { type = ascended_as_mandala_devaraja_memory }
• 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)
divine_happenstance_adopt_mandala_effect = {
send_interface_message = {
type = msg_mandala_good_with_text
title = divine_happenstance_fulfilled
desc = divine_happenstance_fulfilled_desc
left_icon = root
add_piety = {
value = major_piety_value
multiply = 1.5
}
if = {
limit = { government_has_flag = government_is_mandala }
add_legitimacy_effect = { LEGITIMACY = major_legitimacy_gain }
}
else = {
#Add legitimacy sans displaying levels (only for show, we shouldn't end up here outside of show_as_tooltip)
add_major_legitimacy_no_tier_effect = yes
}
}
if = {
limit = { has_variable = vying_for_mandala_divinity }
create_character_memory = { type = ascended_as_divined_mandala_devaraja_memory }
}
else = {
create_character_memory = { type = ascended_as_mandala_devaraja_memory }
}
}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 divine_happenstance_adopt_mandala_effect.
Decisions (1)
Events (2)
- Divine Intervention
tgp_east_asia_mandala_events.9000 - New Horizons
tgp_east_asia_decision_events.0010
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.