Scripted effect · All Under Heaven files
tgp_learn_chinese_effect_birthday
tgp_learn_chinese_effect_birthday = yesgame/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt, line 3739 (29 lines). No parameters.
tgp_learn_chinese_effect_birthday is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 3739 of its file. It takes no parameters: tgp_learn_chinese_effect_birthday = yes. The game's script calls it in 1 place, among them on_birthday_childhood (on action). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt.
What it does
If
Then
learn_language = language_chinese- Every player:
- Where:
One of these
is_parent_of = scope:child_learned_chineseor
this = scope:child_learned_chineseor
has_relation_guardian = scope:child_learned_chineseor
has_relation_elder = scope:child_learned_chinese
scope:child_learned_chinese:learn_language = language_chinese
- 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 (29 lines of game script)
tgp_learn_chinese_effect_birthday = {
if = {
limit = {
should_learn_chinese_trigger = yes
}
learn_language = language_chinese
every_player = {
limit = {
OR = {
is_parent_of = scope:child_learned_chinese
this = scope:child_learned_chinese
has_relation_guardian = scope:child_learned_chinese
has_relation_elder = scope:child_learned_chinese
}
}
send_interface_toast = {
type = event_childhood_good_with_text
title = japanese_korean_child_learned_chinese_title
desc = japanese_korean_child_learned_chinese_effect
left_icon = scope:child_learned_chinese
show_as_tooltip = {
scope:child_learned_chinese = {
learn_language = language_chinese
}
}
}
}
}
}As written in game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls tgp_learn_chinese_effect_birthday.
On actions (the game's own hooks) (1)
- on_birthday_childhood
Source: game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.