Scripted effect · All Under Heaven files
mandala_story_creation_aspect_get_kids_effect
mandala_story_creation_aspect_get_kids_effect = yesgame/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 3452 (53 lines). No parameters.
mandala_story_creation_aspect_get_kids_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 3452 of its file. It takes no parameters: mandala_story_creation_aspect_get_kids_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
- Is an Adult
is_available = yes
Then
If
is_female = no
Then
If
- Any consort:
- Is an Adult
is_available = yes- Fertility more than 0
- Not: Is pregnant
Then
- One random consort:
- Where:
- Is an Adult
is_available = yes- Fertility more than 0
- Not: Is pregnant
make_pregnant = { father = scope:root_scope }
- Where:
- Any consort:
If
is_female = yes
Then
If
- Not: Is pregnant
- Any consort:
- Is an Adult
is_available = yes- Fertility more than 0
Then
- One random consort:
- Where:
- Is an Adult
is_available = yes- Fertility more than 0
scope:root_scope:make_pregnant = { father = prev }
- Where:
• 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 (53 lines of game script)
mandala_story_creation_aspect_get_kids_effect = {
if = {
limit = {
is_adult = yes
is_available = yes
}
if = {
limit = { is_female = no }
if = {
limit = {
any_consort = {
is_adult = yes
is_available = yes
fertility > 0
is_pregnant = no
}
}
random_consort = {
limit = {
is_adult = yes
is_available = yes
fertility > 0
is_pregnant = no
}
make_pregnant = { father = scope:root_scope }
}
}
}
if = {
limit = { is_female = yes }
if = {
limit = {
is_pregnant = no
any_consort = {
is_adult = yes
is_available = yes
fertility > 0
}
}
random_consort = {
limit = {
is_adult = yes
is_available = yes
fertility > 0
}
scope:root_scope = {
make_pregnant = { father = prev }
}
}
}
}
}
}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_creation_aspect_get_kids_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.