Scripted trigger · All Under Heaven files
should_learn_chinese_trigger
should_learn_chinese_trigger = yesgame/common/scripted_triggers/10_tgp_japan_triggers.txt, line 708 (38 lines). No parameters.
should_learn_chinese_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 708 of its file. It takes no parameters: should_learn_chinese_trigger = yes (or no). The game's script calls it in 2 places, among them tgp_learn_chinese_effect_birthday (scripted effect) and tgp_learn_chinese_effect_game_start (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/10_tgp_japan_triggers.txt.
What it checks
NOT = { knows_language = language_chinese }num_of_known_languages < language_soft_cap- Is at least 10 years old
is_faith_dominant_gender = yesprobably_unintelligent_trigger = no- Their house’s house head:
One of these
government_is_japanese_trigger = yesor
Government allows: meritor
Their culture:
One of these
- Their culture:
One of these
cultural_acceptance = { target = culture:han value >= 65 }or
Any parent culture or above:this = culture:han
or
The culture has the tradition Sinophilic
or
Their top liege:
- Their culture:
• 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 (38 lines of game script)
should_learn_chinese_trigger = {
save_temporary_scope_as = child_learned_chinese
#Make sure they don't already know Chinese
NOT = {
knows_language = language_chinese
}
num_of_known_languages < language_soft_cap
exists = house
age >= 10
is_faith_dominant_gender = yes
probably_unintelligent_trigger = no
house.house_head ?= {
OR = {
government_is_japanese_trigger = yes
#This will account for korea and friends
government_allows = merit
culture = { culture_use_chinese_character_trigger = yes } # it's free content so don't block everything in gov type
}
OR = {
#Cultural acceptance will be our guiding light for teaching young, noblemen (dominate gender) adults Chinese. These values will be set in game_start.txt
culture = {
OR = {
cultural_acceptance = {
target = culture:han
value >= 65
}
any_parent_culture_or_above = { this = culture:han }
has_cultural_tradition = tradition_sinophilic
}
}
top_liege ?= {
highest_held_title_tier >= tier_kingdom
has_dlc_feature = royal_court
has_court_language_of_culture = culture:han
}
}
}
}As written in game/common/scripted_triggers/10_tgp_japan_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls should_learn_chinese_trigger.
Scripted effects (2)
Source: game/common/scripted_triggers/10_tgp_japan_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.