Scripted effect · All Under Heaven files
mandala_story_serenity_aspect_befriend_effect
mandala_story_serenity_aspect_befriend_effect = yesgame/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 3506 (35 lines). No parameters.
mandala_story_serenity_aspect_befriend_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 3506 of its file. It takes no parameters: mandala_story_serenity_aspect_befriend_effect = yes. The game's script calls it in 1 place, among them story_mandala (story cycle). Patch 1.20.1.2, from game/common/scripted_effects/tgp_mandala_scripted_effects.txt.
What it does
If
- Any courtier:
can_set_relation_friend_trigger = { CHARACTER = scope:root_scope }
- Any vassal:
can_set_relation_friend_trigger = { CHARACTER = scope:root_scope }
Then
- One in list, picked in order › 10% chance of: Gains a Friend
Otherwise
- Any courtier:
• 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 (35 lines of game script)
mandala_story_serenity_aspect_befriend_effect = {
if = {
limit = {
any_courtier = {
can_set_relation_friend_trigger = { CHARACTER = scope:root_scope }
}
any_vassal = {
can_set_relation_friend_trigger = { CHARACTER = scope:root_scope }
}
}
every_courtier = {
limit = {
can_set_relation_friend_trigger = { CHARACTER = scope:root_scope }
}
add_to_list = serenity_potential_friends
}
every_vassal = {
limit = {
can_set_relation_friend_trigger = { CHARACTER = scope:root_scope }
}
add_to_list = serenity_potential_friends
}
ordered_in_list = {
list = serenity_potential_friends
order_by = "opinion(scope:root_scope)"
random = {
chance = 10
set_relation_friend = scope:root_scope
}
}
}
else = {
mandala_story_befriend_scheme_effect = yes
}
}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 mandala_story_serenity_aspect_befriend_effect.
Story cycles (1)
- story_mandala
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.