Scripted effect · All Under Heaven files
imperial_examination_create_appropriate_examiner_effect
imperial_examination_create_appropriate_examiner_effect = yesgame/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt, line 751 (44 lines). No parameters.
imperial_examination_create_appropriate_examiner_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 751 of its file. It takes no parameters: imperial_examination_create_appropriate_examiner_effect = yes. The game's script calls it in 4 places, among them A Bribe in the Hand (event imperial_examination.2040), A Weed Among the Flowers (event imperial_examination.3010) and Foxes in the Garden (event imperial_examination_jay.0040). Patch 1.20.1.2, from game/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt.
What it does
If
- scope:host › Their activity:
has_activity_type = activity_imperial_examination
Then
If
scope:activity:
Then
create_character = { template = tgp_examiner_martial_template location = scope:location save_scope_as = new_examiner }
Else if
scope:activity:
Then
create_character = { template = tgp_examiner_stewardship_template location = scope:location save_scope_as = new_examiner }
Otherwise
create_character = { template = tgp_examiner_learning_template location = scope:location save_scope_as = new_examiner }
Otherwise
create_character = { template = tgp_examiner_learning_template location = scope:location save_scope_as = new_examiner }
- scope:host › Their activity:
• 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 (44 lines of game script)
imperial_examination_create_appropriate_examiner_effect = {
scope:activity.activity_location = { save_scope_as = location }
if = {
limit = {
scope:host = {
involved_activity = { has_activity_type = activity_imperial_examination }
}
}
if = {
limit = {
scope:activity = { activity_is_martial_focus_trigger = yes }
}
create_character = {
template = tgp_examiner_martial_template
location = scope:location
save_scope_as = new_examiner
}
}
else_if = {
limit = {
scope:activity = { activity_is_stewardship_focus_trigger = yes }
}
create_character = {
template = tgp_examiner_stewardship_template
location = scope:location
save_scope_as = new_examiner
}
}
else = {
create_character = {
template = tgp_examiner_learning_template
location = scope:location
save_scope_as = new_examiner
}
}
}
else = {
create_character = {
template = tgp_examiner_learning_template
location = scope:location
save_scope_as = new_examiner
}
}
}As written in game/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls imperial_examination_create_appropriate_examiner_effect.
Events (3)
- A Bribe in the Hand
imperial_examination.2040 - A Weed Among the Flowers
imperial_examination.3010 - Foxes in the Garden
imperial_examination_jay.0040
Scripted effects (1)
Source: game/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.